File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -87,6 +87,13 @@ containers:
87
87
- mountPath: /var/log/fluent
88
88
name: { { include " fluentd.fullname" . } }-buffer
89
89
{ {- end } }
90
+ { {- if .Values.extraContainers } }
91
+ { {- if kindIs " string" .Values.extraContainers } }
92
+ { {- tpl .Values.extraContainers $ | nindent 2 } }
93
+ { {- else } }
94
+ { {- toYaml .Values.extraContainers | nindent 2 } }
95
+ { {- end -} }
96
+ { {- end } }
90
97
volumes:
91
98
- name: etcfluentd-main
92
99
configMap:
Original file line number Diff line number Diff line change @@ -174,6 +174,21 @@ envFrom: []
174
174
175
175
initContainers : []
176
176
177
+ # This supports either a structured array or a templatable string
178
+ extraContainers : []
179
+
180
+ # Array mode
181
+ # extraContainers:
182
+ # - name: do-something
183
+ # image: busybox
184
+ # command: ['do', 'something']
185
+
186
+ # String mode
187
+ # extraContainers: |-
188
+ # - name: do-something
189
+ # image: bitnami/kubectl:{{ .Capabilities.KubeVersion.Major }}.{{ .Capabilities.KubeVersion.Minor }}
190
+ # command: ['kubectl', 'version']
191
+
177
192
# # Name of the configMap containing a custom fluentd.conf configuration file to use instead of the default.
178
193
# mainConfigMapNameOverride: ""
179
194
You can’t perform that action at this time.
0 commit comments