Skip to content

Commit 2997e37

Browse files
author
Barkha Choithani
committed
updated password len to 10 and added base64 and quotes for password in values
1 parent ff282b7 commit 2997e37

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

charts/templates/secret.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- $adminPassword := (randAlphaNum 8) | b64enc | quote }}
1+
{{- $adminPassword := (randAlphaNum 10) | b64enc | quote }}
22
{{- $secret := (lookup "v1" "Secret" .Release.Namespace .Release.Name ) }}
33
{{- if $secret }}
44
{{- $adminPassword = index $secret.data "password" }}
@@ -14,9 +14,9 @@ metadata:
1414
type: kubernetes.io/basic-auth
1515
data:
1616
{{- if .Values.auth.adminPassword }}
17-
password: {{ .Values.auth.adminPassword }}
17+
password: {{ .Values.auth.adminPassword | b64enc | quote }}
1818
{{- else }}
1919
password: {{ $adminPassword }}
2020
{{- end }}
2121
stringData:
22-
username: {{ .Values.auth.adminUsername}}
22+
username: {{ .Values.auth.adminUsername }}

charts/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fullnameOverride: ""
5050
# Configure Marklogic Admin Username and Password
5151
auth:
5252
adminUsername: admin
53-
adminPassword: ""
53+
adminPassword: admin
5454

5555
# Configure Affinity property for scheduling pods to nodes
5656
# ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity

0 commit comments

Comments
 (0)