Skip to content
Snippets Groups Projects
Commit 69e6855b authored by Jan Zickermann's avatar Jan Zickermann
Browse files

#2 OZG-7121 helm: Use ingressClassname to ingress, again

parent eacc3259
No related branches found
No related tags found
1 merge request!3Resolve "xta-test-server helm-chart mit Deployment und Keystore-Secrets/Certificate-Resources"
Pipeline #1366 passed
......@@ -6,6 +6,9 @@ metadata:
annotations:
haproxy-ingress.github.io/ssl-passthrough: "true"
spec:
{{- if (.Values.ingress).className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
rules:
- host: "{{ .Release.Name }}-{{ include "app.baseDomain" . }}"
http:
......
......@@ -43,6 +43,19 @@ tests:
- equal:
path: metadata.annotations["haproxy-ingress.github.io/ssl-passthrough"]
value: "true"
- it: should not create ingress tls/ingressClass by default
asserts:
- isNull:
path: spec.ingressClassName
- it: should set ingress tls/ingressClass
set:
ingress:
className: ingress
asserts:
- equal:
path: spec.ingressClassName
value: ingress
- it: should create rules correctly
asserts:
- equal:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment