Skip to content

Commit

Permalink
Check that annotations are not set by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Swenson committed Mar 18, 2024
1 parent de9f647 commit fd5abeb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/unit/server-statefulset.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit fd5abeb

Please sign in to comment.