Skip to content

Commit 4986403

Browse files
committed
update sig-storage image list and promotion script
The COSI project has 2 images that need to be promoted to the k8s.io registry for its latest release. COSI staged images previously had multiple tags including the semver tag. The sig-storage `generate.sh` script doesn't output multi-tagged images correctly, so COSI modified its release tagging to use only the semver tag for staged release images. In order to filter out existing staged COSI images that have multiple tags, introduce an inverted grep to the script in this commit. Run the script to generate an updated `images.yaml`. Signed-off-by: Blaine Gardner <[email protected]>
1 parent 41426b5 commit 4986403

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

registry.k8s.io/images/k8s-staging-sig-storage/generate.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,8 @@ for image in "${images[@]}"; do
6161
--format="get(digest, tags)" \
6262
--sort-by="tags" \
6363
--filter="${filter}" \
64+
| grep --invert-match ';' \
6465
| sed -e 's/\([^ ]*\)\t\(.*\)/ "\1": [ "\2" ]/'
66+
# note: grep invert ';': for images with multiple tags, listed tags are separated by semicolons
67+
# this script doesn't handle multi-tagged images, so ignore them to avoid image promotion errors
6568
done

registry.k8s.io/images/k8s-staging-sig-storage/images.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,10 @@
287287
"sha256:3cdf324ca24f0900b1f639b1177a939a3d99ba66cec3db1e2ccfb1d52f2ad7f4": [ "v4.9.0" ]
288288
- name: objectstorage-controller
289289
dmap:
290+
"sha256:068530265e6099c7e06f969a0b239096b512319c5fa6c1ebcbd310802dcc68c8": [ "v0.2.1" ]
290291
- name: objectstorage-sidecar
291292
dmap:
293+
"sha256:c2c422ad625cebd861c9d2be443c9c2abebcfd925b09a779fa5186e63351b24e": [ "v0.2.1" ]
292294
- name: smbplugin
293295
dmap:
294296
"sha256:e7d37907128b9eadf5208e63ea926dd230ef1ebbdf0de2b6d9b7cd6fbe1ef053": [ "v1.10.0" ]

0 commit comments

Comments
 (0)