Skip to content

Commit 353af31

Browse files
authored
Merge pull request #20432 from kmova/add-nfs-subdir
add post image build job for nfs-subdir-external-provisioner
2 parents 20dbd49 + 9172a76 commit 353af31

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

config/jobs/image-pushing/k8s-staging-sig-storage.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ readonly REPOS=(
3232
kubernetes-csi/csi-driver-nfs
3333
kubernetes-sigs/sig-storage-local-static-provisioner
3434
kubernetes-sigs/nfs-ganesha-server-and-external-provisioner
35+
kubernetes-sigs/nfs-subdir-external-provisioner
3536
)
3637

3738
# Repos which should eventually enable cloud image builds but currently

config/jobs/image-pushing/k8s-staging-sig-storage.yaml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,35 @@ postsubmits:
378378
- --scratch-bucket=gs://k8s-staging-sig-storage-gcb
379379
- --env-passthrough=PULL_BASE_REF
380380
- .
381+
kubernetes-sigs/nfs-subdir-external-provisioner:
382+
- name: post-nfs-subdir-external-provisioner-push-images
383+
cluster: k8s-infra-prow-build-trusted
384+
annotations:
385+
testgrid-dashboards: sig-storage-image-build
386+
decorate: true
387+
branches:
388+
# For publishing canary images.
389+
- ^master$
390+
- ^release-
391+
# For publishing tagged images. Those will only get built once, i.e.
392+
# existing images are not getting overwritten. A new tag must be set to
393+
# trigger another image build. Images are only built for tags that follow
394+
# the semver format (regex from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string).
395+
- ^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-]+)*))?$
396+
spec:
397+
serviceAccountName: gcb-builder
398+
containers:
399+
- image: gcr.io/k8s-testimages/image-builder:v20200901-ab141a0
400+
command:
401+
- /run.sh
402+
args:
403+
# this is the project GCB will run in, which is the same as the GCR
404+
# images are pushed to.
405+
- --project=k8s-staging-sig-storage
406+
# This is the same as above, but with -gcb appended.
407+
- --scratch-bucket=gs://k8s-staging-sig-storage-gcb
408+
- --env-passthrough=PULL_BASE_REF
409+
- .
381410
kubernetes-csi/csi-driver-iscsi:
382411
- name: post-csi-driver-iscsi-push-images
383412
cluster: k8s-infra-prow-build-trusted
@@ -937,3 +966,34 @@ periodics:
937966
- --scratch-bucket=gs://k8s-staging-sig-storage-gcb
938967
- --env-passthrough=PULL_BASE_REF
939968
- .
969+
- name: canary-nfs-subdir-external-provisioner-push-images
970+
cluster: k8s-infra-prow-build-trusted
971+
annotations:
972+
testgrid-dashboards: sig-storage-image-build
973+
decorate: true
974+
interval: 168h # one week
975+
extra_refs:
976+
# This also becomes the current directory for run.sh and thus
977+
# the cloud image build.
978+
- org: kubernetes-csi
979+
repo: nfs-subdir-external-provisioner
980+
base_ref: master
981+
spec:
982+
serviceAccountName: gcb-builder
983+
containers:
984+
- image: gcr.io/k8s-testimages/image-builder:v20200901-ab141a0
985+
command:
986+
- /run.sh
987+
env:
988+
# We need to emulate a pull job for the cloud build to work the same
989+
# way as it usually does.
990+
- name: PULL_BASE_REF
991+
value: master
992+
args:
993+
# this is the project GCB will run in, which is the same as the GCR
994+
# images are pushed to.
995+
- --project=k8s-staging-sig-storage
996+
# This is the same as above, but with -gcb appended.
997+
- --scratch-bucket=gs://k8s-staging-sig-storage-gcb
998+
- --env-passthrough=PULL_BASE_REF
999+
- .

0 commit comments

Comments
 (0)