Skip to content

Commit 1bd5eab

Browse files
authored
Merge pull request #2215 from clbx/master
Add helm chart configuration to add init containers to the node daemonset
2 parents 3886a4b + 04827ca commit 1bd5eab

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

charts/aws-ebs-csi-driver/templates/_node-windows.tpl

+4
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ spec:
5757
hostProcess: true
5858
runAsUserName: "NT AUTHORITY\\SYSTEM"
5959
hostNetwork: true
60+
{{- with .Values.node.initContainers }}
61+
initContainers:
62+
{{- toYaml . | nindent 8 }}
63+
{{- end }}
6064
{{- end }}
6165
containers:
6266
- name: ebs-plugin

charts/aws-ebs-csi-driver/templates/_node.tpl

+4
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ spec:
6060
securityContext:
6161
{{- toYaml . | nindent 8 }}
6262
{{- end }}
63+
{{- with .Values.node.initContainers }}
64+
initContainers:
65+
{{- toYaml . | nindent 8 }}
66+
{{- end }}
6367
containers:
6468
- name: ebs-plugin
6569
image: {{ printf "%s%s:%s" (default "" .Values.image.containerRegistry) .Values.image.repository (default (printf "v%s" .Chart.AppVersion) (toString .Values.image.tag)) }}

charts/aws-ebs-csi-driver/values.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,14 @@ node:
439439
containerSecurityContext:
440440
readOnlyRootFilesystem: true
441441
privileged: true
442+
initContainers: []
443+
# containers to be run before the csi-node's container starts.
444+
#
445+
# Example:
446+
#
447+
# - name: wait
448+
# image: busybox
449+
# command: [ 'sh', '-c', "sleep 20" ]
442450
# Enable opentelemetry tracing for the plugin running on the daemonset
443451
otelTracing: {}
444452
# otelServiceName: ebs-csi-node

0 commit comments

Comments
 (0)