Skip to content

Commit 478a072

Browse files
rdksapguewa
authored andcommitted
feat: add env to helm chart deployment tempalte and values
On-behalf-of: Radek Schekalla (SAP) <[email protected]> Signed-off-by: Radek Schekalla (SAP) <[email protected]>
1 parent 835afae commit 478a072

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

charts/mcp-operator/templates/deployment.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ spec:
9191
{{- if .Values.apiserver.worker.intervalTime }}
9292
- --apiserver-worker-interval={{ .Values.apiserver.worker.intervalTime }}
9393
{{- end }}
94+
env:
95+
{{- with .Values.managedcontrolplane.extraEnv }}
96+
{{- toYaml . | nindent 10 }}
97+
{{- end }}
9498
ports:
9599
{{- if not .Values.webhooks.disabled }}
96100
- name: webhooks-https

charts/mcp-operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ webhooks:
5454
managedcontrolplane:
5555
disabled: false
5656

57+
# Extra environment variables to add to the init container.
58+
extraEnv: [ ]
59+
5760
apiserver:
5861
disabled: false
5962
# architecture:

0 commit comments

Comments
 (0)