Skip to content

Commit

Permalink
fix basic auth ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Jan 10, 2025
1 parent d7ab5aa commit 9963a0c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.7-rc3
0.1.7-rc.5
4 changes: 2 additions & 2 deletions helm-charts/kuberoapp/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ metadata:
name: {{ $fullName }}
labels:
{{- include "kuberoapp.labels" . | nindent 4 }}
{{- with .Values.ingress.annotations }}
annotations:
{{- with .Values.ingress.annotations }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- if gt (len .Values.basicAuth.accounts) 0 }}
nginx.ingress.kubernetes.io/auth-secret: {{ include "kuberoapp.fullname" . }}-htpasswd
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-realm: {{ .Values.basicAuth.realm | quote }}
{{- end }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
ingressClassName: {{ .Values.ingress.className }}
Expand Down
6 changes: 3 additions & 3 deletions helm-charts/kuberoapp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ resources: {}

basicAuth:
realm: "Protected"
accounts: []
#- user: foo
# password: bar
accounts:
- user: foo
password: bar
#- user: bar
# password: foo

Expand Down

0 comments on commit 9963a0c

Please sign in to comment.