Skip to content

Commit

Permalink
update all the tests to use kube-version 1.27.x instead of 1.22.x so …
Browse files Browse the repository at this point in the history
…we're supporting supported versions of kubernetes

Signed-off-by: jessebot <[email protected]>
  • Loading branch information
jessebot authored and naphelps committed May 29, 2024
1 parent 8f700eb commit 547020f
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion test/unit/injector-disruptionbudget.bats
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ load _helpers
local actual=$(helm template \
--show-only templates/injector-disruptionbudget.yaml \
--set 'injector.podDisruptionBudget.minAvailable=2' \
--kube-version 1.22.5 \
--kube-version 1.27.5 \
. | tee /dev/stderr |
yq '.apiVersion == "policy/v1"' | tee /dev/stderr)
[ "${actual}" = "true" ]
Expand Down
2 changes: 1 addition & 1 deletion test/unit/server-ha-disruptionbudget.bats
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ load _helpers
--show-only templates/server-disruptionbudget.yaml \
--set 'server.ha.enabled=true' \
--set 'server.ha.replicas=1' \
--kube-version 1.22.5 \
--kube-version 1.27.5 \
. | tee /dev/stderr |
yq '.apiVersion == "policy/v1"' | tee /dev/stderr)
[ "${actual}" = "true" ]
Expand Down
4 changes: 2 additions & 2 deletions test/unit/server-headless-service.bats
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ load _helpers
cd `chart_dir`
local actual=$(helm template \
--show-only templates/server-headless-service.yaml \
--kube-version 1.22.0 \
--kube-version 1.27.0 \
--set 'server.service.ipFamilyPolicy=PreferDualStack' \
. | tee /dev/stderr |
yq -r '.spec.ipFamilyPolicy' | tee /dev/stderr)
Expand All @@ -90,7 +90,7 @@ load _helpers
cd `chart_dir`
local actual=$(helm template \
--show-only templates/server-headless-service.yaml \
--kube-version 1.22.0 \
--kube-version 1.27.0 \
--set 'server.service.ipFamilies={IPv4,IPv6}' \
. | tee /dev/stderr |
yq -r '.spec.ipFamilies' | tee /dev/stderr)
Expand Down
4 changes: 2 additions & 2 deletions test/unit/server-service.bats
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ load _helpers
cd `chart_dir`
local actual=$(helm template \
--show-only templates/server-service.yaml \
--kube-version 1.22.0 \
--kube-version 1.27.0 \
--set 'server.service.ipFamilyPolicy=PreferDualStack' \
. | tee /dev/stderr |
yq -r '.spec.ipFamilyPolicy' | tee /dev/stderr)
Expand All @@ -503,7 +503,7 @@ load _helpers
cd `chart_dir`
local actual=$(helm template \
--show-only templates/server-service.yaml \
--kube-version 1.22.0 \
--kube-version 1.27.0 \
--set 'server.service.ipFamilies={IPv4,IPv6}' \
. | tee /dev/stderr |
yq -r '.spec.ipFamilies' | tee /dev/stderr)
Expand Down
6 changes: 3 additions & 3 deletions test/unit/server-statefulset.bats
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ load _helpers
cd `chart_dir`
local actual=$(helm template \
-s templates/server-statefulset.yaml \
--kube-version "1.22" \
--kube-version "1.27" \
. | tee /dev/stderr |
yq -r '.spec.persistentVolumeClaimRetentionPolicy' | tee /dev/stderr)
[ "${actual}" = "null" ]
Expand All @@ -238,7 +238,7 @@ load _helpers
cd `chart_dir`
local actual=$(helm template \
-s templates/server-statefulset.yaml \
--kube-version "1.22" \
--kube-version "1.27" \
--set 'server.persistentVolumeClaimRetentionPolicy.whenDeleted=Delete' \
. | tee /dev/stderr |
yq -r '.spec.persistentVolumeClaimRetentionPolicy.whenDeleted' | tee /dev/stderr)
Expand All @@ -249,7 +249,7 @@ load _helpers
cd `chart_dir`
local actual=$(helm template \
-s templates/server-statefulset.yaml \
--kube-version "1.22" \
--kube-version "1.27" \
--set 'server.persistentVolumeClaimRetentionPolicy.whenScaled=Delete' \
. | tee /dev/stderr |
yq -r '.spec.persistentVolumeClaimRetentionPolicy.whenScaled' | tee /dev/stderr)
Expand Down
4 changes: 2 additions & 2 deletions test/unit/ui-service.bats
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ load _helpers
cd `chart_dir`
local actual=$(helm template \
--show-only templates/ui-service.yaml \
--kube-version 1.22.0 \
--kube-version 1.27.0 \
--set 'ui.enabled=true' \
--set 'ui.serviceIPFamilyPolicy=PreferDualStack' \
. | tee /dev/stderr |
Expand All @@ -423,7 +423,7 @@ load _helpers
cd `chart_dir`
local actual=$(helm template \
--show-only templates/ui-service.yaml \
--kube-version 1.22.0 \
--kube-version 1.27.0 \
--set 'ui.enabled=true' \
--set 'ui.serviceIPFamilies={IPv4,IPv6}' \
. | tee /dev/stderr |
Expand Down

0 comments on commit 547020f

Please sign in to comment.