We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb556e commit bd1a25cCopy full SHA for bd1a25c
helm-charts/kuberoapp/templates/ingress.yaml
@@ -21,11 +21,13 @@ metadata:
21
{{- with .Values.ingress.annotations }}
22
annotations:
23
{{- toYaml . | nindent 4 }}
24
+ {{- if .Values.basicAuth }}
25
{{- if gt (len .Values.basicAuth.accounts) 0 }}
26
nginx.ingress.kubernetes.io/auth-secret: {{ include "kuberoapp.fullname" . }}-htpasswd
27
nginx.ingress.kubernetes.io/auth-type: basic
28
nginx.ingress.kubernetes.io/auth-realm: {{ .Values.basicAuth.realm | quote }}
29
{{- end }}
30
+ {{- end }}
31
32
spec:
33
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
0 commit comments