Skip to content

Commit 9654776

Browse files
authored
Add Helm values for volumes, volume mounts and extra environment variables for TLS configuration (#2399)
* feat: add extraEnv * feat: add volumes and volumeMounts * fix: globalMode if statement placement * feat: bump helm chart version
1 parent b000fda commit 9654776

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

charts/fdb-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ sources:
1515
type: application
1616
# This is the chart version. This version number should be incremented each time you make changes
1717
# to the chart and its templates, including the app version.
18-
version: 0.2.0
18+
version: 0.3.0
1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application.
2121
appVersion: v2.18.0

charts/fdb-operator/templates/manager/deployment.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,16 @@ spec:
7171
imagePullPolicy: {{ .Values.image.pullPolicy }}
7272
command:
7373
- /manager
74-
{{- if not .Values.globalMode.enabled }}
7574
env:
75+
{{- if not .Values.globalMode.enabled }}
7676
- name: WATCH_NAMESPACE
7777
valueFrom:
7878
fieldRef:
7979
fieldPath: metadata.namespace
8080
{{- end }}
81+
{{- with .Values.extraEnv }}
82+
{{- toYaml . | nindent 8 }}
83+
{{- end}}
8184
ports:
8285
- containerPort: 8080
8386
name: metrics
@@ -88,6 +91,9 @@ spec:
8891
mountPath: /var/log/fdb
8992
- name: fdb-binaries
9093
mountPath: /usr/bin/fdb
94+
{{- with .Values.volumeMounts }}
95+
{{- toYaml . | nindent 8 }}
96+
{{- end }}
9197
securityContext:
9298
{{- toYaml .Values.containerSecurityContext | nindent 10 }}
9399
livenessProbe:
@@ -115,3 +121,6 @@ spec:
115121
emptyDir: {}
116122
- name: fdb-binaries
117123
emptyDir: {}
124+
{{- with .Values.volumes }}
125+
{{- toYaml . | nindent 6 }}
126+
{{- end }}

charts/fdb-operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ containerSecurityContext:
4646
nodeSelector: {}
4747
affinity: {}
4848
tolerations: {}
49+
extraEnv: []
50+
volumes: []
51+
volumeMounts: []
4952
resources:
5053
limits:
5154
cpu: 500m

0 commit comments

Comments
 (0)