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:
22
22
{{- with .Values.ingress.annotations }}
23
23
{{- toYaml . | nindent 4 }}
24
24
{{- end }}
25
- {{- if gt (len .Values.basicAuth.accounts) 0 }}
25
+ {{- if .Values.basicAuth.enabled }}
26
26
nginx.ingress.kubernetes.io/auth-secret : {{ include "kuberoapp.fullname" . }}-htpasswd
27
27
nginx.ingress.kubernetes.io/auth-type : basic
28
28
nginx.ingress.kubernetes.io/auth-realm : {{ .Values.basicAuth.realm | quote }}
Original file line number Diff line number Diff line change 2
2
{{- $accounts := .Values.basicAuth.accounts }}
3
3
{{- $val := "" }}
4
4
{{- 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 }}
7
6
{{- end }}
8
7
apiVersion : v1
9
8
kind : Secret
Original file line number Diff line number Diff line change @@ -159,12 +159,15 @@ resources: {}
159
159
# memory: 128Mi
160
160
161
161
basicAuth :
162
+ enabled : false
162
163
realm : " Protected"
163
164
accounts : []
164
165
# - user: foo
165
166
# pass: bar
167
+ # hash: ""
166
168
# - user: bar
167
169
# pass: foo
170
+ # hash: ""
168
171
169
172
autoscaling :
170
173
enabled : false
You can’t perform that action at this time.
0 commit comments