Skip to content
This repository was archived by the owner on May 6, 2020. It is now read-only.

Commit cb38ca2

Browse files
author
Jonathan Chauncey
authored
Merge pull request #93 from jchauncey/extend-chart-values
feat(chart): Extend values.yaml file
2 parents d87629a + c515df3 commit cb38ca2

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

charts/fluentd/templates/logger-fluentd-daemon.yaml

+37-1
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,48 @@ spec:
3434
{{- end}}
3535
{{- end}}
3636
env:
37+
{{- if .Values.sources.start_script }}
38+
- name: "CAPTURE_START_SCRIPT"
39+
value: {{.Values.sources.start_script | quote }}
40+
{{- end }}
41+
{{- if .Values.sources.docker }}
42+
- name: "CAPTURE_DOCKER_LOG"
43+
value: {{.Values.sources.docker | quote }}
44+
{{- end }}
45+
{{- if .Values.sources.etcd }}
46+
- name: "CAPTURE_ETCD_LOG"
47+
value: {{.Values.sources.etcd | quote }}
48+
{{- end }}
49+
{{- if .Values.sources.kubelet }}
50+
- name: "CAPTURE_KUBELET_LOG"
51+
value: {{.Values.sources.kubelet | quote }}
52+
{{- end }}
53+
{{- if .Values.sources.kube_api }}
54+
- name: "CAPTURE_KUBE_API_LOG"
55+
value: {{.Values.sources.kube_api | quote }}
56+
{{- end }}
57+
{{- if .Values.sources.controller }}
58+
- name: "CAPTURE_CONTROLLER_LOG"
59+
value: {{.Values.sources.controller | quote }}
60+
{{- end }}
61+
{{- if .Values.sources.scheduler }}
62+
- name: "CAPTURE_SCHEDULER_LOG"
63+
value: {{.Values.sources.scheduler | quote }}
64+
{{- end }}
65+
{{- if .Values.output.disable_deis }}
66+
- name: "DISABLE_DEIS_OUTPUT"
67+
value: {{.Values.output.disable_deis | quote }}
68+
{{- end }}
69+
{{- if .Values.boot.install_build_tools }}
70+
- name: "INSTALL_BUILD_TOOLS"
71+
value: {{.Values.boot.install_build_tools | quote }}
72+
{{- end }}
3773
{{- if and (.Values.syslog.host) (.Values.syslog.port)}}
3874
- name: "SYSLOG_HOST"
3975
value: {{.Values.syslog.host | quote }}
4076
- name: "SYSLOG_PORT"
4177
value: {{.Values.syslog.port | quote }}
42-
{{- end}}
78+
{{- end }}
4379
{{- range $key, $value := .Values.daemon_environment }}
4480
- name: {{ $key }}
4581
value: {{ $value | quote }}

charts/fluentd/values.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ syslog:
99
host: "" # external syslog endpoint url
1010
port: "" # external syslog endpoint port
1111

12+
sources:
13+
start_script: false
14+
docker: false
15+
etcd: false
16+
kubelet: false
17+
kube_api: false
18+
controller: false
19+
scheduler: false
20+
21+
output:
22+
disable_deis: false
23+
24+
boot:
25+
install_build_tools: false
26+
1227
# Any custom fluentd environment variables (https://github.com/deis/fluentd#configuration)
1328
# can be specified as key-value pairs under daemon_environment.
1429
daemon_environment:

0 commit comments

Comments
 (0)