Skip to content

Commit 9963a0c

Browse files
committed
fix basic auth ingress
1 parent d7ab5aa commit 9963a0c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1.7-rc3
1+
0.1.7-rc.5

helm-charts/kuberoapp/templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ metadata:
1818
name: {{ $fullName }}
1919
labels:
2020
{{- include "kuberoapp.labels" . | nindent 4 }}
21-
{{- with .Values.ingress.annotations }}
2221
annotations:
22+
{{- with .Values.ingress.annotations }}
2323
{{- toYaml . | nindent 4 }}
24+
{{- end }}
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 }}
29-
{{- end }}
3030
spec:
3131
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
3232
ingressClassName: {{ .Values.ingress.className }}

helm-charts/kuberoapp/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,9 +160,9 @@ resources: {}
160160

161161
basicAuth:
162162
realm: "Protected"
163-
accounts: []
164-
#- user: foo
165-
# password: bar
163+
accounts:
164+
- user: foo
165+
password: bar
166166
#- user: bar
167167
# password: foo
168168

0 commit comments

Comments
 (0)