File tree Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Expand file tree Collapse file tree 3 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -21,13 +21,11 @@ metadata:
2121 {{- with .Values.ingress.annotations }}
2222 annotations :
2323 {{- toYaml . | nindent 4 }}
24- {{- if .Values.basicAuth }}
2524 {{- if gt (len .Values.basicAuth.accounts) 0 }}
2625 nginx.ingress.kubernetes.io/auth-secret : {{ include "kuberoapp.fullname" . }}-htpasswd
2726 nginx.ingress.kubernetes.io/auth-type : basic
2827 nginx.ingress.kubernetes.io/auth-realm : {{ .Values.basicAuth.realm | quote }}
2928 {{- end }}
30- {{- end }}
3129 {{- end }}
3230spec :
3331 {{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
Original file line number Diff line number Diff line change 1- {{- if .Values.basicAuth }}
21{{- if gt (len .Values.basicAuth.accounts) 0 }}
32{{- $accounts := .Values.basicAuth.accounts }}
43{{- $val := "" }}
@@ -14,4 +13,3 @@ type: Opaque
1413data :
1514 auth : {{ $val | trimSuffix "\n" | b64enc }}
1615{{- end }}
17- {{- end }}
Original file line number Diff line number Diff line change @@ -158,9 +158,9 @@ resources: {}
158158 # cpu: 100m
159159 # memory: 128Mi
160160
161- # basicAuth:
162- # realm: "Protected"
163- # accounts: []
161+ basicAuth :
162+ realm : " Protected"
163+ accounts : []
164164 # - user: foo
165165 # password: bar
166166 # - user: bar
You can’t perform that action at this time.
0 commit comments