From c2a82f7aaaf67e7d985de4ae470511c4c1a6e45c Mon Sep 17 00:00:00 2001 From: Rahul Ganesh Date: Wed, 10 Apr 2024 22:09:28 +0000 Subject: [PATCH] Add pre-submits for release branch 1-30 Signed-off-by: Rahul Ganesh --- .../autoscaler-1-29-presubmits.yaml | 2 +- .../autoscaler-1-30-presubmits.yaml | 83 +++++++++++++++++++ .../cloud-provider-aws-1-29-presubmit.yaml | 2 +- .../cloud-provider-aws-1-30-presubmit.yaml | 81 ++++++++++++++++++ ...loud-provider-vsphere-1-29-presubmits.yaml | 2 +- ...loud-provider-vsphere-1-30-presubmits.yaml | 83 +++++++++++++++++++ .../imagebuilder-1-29-presubmits.yaml | 2 +- .../imagebuilder-1-30-presubmits.yaml | 78 +++++++++++++++++ .../kind-1-29-presubmits.yaml | 2 +- .../kind-1-30-presubmits.yaml | 83 +++++++++++++++++++ templater/jobs/utils.go | 1 + 11 files changed, 414 insertions(+), 5 deletions(-) create mode 100644 jobs/aws/eks-anywhere-build-tooling/autoscaler-1-30-presubmits.yaml create mode 100644 jobs/aws/eks-anywhere-build-tooling/cloud-provider-aws-1-30-presubmit.yaml create mode 100644 jobs/aws/eks-anywhere-build-tooling/cloud-provider-vsphere-1-30-presubmits.yaml create mode 100644 jobs/aws/eks-anywhere-build-tooling/imagebuilder-1-30-presubmits.yaml create mode 100644 jobs/aws/eks-anywhere-build-tooling/kind-1-30-presubmits.yaml diff --git a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-29-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-29-presubmits.yaml index 7648c1c1..da6049dd 100644 --- a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-29-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-29-presubmits.yaml @@ -49,7 +49,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi; fi + if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi env: - name: PROJECT_PATH value: "projects/kubernetes/autoscaler" diff --git a/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-30-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-30-presubmits.yaml new file mode 100644 index 00000000..b0c7f265 --- /dev/null +++ b/jobs/aws/eks-anywhere-build-tooling/autoscaler-1-30-presubmits.yaml @@ -0,0 +1,83 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ +# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`. +# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on +# how to add a new Prowjob or update an existing Prowjob. +################################################################################ + +presubmits: + aws/eks-anywhere-build-tooling: + - name: autoscaler-1-30-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/autoscaler/.*" + cluster: "prow-presubmits-cluster" + error_on_eviction: true + max_concurrency: 10 + skip_report: false + decoration_config: + gcs_configuration: + bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + disk-usage: "true" + spec: + serviceaccountName: presubmits-build-account + automountServiceAccountToken: false + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-2d6e96cf6f92fe90c7f9bfa6fac36583c7eb4b0f.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + build/lib/buildkit_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes/autoscaler" + - name: GITHUB_TOKEN + valueFrom: + secretKeyRef: + name: public-access-github-token + key: token + - name: RELEASE_BRANCH + value: "1-30" + - name: PRUNE_BUILDCTL + value: "true" + resources: + requests: + memory: "16Gi" + cpu: "8" + - name: buildkitd + image: moby/buildkit:v0.12.5-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-anywhere-build-tooling/cloud-provider-aws-1-29-presubmit.yaml b/jobs/aws/eks-anywhere-build-tooling/cloud-provider-aws-1-29-presubmit.yaml index 0e0a9453..2397fbad 100644 --- a/jobs/aws/eks-anywhere-build-tooling/cloud-provider-aws-1-29-presubmit.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/cloud-provider-aws-1-29-presubmit.yaml @@ -49,7 +49,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi; fi + if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi env: - name: PROJECT_PATH value: "projects/kubernetes/cloud-provider-aws" diff --git a/jobs/aws/eks-anywhere-build-tooling/cloud-provider-aws-1-30-presubmit.yaml b/jobs/aws/eks-anywhere-build-tooling/cloud-provider-aws-1-30-presubmit.yaml new file mode 100644 index 00000000..dbc57fea --- /dev/null +++ b/jobs/aws/eks-anywhere-build-tooling/cloud-provider-aws-1-30-presubmit.yaml @@ -0,0 +1,81 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ +# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`. +# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on +# how to add a new Prowjob or update an existing Prowjob. +################################################################################ + +presubmits: + aws/eks-anywhere-build-tooling: + - name: cloud-provider-aws-1-30-tooling-presubmit + always_run: false + run_if_changed: "^build/lib/.*|Common.mk|projects/kubernetes/cloud-provider-aws/.*" + cluster: "prow-presubmits-cluster" + error_on_eviction: true + max_concurrency: 10 + skip_report: false + decoration_config: + gcs_configuration: + bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + disk-usage: "true" + spec: + serviceaccountName: presubmits-build-account + automountServiceAccountToken: false + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-2d6e96cf6f92fe90c7f9bfa6fac36583c7eb4b0f.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + build/lib/buildkit_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes/cloud-provider-aws" + - name: GITHUB_TOKEN + valueFrom: + secretKeyRef: + name: public-access-github-token + key: token + - name: RELEASE_BRANCH + value: "1-30" + resources: + requests: + memory: "16Gi" + cpu: "4" + - name: buildkitd + image: moby/buildkit:v0.12.5-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-anywhere-build-tooling/cloud-provider-vsphere-1-29-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/cloud-provider-vsphere-1-29-presubmits.yaml index 1942dd3c..f6aa113e 100644 --- a/jobs/aws/eks-anywhere-build-tooling/cloud-provider-vsphere-1-29-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/cloud-provider-vsphere-1-29-presubmits.yaml @@ -49,7 +49,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi; fi + if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi env: - name: PROJECT_PATH value: "projects/kubernetes/cloud-provider-vsphere" diff --git a/jobs/aws/eks-anywhere-build-tooling/cloud-provider-vsphere-1-30-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/cloud-provider-vsphere-1-30-presubmits.yaml new file mode 100644 index 00000000..b9452823 --- /dev/null +++ b/jobs/aws/eks-anywhere-build-tooling/cloud-provider-vsphere-1-30-presubmits.yaml @@ -0,0 +1,83 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ +# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`. +# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on +# how to add a new Prowjob or update an existing Prowjob. +################################################################################ + +presubmits: + aws/eks-anywhere-build-tooling: + - name: cloud-provider-vsphere-1-30-tooling-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|EKSD_LATEST_RELEASES|^build/lib/.*|Common.mk|projects/kubernetes/cloud-provider-vsphere/.*" + cluster: "prow-presubmits-cluster" + error_on_eviction: true + max_concurrency: 10 + skip_report: false + decoration_config: + gcs_configuration: + bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + disk-usage: "true" + spec: + serviceaccountName: presubmits-build-account + automountServiceAccountToken: false + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-2d6e96cf6f92fe90c7f9bfa6fac36583c7eb4b0f.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + build/lib/buildkit_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes/cloud-provider-vsphere" + - name: GITHUB_TOKEN + valueFrom: + secretKeyRef: + name: public-access-github-token + key: token + - name: RELEASE_BRANCH + value: "1-30" + - name: PRUNE_BUILDCTL + value: "true" + resources: + requests: + memory: "16Gi" + cpu: "4" + - name: buildkitd + image: moby/buildkit:v0.12.5-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-anywhere-build-tooling/imagebuilder-1-29-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/imagebuilder-1-29-presubmits.yaml index 9dca7053..eea6257b 100644 --- a/jobs/aws/eks-anywhere-build-tooling/imagebuilder-1-29-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/imagebuilder-1-29-presubmits.yaml @@ -49,7 +49,7 @@ presubmits: - > trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT && - if make check-for-supported-release-branch -C $PROJECT_PATH; then if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi; fi + if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi env: - name: PROJECT_PATH value: "projects/kubernetes-sigs/image-builder" diff --git a/jobs/aws/eks-anywhere-build-tooling/imagebuilder-1-30-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/imagebuilder-1-30-presubmits.yaml new file mode 100644 index 00000000..1837dc22 --- /dev/null +++ b/jobs/aws/eks-anywhere-build-tooling/imagebuilder-1-30-presubmits.yaml @@ -0,0 +1,78 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ +# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`. +# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on +# how to add a new Prowjob or update an existing Prowjob. +################################################################################ + +presubmits: + aws/eks-anywhere-build-tooling: + - name: imagebuilder-1-30-presubmit + always_run: false + run_if_changed: "EKSD_LATEST_RELEASES|^build/lib/.*|Common.mk|projects/kubernetes-sigs/image-builder/.*" + cluster: "prow-presubmits-cluster" + error_on_eviction: true + max_concurrency: 10 + skip_report: false + decoration_config: + gcs_configuration: + bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + disk-usage: "true" + spec: + serviceaccountName: presubmits-build-account + automountServiceAccountToken: false + securityContext: + runAsUser: 1100 + runAsGroup: 1100 + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-2d6e96cf6f92fe90c7f9bfa6fac36583c7eb4b0f.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes-sigs/image-builder" + - name: GITHUB_TOKEN + valueFrom: + secretKeyRef: + name: public-access-github-token + key: token + - name: RELEASE_BRANCH + value: "1-30" + - name: ARTIFACTS_BUCKET + value: "s3://projectbuildpipeline-857-pipelineoutputartifactsb-10ajmk30khe3f" + - name: CODEBUILD_ROLE_ARN + value: "arn:aws:iam::857151390494:role/ImageBuilderPresubmitRole" + - name: BOTTLEROCKET_CLOUDFRONT_ENDPOINT + value: "d3r9quwvrhi0m2.cloudfront.net" + resources: + requests: + memory: "16Gi" + cpu: "8" + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-anywhere-build-tooling/kind-1-29-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/kind-1-29-presubmits.yaml index 2f058118..f117a4aa 100644 --- a/jobs/aws/eks-anywhere-build-tooling/kind-1-29-presubmits.yaml +++ b/jobs/aws/eks-anywhere-build-tooling/kind-1-29-presubmits.yaml @@ -49,7 +49,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi; fi + if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi env: - name: PROJECT_PATH value: "projects/kubernetes-sigs/kind" diff --git a/jobs/aws/eks-anywhere-build-tooling/kind-1-30-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/kind-1-30-presubmits.yaml new file mode 100644 index 00000000..6b8b1570 --- /dev/null +++ b/jobs/aws/eks-anywhere-build-tooling/kind-1-30-presubmits.yaml @@ -0,0 +1,83 @@ +# Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ +# IMPORTANT: This Prowjob was generated by running `make prowjobs -C templater`. +# DO NOT EDIT THIS FILE BY HAND! Refer to docs/prowjobs.md for instructions on +# how to add a new Prowjob or update an existing Prowjob. +################################################################################ + +presubmits: + aws/eks-anywhere-build-tooling: + - name: kind-1-30-tooling-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_KIND_AL2023_TAG_FILE|EKSD_LATEST_RELEASES|^build/lib/.*|Common.mk|projects/kubernetes-sigs/kind/.*" + cluster: "prow-presubmits-cluster" + error_on_eviction: true + max_concurrency: 10 + skip_report: false + decoration_config: + gcs_configuration: + bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + disk-usage: "true" + spec: + serviceaccountName: presubmits-build-account + automountServiceAccountToken: false + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-2d6e96cf6f92fe90c7f9bfa6fac36583c7eb4b0f.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + build/lib/buildkit_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes-sigs/kind" + - name: GITHUB_TOKEN + valueFrom: + secretKeyRef: + name: public-access-github-token + key: token + - name: RELEASE_BRANCH + value: "1-30" + - name: ARTIFACTS_BUCKET + value: "s3://projectbuildpipeline-857-pipelineoutputartifactsb-10ajmk30khe3f" + resources: + requests: + memory: "16Gi" + cpu: "4" + - name: buildkitd + image: moby/buildkit:v0.12.5-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/templater/jobs/utils.go b/templater/jobs/utils.go index de3ead0e..ea559da0 100644 --- a/templater/jobs/utils.go +++ b/templater/jobs/utils.go @@ -18,6 +18,7 @@ var releaseBranches = []string{ "1-27", "1-28", "1-29", + "1-30", } func GetJobsByType(repos []string, jobType string) (map[string]map[string]types.JobConfig, error) {