From 6640e37e461505cf1626b75819c997fab177ccb2 Mon Sep 17 00:00:00 2001 From: Kamil Kasperski Date: Fri, 13 Sep 2024 12:41:15 +0200 Subject: [PATCH] bug: restore pull-api-gateway-manager-build only for release branches (#11900) /kind bug /area api-gateway job still needs to work on release branches until release jobs are switched --- .../api-gateway-manager-build.yaml | 51 +++++++++++++++++++ templates/data/api-gateway-manager-build.yaml | 40 --------------- 2 files changed, 51 insertions(+), 40 deletions(-) delete mode 100644 templates/data/api-gateway-manager-build.yaml diff --git a/prow/jobs/kyma-project/api-gateway/api-gateway-manager-build.yaml b/prow/jobs/kyma-project/api-gateway/api-gateway-manager-build.yaml index 18d43c102b66..77db5437893f 100644 --- a/prow/jobs/kyma-project/api-gateway/api-gateway-manager-build.yaml +++ b/prow/jobs/kyma-project/api-gateway/api-gateway-manager-build.yaml @@ -1,5 +1,56 @@ # Code generated by rendertemplates. DO NOT EDIT. +presubmits: # runs on PRs + kyma-project/api-gateway: + - name: pull-api-gateway-manager-build + annotations: + description: "API Gateway Manager image build on PR for " + owner: "goat" + labels: + prow.k8s.io/pubsub.project: "sap-kyma-prow" + prow.k8s.io/pubsub.runID: "pull-api-gateway-manager-build" + prow.k8s.io/pubsub.topic: "prowjobs" + preset-sa-kyma-push-images: "true" + skip_if_only_changed: 'sec-scanners-config\.yaml$|^docs/|^performance_tests/|\.md$|^(OWNERS|CODEOWNERS)$|^\.|^LICENSES/' + skip_report: false + decorate: true + cluster: untrusted-workload + max_concurrency: 10 + branches: + - ^release-\d+\.\d+(-.*)?$ + spec: + containers: + - image: "europe-docker.pkg.dev/kyma-project/prod/image-builder:v20240909-fe70e5ff" + securityContext: + privileged: false + seccompProfile: + type: RuntimeDefault + allowPrivilegeEscalation: false + command: + - "/image-builder" + args: + - "--name=api-gateway-manager" + - "--config=/config/kaniko-build-config.yaml" + - "--context=." + - "--dockerfile=Dockerfile" + resources: + requests: + memory: 1.5Gi + cpu: 1 + volumeMounts: + - name: config + mountPath: /config + readOnly: true + - name: signify-secret + mountPath: /secret + readOnly: true + volumes: + - name: config + configMap: + name: kaniko-build-config + - name: signify-secret + secret: + secretName: signify-dev-secret postsubmits: # runs on main kyma-project/api-gateway: diff --git a/templates/data/api-gateway-manager-build.yaml b/templates/data/api-gateway-manager-build.yaml deleted file mode 100644 index 5dd60b6af321..000000000000 --- a/templates/data/api-gateway-manager-build.yaml +++ /dev/null @@ -1,40 +0,0 @@ -templates: - - from: generic.tmpl - render: - - to: ../../prow/jobs/kyma-project/api-gateway/api-gateway-manager-build.yaml - localSets: - job_default: - optional: "false" - securityContext: - privileged: false - seccompProfile: - type: RuntimeDefault - job_post: - slack_channel: goat-int - jobConfigs: - - repoName: "github.com/kyma-project/api-gateway" - jobs: - - jobConfig: # builds a docker image of the api-gateway-manager - name: rel-api-gateway-manager-build - image: "europe-docker.pkg.dev/kyma-project/prod/image-builder:v20240912-fcc91334" - annotations: - owner: "goat" - description: "API Gateway Manager image build" - labels: - preset-signify-prod-secret: "true" - args: - - "--name=api-gateway-manager" - - "--config=/config/kaniko-build-config.yaml" - - "--context=." - - "--dockerfile=Dockerfile" - - '--tag={{`{{.Env \"PULL_BASE_REF\" }}`}}' - - "--build-arg=VERSION=$(PULL_BASE_REF)" - branches: - - '^\d+\.\d+\.\d+$' - optional: false - inheritedConfigs: - global: - - kaniko_buildpack - - jobConfig_postsubmit - local: - - "job_post"