Skip to content

Commit 064e55f

Browse files
authored
add extraEnv and podLabels to helm chart deployment (#368)
Co-authored-by: Gabe Conradi <gconradi@seatgeek.com>
1 parent e970061 commit 064e55f

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/helm/reflector/templates/deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ metadata:
77
namespace: {{ .Release.Namespace }}
88
labels:
99
{{- include "reflector.labels" . | nindent 4 }}
10+
1011
spec:
1112
{{- if not .Values.autoscaling.enabled }}
1213
replicas: {{ .Values.replicaCount }}
@@ -22,6 +23,10 @@ spec:
2223
{{- end }}
2324
labels:
2425
{{- include "reflector.selectorLabels" . | nindent 8 }}
26+
{{- with .Values.podLabels }}
27+
{{- toYaml . | nindent 8 }}
28+
{{- end }}
29+
2530
spec:
2631
{{- with .Values.imagePullSecrets }}
2732
imagePullSecrets:
@@ -44,6 +49,10 @@ spec:
4449
value: {{ .Values.configuration.logging.minimumLevel | quote }}
4550
- name: ES_Reflector__Watcher__Timeout
4651
value: {{ .Values.configuration.watcher.timeout | quote }}
52+
{{- with .Values.extraEnv }}
53+
{{- toYaml . | nindent 12 }}
54+
{{- end }}
55+
4756
ports:
4857
- name: http
4958
containerPort: 25080

src/helm/reflector/values.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ serviceAccount:
4040
# If not set and create is true, a name is generated using the fullname template
4141
name: ""
4242

43+
# additional annotations to set on the pod
4344
podAnnotations: {}
45+
# additional labels to set on the pod
46+
podLabels: {}
47+
# additional env vars to add to the pod
48+
extraEnv: []
4449

4550
podSecurityContext:
4651
fsGroup: 2000
@@ -95,4 +100,4 @@ tolerations: []
95100

96101
affinity: {}
97102

98-
priorityClassName: ""
103+
priorityClassName: ""

0 commit comments

Comments
 (0)