Skip to content

Commit 18a6031

Browse files
committed
Allow setting orchestrator.secretName when deploying from helm
1 parent 52a868d commit 18a6031

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
99
### Changed
1010
### Removed
1111
### Fixed
12+
* `orchestrator.secretName` is ignored in helm charts
1213

1314
## [0.6.1] - 2021-12-22
1415
### Changed

deploy/charts/mysql-operator/templates/_orchestrator-helpers.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
{{- end }}
2121

2222
{{- define "orchestrator.secretName" -}}
23-
{{- if .Values.orchestrator.secretName }}
24-
{{ .Values.orchestrator.secretName }}
25-
{{- else }}
26-
{{ include "orchestrator.fullname" . }}
27-
{{- end }}
23+
{{- if .Values.orchestrator.secretName -}}
24+
{{ .Values.orchestrator.secretName }}
25+
{{- else -}}
26+
{{ include "orchestrator.fullname" . }}
27+
{{- end -}}
2828
{{- end }}
2929

3030
{{- define "orchestrator.apiURL" -}}

deploy/charts/mysql-operator/templates/statefulset.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,12 @@ spec:
4444
- name: ORC_TOPOLOGY_USER
4545
valueFrom:
4646
secretKeyRef:
47-
name: {{ template "orchestrator.fullname" . }}
47+
name: {{ include "orchestrator.secretName" . }}
4848
key: TOPOLOGY_USER
4949
- name: ORC_TOPOLOGY_PASSWORD
5050
valueFrom:
5151
secretKeyRef:
52-
name: {{ template "orchestrator.fullname" . }}
52+
name: {{ include "orchestrator.secretName" . }}
5353
key: TOPOLOGY_PASSWORD
5454
{{- if .Values.extraEnv }}
5555
{{- toYaml .Values.extraEnv | nindent 12 }}
@@ -107,7 +107,7 @@ spec:
107107
envFrom:
108108
- prefix: ORC_
109109
secretRef:
110-
name: {{ template "orchestrator.fullname" . }}
110+
name: {{ include "orchestrator.secretName" . }}
111111
volumeMounts:
112112
- name: data
113113
mountPath: /var/lib/orchestrator

0 commit comments

Comments
 (0)