Skip to content

Commit 76e7598

Browse files
Romain JACQUETrjacquet31
authored andcommitted
fix: invalid note for user that contains an underscore
the mongo db operator replace '_' in the secret name by '-', so do the same in the NOTES.txt
1 parent 5e8a9df commit 76e7598

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/mongodb-operated/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.metadata.name}" services {{ .Release.Name }}-mongodb-operated-svc
33
2. Get the connection strings for the users defined:
44
{{ range .Values.users }}
5-
kubectl get secret {{ $.Release.Name }}-mongodb-operated-{{ .db }}-{{ .name }} -o 'go-template={{ "{{" }} index .data "connectionString.standard" {{ "}}" }}' | base64 -d -w0
5+
kubectl get secret {{ $.Release.Name }}-mongodb-operated-{{ .db }}-{{ .name | replace "_" "-" }} -o 'go-template={{ "{{" }} index .data "connectionString.standard" {{ "}}" }}' | base64 -d -w0
66
{{ end }}

0 commit comments

Comments
 (0)