This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 4d59eb77c fix(helm): extra environment variables
4d59eb77c is described below
commit 4d59eb77c6884fc5e1ed9cbfb4a070832ad948c4
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 eeceebdd4..b9a520b73 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