2017-11-14 06:22:57 +00:00
|
|
|
{{/*
|
|
|
|
Copyright 2017 The Openstack-Helm Authors.
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/}}
|
|
|
|
|
|
|
|
{{- if .Values.manifests.configmap_etc }}
|
|
|
|
{{- $envAll := . }}
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
2018-08-24 14:18:53 +00:00
|
|
|
kind: Secret
|
2017-11-14 06:22:57 +00:00
|
|
|
metadata:
|
|
|
|
name: fluent-logging-etc
|
2018-08-24 14:18:53 +00:00
|
|
|
type: Opaque
|
2017-11-14 06:22:57 +00:00
|
|
|
data:
|
2018-08-24 14:18:53 +00:00
|
|
|
fluent-bit.conf: {{ include "fluent_logging.utils.to_fluentbit_conf" .Values.conf.fluentbit | b64enc }}
|
|
|
|
parsers.conf: {{ include "fluent_logging.utils.to_fluentbit_conf" .Values.conf.parsers | b64enc }}
|
2018-10-19 12:57:35 +00:00
|
|
|
fluent.conf: {{ include "fluent_logging.utils.to_fluentd_conf" .Values.conf.fluentd | b64enc }}
|
2018-06-01 19:26:59 +00:00
|
|
|
{{ range $template, $fields := .Values.conf.templates }}
|
2018-08-24 14:18:53 +00:00
|
|
|
{{ $template }}.json: {{ toJson $fields | b64enc }}
|
2018-06-01 19:26:59 +00:00
|
|
|
{{ end }}
|
2017-11-14 06:22:57 +00:00
|
|
|
{{- end }}
|