From e47a22f996e31d802f1f21ca47ef4674ca0c69b7 Mon Sep 17 00:00:00 2001 From: Stefan Berthold Date: Tue, 13 Feb 2024 10:19:59 +0000 Subject: [PATCH 1/2] fix integration-cleanup.sh to match prefix The `-f` filter is a regex and should match the prefix `test-`, thus, the regex should be `^test-`. Without `^`, the search string is looked up in the entire release name. --- hack/bin/integration-cleanup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/bin/integration-cleanup.sh b/hack/bin/integration-cleanup.sh index 578acb2a8c..e814fa4385 100755 --- a/hack/bin/integration-cleanup.sh +++ b/hack/bin/integration-cleanup.sh @@ -8,7 +8,7 @@ set -euo pipefail DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -releases=$(helm list -A -f 'test-' -o json | +releases=$(helm list -A -f '^test-' -o json | jq -r -f "$DIR/filter-old-releases.jq") if [ -n "$releases" ]; then From 09c48eb1377b76b42f69e9e67603986a7e26c4b8 Mon Sep 17 00:00:00 2001 From: Stefan Berthold Date: Tue, 13 Feb 2024 10:26:09 +0000 Subject: [PATCH 2/2] changelog --- changelog.d/5-internal/integration-cleanup-sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelog.d/5-internal/integration-cleanup-sh diff --git a/changelog.d/5-internal/integration-cleanup-sh b/changelog.d/5-internal/integration-cleanup-sh new file mode 100644 index 0000000000..343d9f0b3c --- /dev/null +++ b/changelog.d/5-internal/integration-cleanup-sh @@ -0,0 +1,2 @@ +Fix integration-cleanup.sh, now only cleans up releases with `test-` prefixes in +their names.