diff --git a/src/main/helm/templates/ingress.yaml b/src/main/helm/templates/ingress.yaml index b82457c910dd8cc9a20d8f0b71ff39a441b1e0c9..1b180c262de9bde5f2de2b2b1aa1fa005294b6a4 100644 --- a/src/main/helm/templates/ingress.yaml +++ b/src/main/helm/templates/ingress.yaml @@ -22,6 +22,7 @@ # unter der Lizenz sind dem Lizenztext zu entnehmen. # +{{- if not (.Values.ingress).disabled }} apiVersion: networking.k8s.io/v1 kind: Ingress metadata: @@ -62,4 +63,5 @@ spec: {{- else }} secretName: {{ .Values.ozgcloud.bezeichner }}-{{ .Release.Name }}-tls {{- end }} - {{- end }} \ No newline at end of file + {{- end }} +{{- end }} \ No newline at end of file diff --git a/src/test/helm/ingress_defaults_annotation_test.yaml b/src/test/helm/ingress_defaults_annotation_test.yaml index 069e38601bcb06bff3722c7929a2d06cf8354ce0..1416cca701d997286db629fd8841bb63f8c9e47a 100644 --- a/src/test/helm/ingress_defaults_annotation_test.yaml +++ b/src/test/helm/ingress_defaults_annotation_test.yaml @@ -51,3 +51,11 @@ tests: - equal: path: spec.tls[0].secretName value: helm-alfa-tls + + - it: should disable ingress + set: + ingress: + disabled: true + asserts: + - hasDocuments: + count: 0 \ No newline at end of file