Skip to content

Commit b42eaef

Browse files
patrykw-splunkPatryk Wasielewski
andauthored
bugfix: add extraEnvs to splunk-operator helm-chart (#1490)
Co-authored-by: Patryk Wasielewski <[email protected]>
1 parent 69ad376 commit b42eaef

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

helm-chart/splunk-operator/templates/deployment.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ spec:
7979
{{- else }}
8080
value: {{ .Release.Namespace }}
8181
{{- end }}
82-
8382
- name: POD_NAME
8483
valueFrom:
8584
fieldRef:
@@ -90,6 +89,9 @@ spec:
9089
value: "{{ .Values.image.repository }}"
9190
- name: CLUSTER_DOMAIN
9291
value: {{ .Values.splunkOperator.clusterDomain | default "cluster.local" }}
92+
{{- with .Values.extraEnvs }}
93+
{{- toYaml . | trim | nindent 10 }}
94+
{{- end }}
9395
ports:
9496
{{- range .Values.splunkOperator.service.ports }}
9597
- containerPort: {{ .port }}

helm-chart/splunk-operator/values.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,3 +174,11 @@ extraManifests: []
174174
# spec:
175175
# securityPolicy:
176176
# name: "gcp-cloud-armor-policy-test"
177+
178+
# Additional envs to the splunk-operator container
179+
extraEnvs: []
180+
# extraEnvs
181+
# - name: POD_IP
182+
# valueFrom:
183+
# fieldRef:
184+
# fieldPath: status.podIP

0 commit comments

Comments
 (0)