File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,6 +87,13 @@ containers:
8787 - mountPath: /var/log/fluent
8888 name: {{ include " fluentd.fullname" . }}-buffer
8989 {{- 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 }}
9097volumes:
9198- name: etcfluentd-main
9299 configMap:
Original file line number Diff line number Diff line change @@ -174,6 +174,21 @@ envFrom: []
174174
175175initContainers : []
176176
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+
177192# # Name of the configMap containing a custom fluentd.conf configuration file to use instead of the default.
178193# mainConfigMapNameOverride: ""
179194
You can’t perform that action at this time.
0 commit comments