From 91da35650df00fd6586ebfeec4b358ee405b4ba5 Mon Sep 17 00:00:00 2001 From: Joao Gilberto Magalhaes Date: Thu, 25 Jun 2026 21:32:53 -0400 Subject: [PATCH] Add extraEnv support to Helm chart for custom environment variables --- helm/easyhaproxy/templates/deployment.yaml | 3 +++ helm/easyhaproxy/values.yaml | 14 +++++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/helm/easyhaproxy/templates/deployment.yaml b/helm/easyhaproxy/templates/deployment.yaml index 48ad3c7..2e38645 100644 --- a/helm/easyhaproxy/templates/deployment.yaml +++ b/helm/easyhaproxy/templates/deployment.yaml @@ -99,3 +99,6 @@ spec: {{- end }} - name: EASYHAPROXY_STATUS_UPDATE_INTERVAL value: {{ .Values.ingressStatus.updateInterval | quote }} + {{- with .Values.extraEnv }} + {{- toYaml . | nindent 12 }} + {{- end }} diff --git a/helm/easyhaproxy/values.yaml b/helm/easyhaproxy/values.yaml index 496d930..97bc8ab 100644 --- a/helm/easyhaproxy/values.yaml +++ b/helm/easyhaproxy/values.yaml @@ -96,5 +96,17 @@ easyhaproxy: # When service.create is true (Deployment with ClusterIP/NodePort), this is ignored masterNode: label: easyhaproxy/node - values: + values: - master + +# Extra environment variables to inject into the container +# Supports all Kubernetes env var forms: value, valueFrom (secretKeyRef, configMapKeyRef, fieldRef) +# extraEnv: +# - name: MY_VAR +# value: "my-value" +# - name: SECRET_VAR +# valueFrom: +# secretKeyRef: +# name: my-secret +# key: my-key +extraEnv: []