Skip to content

Commit d7ab5aa

Browse files
committed
use empty value
1 parent e70da25 commit d7ab5aa

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

helm-charts/kuberoapp/templates/ingress.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@ metadata:
2121
{{- with .Values.ingress.annotations }}
2222
annotations:
2323
{{- toYaml . | nindent 4 }}
24-
{{- if .Values.basicAuth }}
2524
{{- if gt (len .Values.basicAuth.accounts) 0 }}
2625
nginx.ingress.kubernetes.io/auth-secret: {{ include "kuberoapp.fullname" . }}-htpasswd
2726
nginx.ingress.kubernetes.io/auth-type: basic
2827
nginx.ingress.kubernetes.io/auth-realm: {{ .Values.basicAuth.realm | quote }}
2928
{{- end }}
30-
{{- end }}
3129
{{- end }}
3230
spec:
3331
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}

helm-charts/kuberoapp/templates/secret-basic-auth.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
{{- if .Values.basicAuth }}
21
{{- if gt (len .Values.basicAuth.accounts) 0 }}
32
{{- $accounts := .Values.basicAuth.accounts }}
43
{{- $val := "" }}
@@ -14,4 +13,3 @@ type: Opaque
1413
data:
1514
auth: {{ $val | trimSuffix "\n" | b64enc }}
1615
{{- end }}
17-
{{- end }}

helm-charts/kuberoapp/values.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,9 @@ resources: {}
158158
# cpu: 100m
159159
# memory: 128Mi
160160

161-
#basicAuth:
162-
# realm: "Protected"
163-
# accounts: []
161+
basicAuth:
162+
realm: "Protected"
163+
accounts: []
164164
#- user: foo
165165
# password: bar
166166
#- user: bar

0 commit comments

Comments
 (0)