Files
Aaron Layfield 96e13e8cc8 [stable/fluentd] Added support for plugin installation (#16705)
* Added support for plugin installation via chart

Signed-off-by: Aaron Layfield <aaron.layfield@gmail.com>

* Removed testing default values

Signed-off-by: Aaron Layfield <aaron.layfield@gmail.com>

* Increment Chart Version

Signed-off-by: Aaron Layfield <aaron.layfield@gmail.com>

* Adding check on plugin list empty

Signed-off-by: Aaron Layfield <aaron.layfield@gmail.com>
2019-09-20 10:13:48 -07:00

38 lines
892 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ template "fluentd.fullname" . }}
labels:
app: {{ template "fluentd.name" . }}
chart: {{ template "fluentd.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
data:
{{- range $key, $value := .Values.configMaps }}
{{ $key }}: |-
{{ $value | indent 4 }}
{{- end }}
{{- if .Values.metrics.enabled }}
metrics.conf: |
<source>
@type prometheus
port {{ .Values.metrics.service.port }}
</source>
<source>
@type prometheus_monitor
</source>
<source>
@type prometheus_output_monitor
</source>
{{- end }}
{{- if and (.Values.plugins.enabled) (gt (len .Values.plugins.pluginsList) 0) }}
install-plugins.sh: |-
#!/bin/sh
{{- range $plugin := .Values.plugins.pluginsList }}
fluent-gem install {{ $plugin }}
{{- end }}
exec /run.sh
{{- end }}