From 253912d5330cca4f70198e0e72242f5a2c7d9d6e Mon Sep 17 00:00:00 2001 From: Ilya Alekseyev Date: Tue, 23 Jan 2024 14:51:43 -0500 Subject: [PATCH] Add Nutanix Cloud Provider Manager project Prow job --- .../cloud-provider-nutanix-presubmits.yaml | 79 +++++++++++++++++++ .../cloud-provider-nutanix-presubmits.yaml | 10 +++ 2 files changed, 89 insertions(+) create mode 100644 jobs/aws/eks-anywhere-build-tooling/cloud-provider-nutanix-presubmits.yaml create mode 100644 templater/jobs/presubmit/eks-anywhere-build-tooling/cloud-provider-nutanix-presubmits.yaml diff --git a/jobs/aws/eks-anywhere-build-tooling/cloud-provider-nutanix-presubmits.yaml b/jobs/aws/eks-anywhere-build-tooling/cloud-provider-nutanix-presubmits.yaml new file mode 100644 index 00000000..0f285a1f --- /dev/null +++ b/jobs/aws/eks-anywhere-build-tooling/cloud-provider-nutanix-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-anywhere-build-tooling: + - name: cluster-api-provider-nutanix-tooling-presubmit + always_run: false + run_if_changed: "EKS_DISTRO_MINIMAL_BASE_NONROOT_TAG_FILE|^build/lib/.*|Common.mk|projects/nutanix-cloud-native/cloud-provider-nutanix/.*" + cluster: "prow-presubmits-cluster" + error_on_eviction: true + max_concurrency: 10 + skip_report: false + decoration_config: + gcs_configuration: + bucket: s3://prowpresubmitsdataclusterstack-prowbucket7c73355c-vfwwxd2eb4gp + path_strategy: explicit + s3_credentials_secret: s3-credentials + labels: + image-build: "true" + disk-usage: "true" + spec: + serviceaccountName: presubmits-build-account + automountServiceAccountToken: false + containers: + - name: build-container + image: public.ecr.aws/eks-distro-build-tooling/builder-base:standard-e833940fcefab8ba3f0848a5da79fc7c3650404c.2 + command: + - bash + - -c + - > + trap 'touch /status/done && rm -rf /home/prow/go/src/' EXIT + && + build/lib/buildkit_check.sh + && + if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi + env: + - name: PROJECT_PATH + value: "projects/nutanix-cloud-native/cloud-provider-nutanix" + - name: GITHUB_TOKEN + valueFrom: + secretKeyRef: + name: public-access-github-token + key: token + 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 + - 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-anywhere-build-tooling/cloud-provider-nutanix-presubmits.yaml b/templater/jobs/presubmit/eks-anywhere-build-tooling/cloud-provider-nutanix-presubmits.yaml new file mode 100644 index 00000000..4aa993fe --- /dev/null +++ b/templater/jobs/presubmit/eks-anywhere-build-tooling/cloud-provider-nutanix-presubmits.yaml @@ -0,0 +1,10 @@ +jobName: cluster-api-provider-nutanix-tooling-presubmit +runIfChanged: EKS_DISTRO_MINIMAL_BASE_NONROOT_TAG_FILE|^build/lib/.*|Common.mk|projects/nutanix-cloud-native/cloud-provider-nutanix/.* +imageBuild: true +commands: +- if $(make check-project-path-exists); then make build -C $PROJECT_PATH; fi +projectPath: projects/nutanix-cloud-native/cloud-provider-nutanix +resources: + requests: + memory: 16Gi + cpu: 4