From fd5abeb6c549edef5d84bffd563a6f7c7bcc7c0b Mon Sep 17 00:00:00 2001 From: Christopher Swenson Date: Mon, 18 Mar 2024 10:27:17 -0700 Subject: [PATCH] Check that annotations are not set by default --- test/unit/server-statefulset.bats | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/unit/server-statefulset.bats b/test/unit/server-statefulset.bats index aee98ce8b..b2b8efe4e 100755 --- a/test/unit/server-statefulset.bats +++ b/test/unit/server-statefulset.bats @@ -1690,6 +1690,15 @@ load _helpers [ "${actual}" = "true" ] } +@test "server/standalone-StatefulSet: config checksum annotation off does not set annotations" { + cd `chart_dir` + local actual=$(helm template \ + --show-only templates/server-statefulset.yaml \ + . | tee /dev/stderr | + yq '.spec.template.metadata.annotations | length == 0' | tee /dev/stderr) + [ "${actual}" = "true" ] +} + @test "server/standalone-StatefulSet: config checksum annotation can be enabled" { cd `chart_dir` local actual=$(helm template \