File tree Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Expand file tree Collapse file tree 4 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1- 0.1.7-rc.6
1+ 0.1.7-rc.7
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ metadata:
2222 {{- with .Values.ingress.annotations }}
2323 {{- toYaml . | nindent 4 }}
2424 {{- end }}
25- {{- if gt (len .Values.basicAuth.accounts) 0 }}
25+ {{- if .Values.basicAuth.enabled }}
2626 nginx.ingress.kubernetes.io/auth-secret : {{ include "kuberoapp.fullname" . }}-htpasswd
2727 nginx.ingress.kubernetes.io/auth-type : basic
2828 nginx.ingress.kubernetes.io/auth-realm : {{ .Values.basicAuth.realm | quote }}
Original file line number Diff line number Diff line change 22{{- $accounts := .Values.basicAuth.accounts }}
33{{- $val := "" }}
44{{- range $account := $accounts }}
5- {{- $hash := htpasswd $account.user $account.pass }}
6- {{- $val = printf "%s%s\n" $val $hash }}
5+ {{- $val = printf "%s%s\n" $val $account.hash }}
76{{- end }}
87apiVersion : v1
98kind : Secret
Original file line number Diff line number Diff line change @@ -159,12 +159,15 @@ resources: {}
159159 # memory: 128Mi
160160
161161basicAuth :
162+ enabled : false
162163 realm : " Protected"
163164 accounts : []
164165 # - user: foo
165166 # pass: bar
167+ # hash: ""
166168 # - user: bar
167169 # pass: foo
170+ # hash: ""
168171
169172autoscaling :
170173 enabled : false
You can’t perform that action at this time.
0 commit comments