This is an automated email from the ASF dual-hosted git repository.
gfournier pushed a commit to branch release-2.6.x
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/release-2.6.x by this push:
new be0e13aeb fix(helm): extra environment variables
be0e13aeb is described below
commit be0e13aebe42617e4d5c28dd1edff3c17ff0c4ec
Author: Ievgenii Shepeliuk <[email protected]>
AuthorDate: Fri Feb 28 14:17:47 2025 +0200
fix(helm): extra environment variables
Signed-off-by: Ievgenii Shepeliuk <[email protected]>
---
helm/camel-k/templates/operator-deployment.yaml | 3 +++
helm/camel-k/values.yaml | 6 ++++++
2 files changed, 9 insertions(+)
diff --git a/helm/camel-k/templates/operator-deployment.yaml
b/helm/camel-k/templates/operator-deployment.yaml
index b22f98732..74c5e65d7 100644
--- a/helm/camel-k/templates/operator-deployment.yaml
+++ b/helm/camel-k/templates/operator-deployment.yaml
@@ -73,6 +73,9 @@ spec:
fieldPath: metadata.namespace
- name: OPERATOR_ID
value: {{ .Values.operator.operatorId }}
+ {{- with .Values.operator.extraEnv }}
+ {{- . | toYaml | nindent 12 }}
+ {{- end }}
image: {{ .Values.operator.image }}
imagePullPolicy: IfNotPresent
livenessProbe:
diff --git a/helm/camel-k/values.yaml b/helm/camel-k/values.yaml
index aeaa86d2a..cbbc0930b 100644
--- a/helm/camel-k/values.yaml
+++ b/helm/camel-k/values.yaml
@@ -48,3 +48,9 @@ operator:
serviceAccount:
annotations:
+
+ ## Extra environment variables.
+ ## ref:
https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
+ extraEnv: []
+ # - name: MY_VAR
+ # value: my_value