Skip to content

Commit 2ec7aa9

Browse files
authored
update specified labels (#85)
1 parent 15dede2 commit 2ec7aa9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

release/create-release-tag.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ update_code() {
152152
# Update operator version for the integration tests
153153
# this is used when installing the operators.
154154
yq -i ".releases.tests.products[].operatorVersion |= sub(\"0.0.0-dev\", \"${RELEASE_TAG}\")" "$1/tests/release.yaml"
155+
156+
# Some tests perform label inspection and for these cases only specific labels should be updated.
157+
# N.B. don't do this for all test files as not all images will necessarily exist for the given release tag.
158+
find "$1/tests/templates/kuttl" -type f -print0 | xargs -0 sed -i "/app.kubernetes.io\/version/{ s/stackable0.0.0-dev/stackable$RELEASE_TAG/ }"
155159
}
156160

157161
push_branch() {

0 commit comments

Comments
 (0)