Skip to content

Commit

Permalink
add backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mms-gianni committed Jan 10, 2025
1 parent dfb556e commit bd1a25c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helm-charts/kuberoapp/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,13 @@ metadata:
{{- with .Values.ingress.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- if .Values.basicAuth }}
{{- 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 }}
{{- end }}
spec:
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
Expand Down

0 comments on commit bd1a25c

Please sign in to comment.