diff --git a/jobs/aws/eks-distro/cni-1-23-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-23-test-presubmits.yaml new file mode 100644 index 000000000..e84946835 --- /dev/null +++ b/jobs/aws/eks-distro/cni-1-23-test-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-23-test-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-23)" + 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-a19fc328d20553856310b2a580838c97fa0cca6d.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + make test -C $PROJECT_PATH + env: + - name: PROJECT_PATH + value: "projects/containernetworking/plugins" + - name: RELEASE_BRANCH + value: "1-23" + 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-24-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-24-test-presubmits.yaml new file mode 100644 index 000000000..e4f9b051c --- /dev/null +++ b/jobs/aws/eks-distro/cni-1-24-test-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-24-test-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-24)" + 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-a19fc328d20553856310b2a580838c97fa0cca6d.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + make test -C $PROJECT_PATH + env: + - name: PROJECT_PATH + value: "projects/containernetworking/plugins" + - name: RELEASE_BRANCH + value: "1-24" + 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-25-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-25-test-presubmits.yaml new file mode 100644 index 000000000..425c13ad7 --- /dev/null +++ b/jobs/aws/eks-distro/cni-1-25-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: cni-plugins-1-25-test-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-25)" + 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-a19fc328d20553856310b2a580838c97fa0cca6d.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + make test -C $PROJECT_PATH + env: + - name: PROJECT_PATH + value: "projects/containernetworking/plugins" + - name: RELEASE_BRANCH + value: "1-25" + resources: + requests: + memory: "2Gi" + cpu: "1024m" + 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/cni-1-26-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-26-test-presubmits.yaml new file mode 100644 index 000000000..041a0c97f --- /dev/null +++ b/jobs/aws/eks-distro/cni-1-26-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: cni-plugins-1-26-test-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-26)" + 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-a19fc328d20553856310b2a580838c97fa0cca6d.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + make test -C $PROJECT_PATH + env: + - name: PROJECT_PATH + value: "projects/containernetworking/plugins" + - name: RELEASE_BRANCH + value: "1-26" + resources: + requests: + memory: "2Gi" + cpu: "1024m" + 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/cni-1-27-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-27-test-presubmits.yaml new file mode 100644 index 000000000..0746df217 --- /dev/null +++ b/jobs/aws/eks-distro/cni-1-27-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: cni-plugins-1-27-test-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-27)" + 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-a19fc328d20553856310b2a580838c97fa0cca6d.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + make test -C $PROJECT_PATH + env: + - name: PROJECT_PATH + value: "projects/containernetworking/plugins" + - name: RELEASE_BRANCH + value: "1-27" + resources: + requests: + memory: "2Gi" + cpu: "1024m" + 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/cni-1-28-test-presubmits.yaml b/jobs/aws/eks-distro/cni-1-28-test-presubmits.yaml new file mode 100644 index 000000000..6029ce966 --- /dev/null +++ b/jobs/aws/eks-distro/cni-1-28-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: cni-plugins-1-28-test-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|1-28)" + 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-a19fc328d20553856310b2a580838c97fa0cca6d.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/containernetworking/plugins" + - name: RELEASE_BRANCH + value: "1-28" + resources: + requests: + memory: "2Gi" + cpu: "1024m" + ephemeral-storage: "50Gi" + - 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/cni-1-X-test-presubmits.yaml b/templater/jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml new file mode 100644 index 000000000..f0b8eac60 --- /dev/null +++ b/templater/jobs/presubmit/eks-distro/cni-1-X-test-presubmits.yaml @@ -0,0 +1,18 @@ +jobName: cni-plugins-{{ .releaseBranch }}-test-presubmit +runIfChanged: EKS_DISTRO_MINIMAL_BASE_TAG_FILE|^build/lib/.*|Common.mk|projects/containernetworking/plugins/(build|Makefile|{{ .releaseBranch }}) +commands: +- make test -C $PROJECT_PATH +projectPath: projects/containernetworking/plugins +envVars: +- name: RELEASE_BRANCH + value: {{ .releaseBranch }} +resources: + limits: + cpu: 1024m + memory: 2Gi + requests: + cpu: 1024m + memory: 2Gi + {{ if or (eq .releaseBranch "1-25") (eq .releaseBranch "1-26") (eq .releaseBranch "1-27") (eq .releaseBranch "1-28") }} + ephemeral-storage: "50Gi" + {{ end }} \ No newline at end of file