Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add external-snapshot-metadata repo to CSI jobs #33303

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/jobs/image-pushing/k8s-staging-sig-storage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ readonly REPOS=(
kubernetes-csi/external-provisioner
kubernetes-csi/external-resizer
kubernetes-csi/external-snapshotter
kubernetes-csi/external-snapshot-metadata
kubernetes-csi/livenessprobe
kubernetes-csi/node-driver-registrar
kubernetes-csi/csi-driver-nfs
Expand Down
71 changes: 71 additions & 0 deletions config/jobs/image-pushing/k8s-staging-sig-storage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,46 @@ postsubmits:
- --scratch-bucket=gs://k8s-staging-sig-storage-gcb
- --env-passthrough=PULL_BASE_REF
- .
kubernetes-csi/external-snapshot-metadata:
- name: post-external-snapshot-metadata-push-images
rerun_auth_config:
github_team_slugs:
- org: kubernetes
slug: release-managers
- org: kubernetes
slug: test-infra-admins
- org: kubernetes
slug: sig-storage-image-build-admins
cluster: k8s-infra-prow-build-trusted
annotations:
testgrid-dashboards: sig-storage-image-build, sig-k8s-infra-gcb
decorate: true
decoration_config:
timeout: 240m
grace_period: 15m
branches:
# For publishing canary images.
- ^master$
- ^release-
# For publishing tagged images. Those will only get built once, i.e.
# existing images are not getting overwritten. A new tag must be set to
# trigger another image build. Images are only built for tags that follow
# the semver format (regex from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string).
- ^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$
spec:
serviceAccountName: gcb-builder
containers:
- image: gcr.io/k8s-staging-test-infra/image-builder:v20240909-d870e42d3d
command:
- /run.sh
args:
# this is the project GCB will run in, which is the same as the GCR
# images are pushed to.
- --project=k8s-staging-sig-storage
# This is the same as above, but with -gcb appended.
- --scratch-bucket=gs://k8s-staging-sig-storage-gcb
- --env-passthrough=PULL_BASE_REF
- .
kubernetes-csi/livenessprobe:
- name: post-livenessprobe-push-images
rerun_auth_config:
Expand Down Expand Up @@ -1060,6 +1100,37 @@ periodics:
- --scratch-bucket=gs://k8s-staging-sig-storage-gcb
- --env-passthrough=PULL_BASE_REF
- .
- name: canary-external-snapshot-metadata-push-images
cluster: k8s-infra-prow-build-trusted
annotations:
testgrid-dashboards: sig-storage-image-build, sig-k8s-infra-gcb
decorate: true
interval: 168h # one week
extra_refs:
# This also becomes the current directory for run.sh and thus
# the cloud image build.
- org: kubernetes-csi
repo: external-snapshot-metadata
base_ref: master
spec:
serviceAccountName: gcb-builder
containers:
- image: gcr.io/k8s-staging-test-infra/image-builder:v20240909-d870e42d3d
command:
- /run.sh
env:
# We need to emulate a pull job for the cloud build to work the same
# way as it usually does.
- name: PULL_BASE_REF
value: master
args:
# this is the project GCB will run in, which is the same as the GCR
# images are pushed to.
- --project=k8s-staging-sig-storage
# This is the same as above, but with -gcb appended.
- --scratch-bucket=gs://k8s-staging-sig-storage-gcb
- --env-passthrough=PULL_BASE_REF
- .
- name: canary-livenessprobe-push-images
cluster: k8s-infra-prow-build-trusted
annotations:
Expand Down
Loading