Skip to content

Commit 7774fab

Browse files
Add hooks to specify additional volumes and additional volume mounts (#155)
Is particularly useful for configuring custom CAs and other config data
1 parent 033faaf commit 7774fab

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

charts/deployment-operator/templates/deployment.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ spec:
5858
port: http
5959
resources:
6060
{{- toYaml .Values.resources | nindent 12 }}
61+
{{ if .Values.additionalVolumeMounts }}
62+
volumeMounts:
63+
{{ toYaml .Values.additionalVolumeMounts | nindent 12 }}
64+
{{ end }}
6165
- name: {{ .Chart.Name }}-agentk
6266
securityContext:
6367
{{- toYaml .Values.securityContext | nindent 12 }}
@@ -125,6 +129,9 @@ spec:
125129
mountPath: /etc/agentk/config
126130
readOnly: true
127131
{{- end }}
132+
{{ if .Values.additionalVolumeMounts }}
133+
{{ toYaml .Values.additionalVolumeMounts | nindent 12 }}
134+
{{ end }}
128135
volumes:
129136
- name: service-account-token-volume
130137
projected:
@@ -156,6 +163,9 @@ spec:
156163
defaultMode: 0444
157164
name: {{ include "deployment-operator.fullname" . }}
158165
{{- end }}
166+
{{ if .Values.additioanlVolumes }}
167+
{{ toYaml .Values.additionalVolumes | nindent 8 }}
168+
{{ end }}
159169
{{- with .Values.nodeSelector }}
160170
nodeSelector:
161171
{{- toYaml . | nindent 8 }}

charts/deployment-operator/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
# This is a YAML-formatted file.
33
# Declare variables to be passed into your templates.
44

5+
additionalVolumes: ~
6+
additionalVolumeMounts: ~
7+
58
replicaCount: 1
69

710
args:

0 commit comments

Comments
 (0)