Skip to content

Commit bd1a25c

Browse files
committed
add backward compatibility
1 parent dfb556e commit bd1a25c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

helm-charts/kuberoapp/templates/ingress.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ metadata:
2121
{{- with .Values.ingress.annotations }}
2222
annotations:
2323
{{- toYaml . | nindent 4 }}
24+
{{- if .Values.basicAuth }}
2425
{{- if gt (len .Values.basicAuth.accounts) 0 }}
2526
nginx.ingress.kubernetes.io/auth-secret: {{ include "kuberoapp.fullname" . }}-htpasswd
2627
nginx.ingress.kubernetes.io/auth-type: basic
2728
nginx.ingress.kubernetes.io/auth-realm: {{ .Values.basicAuth.realm | quote }}
2829
{{- end }}
30+
{{- end }}
2931
{{- end }}
3032
spec:
3133
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}

0 commit comments

Comments
 (0)