From 1ad4ec252e9e27d5c229f5489dc4caa51260f308 Mon Sep 17 00:00:00 2001 From: Patryk Wasielewski Date: Fri, 18 Apr 2025 11:45:16 +0200 Subject: [PATCH] bugfix: add extraEnvs to splunk-operator helm-chart --- helm-chart/splunk-operator/templates/deployment.yaml | 4 +++- helm-chart/splunk-operator/values.yaml | 8 ++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/helm-chart/splunk-operator/templates/deployment.yaml b/helm-chart/splunk-operator/templates/deployment.yaml index c1136248c..f6a185fd4 100644 --- a/helm-chart/splunk-operator/templates/deployment.yaml +++ b/helm-chart/splunk-operator/templates/deployment.yaml @@ -79,7 +79,6 @@ spec: {{- else }} value: {{ .Release.Namespace }} {{- end }} - - name: POD_NAME valueFrom: fieldRef: @@ -90,6 +89,9 @@ spec: value: "{{ .Values.image.repository }}" - name: CLUSTER_DOMAIN value: {{ .Values.splunkOperator.clusterDomain | default "cluster.local" }} +{{- with .Values.extraEnvs }} +{{- toYaml . | trim | nindent 10 }} +{{- end }} ports: {{- range .Values.splunkOperator.service.ports }} - containerPort: {{ .port }} diff --git a/helm-chart/splunk-operator/values.yaml b/helm-chart/splunk-operator/values.yaml index a79ed5f9f..31a342ae9 100644 --- a/helm-chart/splunk-operator/values.yaml +++ b/helm-chart/splunk-operator/values.yaml @@ -174,3 +174,11 @@ extraManifests: [] # spec: # securityPolicy: # name: "gcp-cloud-armor-policy-test" + +# Additional envs to the splunk-operator container +extraEnvs: [] +# extraEnvs +# - name: POD_IP +# valueFrom: +# fieldRef: +# fieldPath: status.podIP