From a3c0e3beae32066523f26c94086b7d64e4659640 Mon Sep 17 00:00:00 2001 From: mahakagi Date: Fri, 29 Nov 2024 15:00:40 -0600 Subject: [PATCH] Added jobs for 1.32 (#638) * Added 1-32 prow jobs, fix lint checks fix presubmits * add 1-32 to templater fix lint check 1-32 --- ...ud-controller-manager-1-31-presubmits.yaml | 4 +- ...ud-controller-manager-1-32-presubmits.yaml | 96 +++++++++++++++++ ...aws-iam-authenticator-1-31-presubmits.yaml | 6 +- ...aws-iam-authenticator-1-32-presubmits.yaml | 79 ++++++++++++++ .../eks-distro/build-1-27-postsubmits.yaml | 2 +- .../eks-distro/build-1-28-postsubmits.yaml | 2 +- .../eks-distro/build-1-29-postsubmits.yaml | 2 +- .../eks-distro/build-1-30-postsubmits.yaml | 2 +- .../eks-distro/build-1-31-postsubmits.yaml | 6 +- .../eks-distro/build-1-32-postsubmits.yaml | 101 ++++++++++++++++++ jobs/aws/eks-distro/cni-1-31-presubmits.yaml | 2 +- jobs/aws/eks-distro/cni-1-32-presubmits.yaml | 63 +++++++++++ .../eks-distro/coredns-1-31-presubmits.yaml | 2 +- .../eks-distro/coredns-1-32-presubmits.yaml | 77 +++++++++++++ .../dev-release-1-31-postsubmits.yaml | 2 +- .../dev-release-1-32-postsubmits.yaml | 91 ++++++++++++++++ jobs/aws/eks-distro/etcd-1-31-presubmits.yaml | 6 +- jobs/aws/eks-distro/etcd-1-32-presubmits.yaml | 81 ++++++++++++++ .../external-attacher-1-31-presubmits.yaml | 2 +- .../external-attacher-1-32-presubmits.yaml | 75 +++++++++++++ .../external-provisioner-1-31-presubmits.yaml | 2 +- .../external-provisioner-1-32-presubmits.yaml | 75 +++++++++++++ .../external-resizer-1-31-presubmits.yaml | 2 +- .../external-resizer-1-32-presubmits.yaml | 75 +++++++++++++ .../external-snapshotter-1-31-presubmits.yaml | 2 +- .../external-snapshotter-1-32-presubmits.yaml | 75 +++++++++++++ .../kops-build-1-31-presubmits.yaml | 2 +- .../kops-build-1-32-presubmits.yaml | 68 ++++++++++++ .../kubernetes-1-31-presubmits.yaml | 8 +- .../kubernetes-1-31-test-presubmits.yaml | 2 +- .../kubernetes-1-32-presubmits.yaml | 100 +++++++++++++++++ .../kubernetes-1-32-test-presubmits.yaml | 64 +++++++++++ .../kubernetes-release-1-31-presubmits.yaml | 2 +- .../kubernetes-release-1-32-presubmits.yaml | 75 +++++++++++++ .../livenessprobe-1-31-presubmits.yaml | 2 +- .../livenessprobe-1-32-presubmits.yaml | 92 ++++++++++++++++ .../metrics-server-1-31-presubmits.yaml | 2 +- .../metrics-server-1-32-presubmits.yaml | 75 +++++++++++++ ...node-driver-registrar-1-31-presubmits.yaml | 2 +- ...node-driver-registrar-1-32-presubmits.yaml | 92 ++++++++++++++++ .../prod-release-1-31-postsubmits.yaml | 2 +- .../prod-release-1-32-postsubmits.yaml | 95 ++++++++++++++++ .../kubernetes-1-X-test-presubmits.yaml | 2 +- templater/jobs/utils/utils.go | 1 + 44 files changed, 1584 insertions(+), 34 deletions(-) create mode 100644 jobs/aws/eks-distro/aws-cloud-controller-manager-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/aws-iam-authenticator-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/build-1-32-postsubmits.yaml create mode 100644 jobs/aws/eks-distro/cni-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/coredns-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/dev-release-1-32-postsubmits.yaml create mode 100644 jobs/aws/eks-distro/etcd-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/external-attacher-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/external-provisioner-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/external-resizer-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/external-snapshotter-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/kops-build-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/kubernetes-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/kubernetes-1-32-test-presubmits.yaml create mode 100644 jobs/aws/eks-distro/kubernetes-release-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/livenessprobe-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/metrics-server-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/node-driver-registrar-1-32-presubmits.yaml create mode 100644 jobs/aws/eks-distro/prod-release-1-32-postsubmits.yaml diff --git a/jobs/aws/eks-distro/aws-cloud-controller-manager-1-31-presubmits.yaml b/jobs/aws/eks-distro/aws-cloud-controller-manager-1-31-presubmits.yaml index 364f988c7..5eda3fe78 100644 --- a/jobs/aws/eks-distro/aws-cloud-controller-manager-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/aws-cloud-controller-manager-1-31-presubmits.yaml @@ -51,9 +51,9 @@ presubmits: && build/lib/local_registry_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $RELEASE_PROJECT_PATH IMAGE_OUTPUT_TYPE=image IMAGE_OUTPUT=push=true; fi + make build clean-go-cache clean -C $RELEASE_PROJECT_PATH IMAGE_OUTPUT_TYPE=image IMAGE_OUTPUT=push=true && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $PROJECT_PATH; fi + make build clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes/cloud-provider-aws" diff --git a/jobs/aws/eks-distro/aws-cloud-controller-manager-1-32-presubmits.yaml b/jobs/aws/eks-distro/aws-cloud-controller-manager-1-32-presubmits.yaml new file mode 100644 index 000000000..20203c42b --- /dev/null +++ b/jobs/aws/eks-distro/aws-cloud-controller-manager-1-32-presubmits.yaml @@ -0,0 +1,96 @@ +# 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-distro: + - name: aws-cloud-controller-manager-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/cloud-provider-aws/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + skip_report: false + decoration_config: + gcs_configuration: + bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + local-registry: "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-84aa10abfbb6a1963412bce4db3b640cada68fd5.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + build/lib/buildkit_check.sh + && + build/lib/local_registry_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $RELEASE_PROJECT_PATH IMAGE_OUTPUT_TYPE=image IMAGE_OUTPUT=push=true; fi + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes/cloud-provider-aws" + - name: RELEASE_PROJECT_PATH + value: "projects/kubernetes/release" + - name: RELEASE_BRANCH + value: "1-32" + - name: IMAGE_REPO + value: "localhost:5000" + resources: + requests: + memory: "8Gi" + cpu: "1024m" + - name: buildkitd + image: moby/buildkit:v0.12.3-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + - name: registry + image: public.ecr.aws/docker/library/registry:2 + command: + - sh + args: + - /registry-script/entrypoint.sh + readinessProbe: + httpGet: + path: / + port: 5000 + initialDelaySeconds: 5 + periodSeconds: 3 + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-distro/aws-iam-authenticator-1-31-presubmits.yaml b/jobs/aws/eks-distro/aws-iam-authenticator-1-31-presubmits.yaml index 45724a797..4de7ccd4a 100644 --- a/jobs/aws/eks-distro/aws-iam-authenticator-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/aws-iam-authenticator-1-31-presubmits.yaml @@ -48,11 +48,11 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build -C $PROJECT_PATH; fi + make build -C $PROJECT_PATH && - if make check-for-supported-release-branch -C $PROJECT_PATH; then mv ./projects/kubernetes-sigs/aws-iam-authenticator/_output/tar/* /logs/artifacts; fi + mv ./projects/kubernetes-sigs/aws-iam-authenticator/_output/tar/* /logs/artifacts && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make clean-go-cache clean -C $PROJECT_PATH; fi + make clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes-sigs/aws-iam-authenticator" diff --git a/jobs/aws/eks-distro/aws-iam-authenticator-1-32-presubmits.yaml b/jobs/aws/eks-distro/aws-iam-authenticator-1-32-presubmits.yaml new file mode 100644 index 000000000..b814fc51f --- /dev/null +++ b/jobs/aws/eks-distro/aws-iam-authenticator-1-32-presubmits.yaml @@ -0,0 +1,79 @@ +# 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-distro: + - name: aws-iam-authenticator-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes-sigs/aws-iam-authenticator/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build -C $PROJECT_PATH; fi + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then mv ./projects/kubernetes-sigs/aws-iam-authenticator/_output/tar/* /logs/artifacts; fi + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then make clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes-sigs/aws-iam-authenticator" + - name: RELEASE_BRANCH + value: "1-32" + resources: + requests: + memory: "4Gi" + cpu: "1024m" + - name: buildkitd + image: moby/buildkit:v0.12.3-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-distro/build-1-27-postsubmits.yaml b/jobs/aws/eks-distro/build-1-27-postsubmits.yaml index 4a84ba176..aea6456ca 100644 --- a/jobs/aws/eks-distro/build-1-27-postsubmits.yaml +++ b/jobs/aws/eks-distro/build-1-27-postsubmits.yaml @@ -22,7 +22,7 @@ postsubmits: aws/eks-distro: - name: build-1-27-postsubmit always_run: false - skip_if_only_changed: "1-28|1-29|1-30|1-31|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" + skip_if_only_changed: "1-28|1-29|1-30|1-31|1-32|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" branches: - ^main$ max_concurrency: 10 diff --git a/jobs/aws/eks-distro/build-1-28-postsubmits.yaml b/jobs/aws/eks-distro/build-1-28-postsubmits.yaml index 11a566660..456fb4840 100644 --- a/jobs/aws/eks-distro/build-1-28-postsubmits.yaml +++ b/jobs/aws/eks-distro/build-1-28-postsubmits.yaml @@ -22,7 +22,7 @@ postsubmits: aws/eks-distro: - name: build-1-28-postsubmit always_run: false - skip_if_only_changed: "1-27|1-29|1-30|1-31|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" + skip_if_only_changed: "1-27|1-29|1-30|1-31|1-32|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" branches: - ^main$ max_concurrency: 10 diff --git a/jobs/aws/eks-distro/build-1-29-postsubmits.yaml b/jobs/aws/eks-distro/build-1-29-postsubmits.yaml index 0ee34ebb7..7de7b45d3 100644 --- a/jobs/aws/eks-distro/build-1-29-postsubmits.yaml +++ b/jobs/aws/eks-distro/build-1-29-postsubmits.yaml @@ -22,7 +22,7 @@ postsubmits: aws/eks-distro: - name: build-1-29-postsubmit always_run: false - skip_if_only_changed: "1-27|1-28|1-30|1-31|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" + skip_if_only_changed: "1-27|1-28|1-30|1-31|1-32|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" branches: - ^main$ max_concurrency: 10 diff --git a/jobs/aws/eks-distro/build-1-30-postsubmits.yaml b/jobs/aws/eks-distro/build-1-30-postsubmits.yaml index bddc1638d..d960ad70e 100644 --- a/jobs/aws/eks-distro/build-1-30-postsubmits.yaml +++ b/jobs/aws/eks-distro/build-1-30-postsubmits.yaml @@ -22,7 +22,7 @@ postsubmits: aws/eks-distro: - name: build-1-30-postsubmit always_run: false - skip_if_only_changed: "1-27|1-28|1-29|1-31|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" + skip_if_only_changed: "1-27|1-28|1-29|1-31|1-32|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" branches: - ^main$ max_concurrency: 10 diff --git a/jobs/aws/eks-distro/build-1-31-postsubmits.yaml b/jobs/aws/eks-distro/build-1-31-postsubmits.yaml index 9f1a26b04..1e042d3b2 100644 --- a/jobs/aws/eks-distro/build-1-31-postsubmits.yaml +++ b/jobs/aws/eks-distro/build-1-31-postsubmits.yaml @@ -22,7 +22,7 @@ postsubmits: aws/eks-distro: - name: build-1-31-postsubmit always_run: false - skip_if_only_changed: "1-27|1-28|1-29|1-30|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" + skip_if_only_changed: "1-27|1-28|1-29|1-30|1-32|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" branches: - ^main$ max_concurrency: 10 @@ -54,9 +54,9 @@ postsubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then cp -r "${HOME}/.docker" /home/prow/go/src/github.com/aws/eks-distro; fi + cp -r "${HOME}/.docker" /home/prow/go/src/github.com/aws/eks-distro && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make -j2 postsubmit-conformance; fi + make -j2 postsubmit-conformance env: - name: PROJECT_PATH value: "projects/kubernetes/kubernetes" diff --git a/jobs/aws/eks-distro/build-1-32-postsubmits.yaml b/jobs/aws/eks-distro/build-1-32-postsubmits.yaml new file mode 100644 index 000000000..c178989b3 --- /dev/null +++ b/jobs/aws/eks-distro/build-1-32-postsubmits.yaml @@ -0,0 +1,101 @@ +# 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. +################################################################################ + +postsubmits: + aws/eks-distro: + - name: build-1-32-postsubmit + always_run: false + skip_if_only_changed: "1-27|1-28|1-29|1-30|1-31|docs/.*|.*.md|go.sum|go.mod|.*Help.mk|.*ATTRIBUTION.txt|LICENSE|NOTICE|OWNERS" + branches: + - ^main$ + max_concurrency: 10 + error_on_eviction: true + cluster: "prow-postsubmits-cluster" + skip_report: false + decoration_config: + timeout: 6h + gcs_configuration: + bucket: s3://prowdataclusterstack-316434458-prowbucket7c73355c-1n9f9v93wpjcm + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + disk-usage: "true" + spec: + serviceaccountName: postsubmits-build-account + automountServiceAccountToken: false + nodeSelector: + arch: AMD64 + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-84aa10abfbb6a1963412bce4db3b640cada68fd5.2 + command: + - bash + - -c + - > + trap 'touch /status/done' EXIT + && + build/lib/buildkit_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then cp -r "${HOME}/.docker" /home/prow/go/src/github.com/aws/eks-distro; fi + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then make -j2 postsubmit-conformance; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes/kubernetes" + - name: TEST_ROLE_ARN + value: "arn:aws:iam::125833916567:role/TestBuildRole" + - name: ARTIFACT_BUCKET + value: "eks-d-postsubmit-artifacts" + - name: RELEASE_BRANCH + value: "1-32" + - name: CONTROL_PLANE_INSTANCE_PROFILE + value: "arn:aws:iam::125833916567:instance-profile/KopsControlPlaneBuildRole" + - name: NODE_INSTANCE_PROFILE + value: "arn:aws:iam::125833916567:instance-profile/KopsNodesBuildRole" + - name: KOPS_STATE_STORE + value: "s3://testbuildstack-125833916-kopsbuildstatestorebucke-d4esen60nfrk" + - name: IMAGE_REPO + value: "public.ecr.aws/h1r8a7l5" + - name: DOCKER_CONFIG + value: "/home/prow/go/src/github.com/aws/eks-distro/.docker" + resources: + requests: + memory: "8Gi" + cpu: "2" + - name: buildkitd + image: moby/buildkit:v0.12.3-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + resources: + requests: + memory: "2Gi" + cpu: "1024m" + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-distro/cni-1-31-presubmits.yaml b/jobs/aws/eks-distro/cni-1-31-presubmits.yaml index db8eb9ddf..3a0c3e17d 100644 --- a/jobs/aws/eks-distro/cni-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/cni-1-31-presubmits.yaml @@ -45,7 +45,7 @@ presubmits: - > trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $PROJECT_PATH; fi + make build clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/containernetworking/plugins" diff --git a/jobs/aws/eks-distro/cni-1-32-presubmits.yaml b/jobs/aws/eks-distro/cni-1-32-presubmits.yaml new file mode 100644 index 000000000..736f2f3e8 --- /dev/null +++ b/jobs/aws/eks-distro/cni-1-32-presubmits.yaml @@ -0,0 +1,63 @@ +# 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-distro: + - name: cni-plugins-1-32-presubmit + always_run: false + run_if_changed: "^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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 + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/containernetworking/plugins" + - name: RELEASE_BRANCH + value: "1-32" + resources: + requests: + memory: "2Gi" + cpu: "1024m" + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-distro/coredns-1-31-presubmits.yaml b/jobs/aws/eks-distro/coredns-1-31-presubmits.yaml index 59e9750ee..502ad31e6 100644 --- a/jobs/aws/eks-distro/coredns-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/coredns-1-31-presubmits.yaml @@ -48,7 +48,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $PROJECT_PATH; fi + make build clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/coredns/coredns" diff --git a/jobs/aws/eks-distro/coredns-1-32-presubmits.yaml b/jobs/aws/eks-distro/coredns-1-32-presubmits.yaml new file mode 100644 index 000000000..901df6b93 --- /dev/null +++ b/jobs/aws/eks-distro/coredns-1-32-presubmits.yaml @@ -0,0 +1,77 @@ +# 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-distro: + - name: coredns-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/coredns/coredns/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/coredns/coredns" + - name: RELEASE_BRANCH + value: "1-32" + - name: FAKE_ARM_ARTIFACTS_FOR_VALIDATION + value: "true" + resources: + requests: + memory: "4Gi" + cpu: "1024m" + - name: buildkitd + image: moby/buildkit:v0.12.3-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-distro/dev-release-1-31-postsubmits.yaml b/jobs/aws/eks-distro/dev-release-1-31-postsubmits.yaml index d0892b07b..020a5d79f 100644 --- a/jobs/aws/eks-distro/dev-release-1-31-postsubmits.yaml +++ b/jobs/aws/eks-distro/dev-release-1-31-postsubmits.yaml @@ -54,7 +54,7 @@ postsubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then ./release/prow.sh; fi + ./release/prow.sh env: - name: PROJECT_PATH value: "projects/kubernetes/kubernetes" diff --git a/jobs/aws/eks-distro/dev-release-1-32-postsubmits.yaml b/jobs/aws/eks-distro/dev-release-1-32-postsubmits.yaml new file mode 100644 index 000000000..ed7cbafc9 --- /dev/null +++ b/jobs/aws/eks-distro/dev-release-1-32-postsubmits.yaml @@ -0,0 +1,91 @@ +# 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. +################################################################################ + +postsubmits: + aws/eks-distro: + - name: dev-release-1-32-postsubmit + always_run: false + run_if_changed: "release/1-32/development/RELEASE" + branches: + - ^main$ + max_concurrency: 1 + error_on_eviction: true + cluster: "prow-postsubmits-cluster" + skip_report: false + decoration_config: + timeout: 4h + gcs_configuration: + bucket: s3://prowdataclusterstack-316434458-prowbucket7c73355c-1n9f9v93wpjcm + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + disk-usage: "true" + spec: + serviceaccountName: postsubmits-build-account + automountServiceAccountToken: false + nodeSelector: + arch: AMD64 + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-84aa10abfbb6a1963412bce4db3b640cada68fd5.2 + command: + - bash + - -c + - > + trap 'touch /status/done' EXIT + && + build/lib/buildkit_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then ./release/prow.sh; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes/kubernetes" + - name: AWS_REGION + value: "us-east-1" + - name: ARTIFACT_BUCKET + value: "eks-d-postsubmit-artifacts" + - name: RELEASE_BRANCH + value: "1-32" + - name: IMAGE_REPO + value: "public.ecr.aws/h1r8a7l5" + resources: + requests: + memory: "16Gi" + cpu: "4" + - name: buildkitd + image: moby/buildkit:v0.12.3-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + resources: + requests: + memory: "2Gi" + cpu: "1024m" + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-distro/etcd-1-31-presubmits.yaml b/jobs/aws/eks-distro/etcd-1-31-presubmits.yaml index 294199659..582ed46fd 100644 --- a/jobs/aws/eks-distro/etcd-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/etcd-1-31-presubmits.yaml @@ -48,11 +48,11 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build -C $PROJECT_PATH; fi + make build -C $PROJECT_PATH && - if make check-for-supported-release-branch -C $PROJECT_PATH; then mv ./projects/etcd-io/etcd/_output/tar/* /logs/artifacts; fi + mv ./projects/etcd-io/etcd/_output/tar/* /logs/artifacts && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make clean-go-cache clean -C $PROJECT_PATH; fi + make clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/etcd-io/etcd" diff --git a/jobs/aws/eks-distro/etcd-1-32-presubmits.yaml b/jobs/aws/eks-distro/etcd-1-32-presubmits.yaml new file mode 100644 index 000000000..9a63409d9 --- /dev/null +++ b/jobs/aws/eks-distro/etcd-1-32-presubmits.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-distro: + - name: etcd-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/etcd-io/etcd/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build -C $PROJECT_PATH; fi + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then mv ./projects/etcd-io/etcd/_output/tar/* /logs/artifacts; fi + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then make clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/etcd-io/etcd" + - name: RELEASE_BRANCH + value: "1-32" + - name: FAKE_ARM_ARTIFACTS_FOR_VALIDATION + value: "true" + resources: + requests: + memory: "4Gi" + cpu: "1024m" + - name: buildkitd + image: moby/buildkit:v0.12.3-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-distro/external-attacher-1-31-presubmits.yaml b/jobs/aws/eks-distro/external-attacher-1-31-presubmits.yaml index a232990e2..2e00aa65d 100644 --- a/jobs/aws/eks-distro/external-attacher-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/external-attacher-1-31-presubmits.yaml @@ -48,7 +48,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $PROJECT_PATH; fi + make build clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes-csi/external-attacher" diff --git a/jobs/aws/eks-distro/external-attacher-1-32-presubmits.yaml b/jobs/aws/eks-distro/external-attacher-1-32-presubmits.yaml new file mode 100644 index 000000000..55c60f787 --- /dev/null +++ b/jobs/aws/eks-distro/external-attacher-1-32-presubmits.yaml @@ -0,0 +1,75 @@ +# 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-distro: + - name: external-attacher-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes-csi/external-attacher/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes-csi/external-attacher" + - name: RELEASE_BRANCH + value: "1-32" + resources: + requests: + memory: "4Gi" + cpu: "1024m" + - name: buildkitd + image: moby/buildkit:v0.12.3-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-distro/external-provisioner-1-31-presubmits.yaml b/jobs/aws/eks-distro/external-provisioner-1-31-presubmits.yaml index 6f44d3870..9b7441050 100644 --- a/jobs/aws/eks-distro/external-provisioner-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/external-provisioner-1-31-presubmits.yaml @@ -48,7 +48,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $PROJECT_PATH; fi + make build clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes-csi/external-provisioner" diff --git a/jobs/aws/eks-distro/external-provisioner-1-32-presubmits.yaml b/jobs/aws/eks-distro/external-provisioner-1-32-presubmits.yaml new file mode 100644 index 000000000..07bee6865 --- /dev/null +++ b/jobs/aws/eks-distro/external-provisioner-1-32-presubmits.yaml @@ -0,0 +1,75 @@ +# 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-distro: + - name: external-provisioner-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes-csi/external-provisioner/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes-csi/external-provisioner" + - name: RELEASE_BRANCH + value: "1-32" + resources: + requests: + memory: "4Gi" + cpu: "1024m" + - name: buildkitd + image: moby/buildkit:v0.12.3-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-distro/external-resizer-1-31-presubmits.yaml b/jobs/aws/eks-distro/external-resizer-1-31-presubmits.yaml index 686e610d4..f25c4f2b7 100644 --- a/jobs/aws/eks-distro/external-resizer-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/external-resizer-1-31-presubmits.yaml @@ -48,7 +48,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $PROJECT_PATH; fi + make build clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes-csi/external-resizer" diff --git a/jobs/aws/eks-distro/external-resizer-1-32-presubmits.yaml b/jobs/aws/eks-distro/external-resizer-1-32-presubmits.yaml new file mode 100644 index 000000000..e01aec84c --- /dev/null +++ b/jobs/aws/eks-distro/external-resizer-1-32-presubmits.yaml @@ -0,0 +1,75 @@ +# 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-distro: + - name: external-resizer-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes-csi/external-resizer/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes-csi/external-resizer" + - name: RELEASE_BRANCH + value: "1-32" + resources: + requests: + memory: "4Gi" + cpu: "1024m" + - name: buildkitd + image: moby/buildkit:v0.12.3-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-distro/external-snapshotter-1-31-presubmits.yaml b/jobs/aws/eks-distro/external-snapshotter-1-31-presubmits.yaml index 7c59e1fa7..3e33cbba1 100644 --- a/jobs/aws/eks-distro/external-snapshotter-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/external-snapshotter-1-31-presubmits.yaml @@ -48,7 +48,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $PROJECT_PATH; fi + make build clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes-csi/external-snapshotter" diff --git a/jobs/aws/eks-distro/external-snapshotter-1-32-presubmits.yaml b/jobs/aws/eks-distro/external-snapshotter-1-32-presubmits.yaml new file mode 100644 index 000000000..4c06184f2 --- /dev/null +++ b/jobs/aws/eks-distro/external-snapshotter-1-32-presubmits.yaml @@ -0,0 +1,75 @@ +# 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-distro: + - name: external-snapshotter-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes-csi/external-snapshotter/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes-csi/external-snapshotter" + - name: RELEASE_BRANCH + value: "1-32" + resources: + requests: + memory: "8Gi" + cpu: "2048m" + - name: buildkitd + image: moby/buildkit:v0.12.3-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-distro/kops-build-1-31-presubmits.yaml b/jobs/aws/eks-distro/kops-build-1-31-presubmits.yaml index 68450d146..579da6237 100644 --- a/jobs/aws/eks-distro/kops-build-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/kops-build-1-31-presubmits.yaml @@ -46,7 +46,7 @@ presubmits: - > trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build kops; fi + make build kops env: - name: PROJECT_PATH value: "development/kops" diff --git a/jobs/aws/eks-distro/kops-build-1-32-presubmits.yaml b/jobs/aws/eks-distro/kops-build-1-32-presubmits.yaml new file mode 100644 index 000000000..5a5f4f429 --- /dev/null +++ b/jobs/aws/eks-distro/kops-build-1-32-presubmits.yaml @@ -0,0 +1,68 @@ +# 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-distro: + - name: kops-build-1-32-presubmits + always_run: false + run_if_changed: "development/kops/.*" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + skip_report: false + decoration_config: + timeout: 6h + 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 + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build kops; fi + env: + - name: PROJECT_PATH + value: "development/kops" + - name: ARTIFACT_BUCKET + value: "eks-d-postsubmit-artifacts" + - name: RELEASE_BRANCH + value: "1-32" + - name: IMAGE_REPO + value: "public.ecr.aws/h1r8a7l5" + resources: + requests: + memory: "8Gi" + cpu: "2" + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-distro/kubernetes-1-31-presubmits.yaml b/jobs/aws/eks-distro/kubernetes-1-31-presubmits.yaml index 2439f7e6f..fc1bdda0d 100644 --- a/jobs/aws/eks-distro/kubernetes-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/kubernetes-1-31-presubmits.yaml @@ -51,13 +51,13 @@ presubmits: && build/lib/local_registry_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $RELEASE_PROJECT_PATH IMAGE_OUTPUT_TYPE=image IMAGE_OUTPUT=push=true; fi + make build clean-go-cache clean -C $RELEASE_PROJECT_PATH IMAGE_OUTPUT_TYPE=image IMAGE_OUTPUT=push=true && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build -C $PROJECT_PATH; fi + make build -C $PROJECT_PATH && - if make check-for-supported-release-branch -C $PROJECT_PATH; then mv ./projects/kubernetes/kubernetes/_output/${RELEASE_BRANCH}/* /logs/artifacts; fi + mv ./projects/kubernetes/kubernetes/_output/${RELEASE_BRANCH}/* /logs/artifacts && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make clean-go-cache clean -C $PROJECT_PATH; fi + make clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes/kubernetes" diff --git a/jobs/aws/eks-distro/kubernetes-1-31-test-presubmits.yaml b/jobs/aws/eks-distro/kubernetes-1-31-test-presubmits.yaml index e77a09c77..e215da090 100644 --- a/jobs/aws/eks-distro/kubernetes-1-31-test-presubmits.yaml +++ b/jobs/aws/eks-distro/kubernetes-1-31-test-presubmits.yaml @@ -45,7 +45,7 @@ presubmits: - > trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make test -C $PROJECT_PATH; fi + make test -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes/kubernetes" diff --git a/jobs/aws/eks-distro/kubernetes-1-32-presubmits.yaml b/jobs/aws/eks-distro/kubernetes-1-32-presubmits.yaml new file mode 100644 index 000000000..05a43f601 --- /dev/null +++ b/jobs/aws/eks-distro/kubernetes-1-32-presubmits.yaml @@ -0,0 +1,100 @@ +# 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-distro: + - name: kubernetes-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|EKS_DISTRO_MINIMAL_BASE_IPTABLES_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/kubernetes/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + skip_report: false + decoration_config: + gcs_configuration: + bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + local-registry: "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-84aa10abfbb6a1963412bce4db3b640cada68fd5.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + build/lib/buildkit_check.sh + && + build/lib/local_registry_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $RELEASE_PROJECT_PATH IMAGE_OUTPUT_TYPE=image IMAGE_OUTPUT=push=true; fi + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then make build -C $PROJECT_PATH; fi + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then mv ./projects/kubernetes/kubernetes/_output/${RELEASE_BRANCH}/* /logs/artifacts; fi + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then make clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes/kubernetes" + - name: RELEASE_PROJECT_PATH + value: "projects/kubernetes/release" + - name: RELEASE_BRANCH + value: "1-32" + - name: IMAGE_REPO + value: "localhost:5000" + resources: + requests: + memory: "32Gi" + cpu: "16" + - name: buildkitd + image: moby/buildkit:v0.12.3-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + - name: registry + image: public.ecr.aws/docker/library/registry:2 + command: + - sh + args: + - /registry-script/entrypoint.sh + readinessProbe: + httpGet: + path: / + port: 5000 + initialDelaySeconds: 5 + periodSeconds: 3 + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-distro/kubernetes-1-32-test-presubmits.yaml b/jobs/aws/eks-distro/kubernetes-1-32-test-presubmits.yaml new file mode 100644 index 000000000..01be2a74f --- /dev/null +++ b/jobs/aws/eks-distro/kubernetes-1-32-test-presubmits.yaml @@ -0,0 +1,64 @@ +# 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-distro: + - name: kubernetes-1-32-test-presubmit + always_run: false + run_if_changed: "projects/kubernetes/kubernetes/1-32/(GIT_TAG|patches|GOLANG_VERSION)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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 + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make test -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes/kubernetes" + - name: RELEASE_BRANCH + value: "1-32" + resources: + requests: + memory: "32Gi" + cpu: "16" + ephemeral-storage: "50Gi" + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-distro/kubernetes-release-1-31-presubmits.yaml b/jobs/aws/eks-distro/kubernetes-release-1-31-presubmits.yaml index d1e29567c..50acac96a 100644 --- a/jobs/aws/eks-distro/kubernetes-release-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/kubernetes-release-1-31-presubmits.yaml @@ -48,7 +48,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $PROJECT_PATH; fi + make build clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes/release" diff --git a/jobs/aws/eks-distro/kubernetes-release-1-32-presubmits.yaml b/jobs/aws/eks-distro/kubernetes-release-1-32-presubmits.yaml new file mode 100644 index 000000000..f15b595ab --- /dev/null +++ b/jobs/aws/eks-distro/kubernetes-release-1-32-presubmits.yaml @@ -0,0 +1,75 @@ +# 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-distro: + - name: kubernetes-release-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes/release/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes/release" + - name: RELEASE_BRANCH + value: "1-32" + resources: + requests: + memory: "8Gi" + cpu: "2048m" + - name: buildkitd + image: moby/buildkit:v0.12.3-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-distro/livenessprobe-1-31-presubmits.yaml b/jobs/aws/eks-distro/livenessprobe-1-31-presubmits.yaml index 0989c61eb..9b85b102e 100644 --- a/jobs/aws/eks-distro/livenessprobe-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/livenessprobe-1-31-presubmits.yaml @@ -51,7 +51,7 @@ presubmits: && build/lib/local_registry_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache images clean -C $PROJECT_PATH; fi + make build clean-go-cache images clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes-csi/livenessprobe" diff --git a/jobs/aws/eks-distro/livenessprobe-1-32-presubmits.yaml b/jobs/aws/eks-distro/livenessprobe-1-32-presubmits.yaml new file mode 100644 index 000000000..718530ae3 --- /dev/null +++ b/jobs/aws/eks-distro/livenessprobe-1-32-presubmits.yaml @@ -0,0 +1,92 @@ +# 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-distro: + - name: livenessprobe-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|EKS_DISTRO_WINDOWS_BASE_.*_FILE|^build/lib/.*|Common.mk|projects/kubernetes-csi/livenessprobe/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + skip_report: false + decoration_config: + gcs_configuration: + bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + local-registry: "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-84aa10abfbb6a1963412bce4db3b640cada68fd5.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + build/lib/buildkit_check.sh + && + build/lib/local_registry_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache images clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes-csi/livenessprobe" + - name: RELEASE_BRANCH + value: "1-32" + - name: IMAGE_REPO + value: "localhost:5000" + resources: + requests: + memory: "4Gi" + cpu: "1024m" + - name: buildkitd + image: moby/buildkit:v0.12.3-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + - name: registry + image: public.ecr.aws/docker/library/registry:2 + command: + - sh + args: + - /registry-script/entrypoint.sh + readinessProbe: + httpGet: + path: / + port: 5000 + initialDelaySeconds: 5 + periodSeconds: 3 + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-distro/metrics-server-1-31-presubmits.yaml b/jobs/aws/eks-distro/metrics-server-1-31-presubmits.yaml index 90bc1db86..1d9a2011c 100644 --- a/jobs/aws/eks-distro/metrics-server-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/metrics-server-1-31-presubmits.yaml @@ -48,7 +48,7 @@ presubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache clean -C $PROJECT_PATH; fi + make build clean-go-cache clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes-sigs/metrics-server" diff --git a/jobs/aws/eks-distro/metrics-server-1-32-presubmits.yaml b/jobs/aws/eks-distro/metrics-server-1-32-presubmits.yaml new file mode 100644 index 000000000..041f65830 --- /dev/null +++ b/jobs/aws/eks-distro/metrics-server-1-32-presubmits.yaml @@ -0,0 +1,75 @@ +# 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-distro: + - name: metrics-server-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/kubernetes-sigs/metrics-server/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + 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-84aa10abfbb6a1963412bce4db3b640cada68fd5.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 make build clean-go-cache clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes-sigs/metrics-server" + - name: RELEASE_BRANCH + value: "1-32" + resources: + requests: + memory: "4Gi" + cpu: "1024m" + - name: buildkitd + image: moby/buildkit:v0.12.3-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-distro/node-driver-registrar-1-31-presubmits.yaml b/jobs/aws/eks-distro/node-driver-registrar-1-31-presubmits.yaml index 9785d2f05..ddf059d5f 100644 --- a/jobs/aws/eks-distro/node-driver-registrar-1-31-presubmits.yaml +++ b/jobs/aws/eks-distro/node-driver-registrar-1-31-presubmits.yaml @@ -51,7 +51,7 @@ presubmits: && build/lib/local_registry_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache images clean -C $PROJECT_PATH; fi + make build clean-go-cache images clean -C $PROJECT_PATH env: - name: PROJECT_PATH value: "projects/kubernetes-csi/node-driver-registrar" diff --git a/jobs/aws/eks-distro/node-driver-registrar-1-32-presubmits.yaml b/jobs/aws/eks-distro/node-driver-registrar-1-32-presubmits.yaml new file mode 100644 index 000000000..6ec7a69df --- /dev/null +++ b/jobs/aws/eks-distro/node-driver-registrar-1-32-presubmits.yaml @@ -0,0 +1,92 @@ +# 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-distro: + - name: node-driver-registrar-1-32-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|EKS_DISTRO_WINDOWS_BASE_.*_FILE|^build/lib/.*|Common.mk|projects/kubernetes-csi/node-driver-registrar/(build|docker|Makefile|1-32)" + max_concurrency: 10 + cluster: "prow-presubmits-cluster" + skip_report: false + decoration_config: + gcs_configuration: + bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + local-registry: "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-84aa10abfbb6a1963412bce4db3b640cada68fd5.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + build/lib/buildkit_check.sh + && + build/lib/local_registry_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then make build clean-go-cache images clean -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes-csi/node-driver-registrar" + - name: RELEASE_BRANCH + value: "1-32" + - name: IMAGE_REPO + value: "localhost:5000" + resources: + requests: + memory: "4Gi" + cpu: "1024m" + - name: buildkitd + image: moby/buildkit:v0.12.3-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + - name: registry + image: public.ecr.aws/docker/library/registry:2 + command: + - sh + args: + - /registry-script/entrypoint.sh + readinessProbe: + httpGet: + path: / + port: 5000 + initialDelaySeconds: 5 + periodSeconds: 3 + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/jobs/aws/eks-distro/prod-release-1-31-postsubmits.yaml b/jobs/aws/eks-distro/prod-release-1-31-postsubmits.yaml index 3bcfcca3c..8d47b9f80 100644 --- a/jobs/aws/eks-distro/prod-release-1-31-postsubmits.yaml +++ b/jobs/aws/eks-distro/prod-release-1-31-postsubmits.yaml @@ -54,7 +54,7 @@ postsubmits: && build/lib/buildkit_check.sh && - if make check-for-supported-release-branch -C $PROJECT_PATH; then ./release/prow-release.sh; fi + ./release/prow-release.sh env: - name: PROJECT_PATH value: "projects/kubernetes/kubernetes" diff --git a/jobs/aws/eks-distro/prod-release-1-32-postsubmits.yaml b/jobs/aws/eks-distro/prod-release-1-32-postsubmits.yaml new file mode 100644 index 000000000..fd42a302d --- /dev/null +++ b/jobs/aws/eks-distro/prod-release-1-32-postsubmits.yaml @@ -0,0 +1,95 @@ +# 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. +################################################################################ + +postsubmits: + aws/eks-distro: + - name: prod-release-1-32-postsubmit + always_run: false + run_if_changed: "release/1-32/production/RELEASE" + branches: + - ^main$ + max_concurrency: 1 + error_on_eviction: true + cluster: "prow-postsubmits-cluster" + skip_report: false + decoration_config: + timeout: 4h + gcs_configuration: + bucket: s3://prowdataclusterstack-316434458-prowbucket7c73355c-1n9f9v93wpjcm + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + disk-usage: "true" + spec: + serviceaccountName: release-build-account + automountServiceAccountToken: false + nodeSelector: + arch: AMD64 + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-84aa10abfbb6a1963412bce4db3b640cada68fd5.2 + command: + - bash + - -c + - > + trap 'touch /status/done' EXIT + && + build/lib/buildkit_check.sh + && + if make check-for-supported-release-branch -C $PROJECT_PATH; then ./release/prow-release.sh; fi + env: + - name: PROJECT_PATH + value: "projects/kubernetes/kubernetes" + - name: ARTIFACT_DEPLOYMENT_ROLE_ARN + value: "arn:aws:iam::379412251201:role/ArtifactDeploymentRole" + - name: AWS_REGION + value: "us-east-1" + - name: RELEASE_ENVIRONMENT + value: "production" + - name: ARTIFACT_BUCKET + value: "artifactsstack-3794122512-artifactsbucket2aac5544-1f3dgu9wrpiz2" + - name: RELEASE_BRANCH + value: "1-32" + - name: IMAGE_REPO + value: "public.ecr.aws/eks-distro" + resources: + requests: + memory: "16Gi" + cpu: "4" + - name: buildkitd + image: moby/buildkit:v0.12.3-rootless + command: + - sh + args: + - /script/entrypoint.sh + securityContext: + runAsUser: 1000 + runAsGroup: 1000 + resources: + requests: + memory: "2Gi" + cpu: "1024m" + - command: + - sh + args: + - /disk-usage-script/entrypoint.sh + image: public.ecr.aws/amazonlinux/amazonlinux:2 + name: disk-monitor diff --git a/templater/jobs/presubmit/eks-distro/kubernetes-1-X-test-presubmits.yaml b/templater/jobs/presubmit/eks-distro/kubernetes-1-X-test-presubmits.yaml index cd6813877..440e7e120 100755 --- a/templater/jobs/presubmit/eks-distro/kubernetes-1-X-test-presubmits.yaml +++ b/templater/jobs/presubmit/eks-distro/kubernetes-1-X-test-presubmits.yaml @@ -13,6 +13,6 @@ resources: requests: cpu: 16 memory: 32Gi - {{ if or (eq .releaseBranch "1-25") (eq .releaseBranch "1-26") (eq .releaseBranch "1-27") (eq .releaseBranch "1-28") (eq .releaseBranch "1-29") (eq .releaseBranch "1-30") (eq .releaseBranch "1-31") }} + {{ if or (eq .releaseBranch "1-25") (eq .releaseBranch "1-26") (eq .releaseBranch "1-27") (eq .releaseBranch "1-28") (eq .releaseBranch "1-29") (eq .releaseBranch "1-30") (eq .releaseBranch "1-31") (eq .releaseBranch "1-32") }} ephemeral-storage: "50Gi" {{ end }} diff --git a/templater/jobs/utils/utils.go b/templater/jobs/utils/utils.go index e7d21f25b..9a562d8c7 100644 --- a/templater/jobs/utils/utils.go +++ b/templater/jobs/utils/utils.go @@ -19,6 +19,7 @@ var releaseBranches = []string{ "1-29", "1-30", "1-31", + "1-32", } var k8releaseBranches = []string{