Skip to content

Commit a6b01ca

Browse files
authored
helm rabbitmq change auth key (#3347)
1 parent 6b1d1a6 commit a6b01ca

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

helm/defectdojo/templates/secret-rabbitmq.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
apiVersion: v1
33
kind: Secret
44
metadata:
5-
name: {{ .Values.rabbitmq.rabbitmq.existingPasswordSecret }}
5+
name: {{ .Values.rabbitmq.auth.existingPasswordSecret }}
66
labels:
77
app.kubernetes.io/name: {{ include "defectdojo.name" . }}
88
app.kubernetes.io/instance: {{ .Release.Name }}
@@ -14,13 +14,13 @@ metadata:
1414
helm.sh/hook-delete-policy: "before-hook-creation"
1515
type: Opaque
1616
data:
17-
{{- if .Values.rabbitmq.rabbitmq.password }}
18-
rabbitmq-password: {{ .Values.rabbitmq.rabbitmq.password | b64enc | quote }}
17+
{{- if .Values.rabbitmq.auth.password }}
18+
rabbitmq-password: {{ .Values.rabbitmq.auth.password | b64enc | quote }}
1919
{{- else }}
2020
rabbitmq-password: {{ randAlphaNum 10 | b64enc | quote }}
2121
{{- end}}
22-
{{- if .Values.rabbitmq.rabbitmq.erlangCookie }}
23-
rabbitmq-erlang-cookie: {{ .Values.rabbitmq.rabbitmq.erlangCookie | b64enc | quote }}
22+
{{- if .Values.rabbitmq.auth.erlangCookie }}
23+
rabbitmq-erlang-cookie: {{ .Values.rabbitmq.auth.erlangCookie | b64enc | quote }}
2424
{{- else }}
2525
rabbitmq-erlang-cookie: {{ randAlphaNum 32 | b64enc | quote }}
2626
{{- end }}

helm/defectdojo/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ cloudsql:
190190
rabbitmq:
191191
enabled: true
192192
replicas: 1
193-
rabbitmq:
193+
auth:
194194
password: ""
195195
erlangCookie: ""
196196
existingPasswordSecret: defectdojo-rabbitmq-specific

0 commit comments

Comments
 (0)