File tree 2 files changed +12
-1
lines changed
2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -143,6 +143,17 @@ load _helpers
143
143
[ " ${actual} " = " nginx" ]
144
144
}
145
145
146
+ @test " server/ingress: ingressClassName is not added by default" {
147
+ cd ` chart_dir`
148
+
149
+ local actual=$( helm template \
150
+ --show-only templates/server-ingress.yaml \
151
+ --set ' server.ingress.enabled=true' \
152
+ . | tee /dev/stderr |
153
+ yq -r ' .spec.ingressClassName' | tee /dev/stderr)
154
+ [ " ${actual} " = " null" ]
155
+ }
156
+
146
157
@test " server/ingress: uses active service when ha by default - yaml" {
147
158
cd ` chart_dir`
148
159
Original file line number Diff line number Diff line change @@ -263,7 +263,7 @@ server:
263
263
264
264
# Optionally use ingressClassName instead of deprecated annotation.
265
265
# See: https://kubernetes.io/docs/concepts/services-networking/ingress/#deprecated-annotation
266
- ingressClassName : ~
266
+ ingressClassName : " "
267
267
268
268
# When HA mode is enabled and K8s service registration is being used,
269
269
# configure the ingress to point to the Vault active service.
You can’t perform that action at this time.
0 commit comments