[stable/sumologic-fluentd] Allow the time_key field to be defined via environment variables (#4539)

* Allow the time_key field to be defined via environment variables

- The fluentd config for docker containers was hardcoded to use time as the name of the field but this is not a universal standard.

* Increase chart version and add appVersion

* Remove trailing space

* bump version to 0.4.0

* Upgrade to 1.9 release

* Update appVersion in chart to 1.9

* Upgrade to v1.10

* Upgrade sumologic-fluentd to 1.11

* Update appversion to 1.11

* Update readme

* Undo typo in readme
This commit is contained in:
Daren Desjardins
2018-04-26 09:10:02 -07:00
committed by k8s-ci-robot
parent 1ab586c137
commit fb5ff1341e
4 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
name: sumologic-fluentd
version: 0.3.3
appVersion: v1.6
version: 0.4.0
appVersion: 1.11
description: Sumologic Log Collector
keywords:
- monitoring
+1 -1
View File
@@ -89,7 +89,7 @@ The following tables lists the configurable parameters of the sumologic-fluentd
| `sumologic.concatSeparator` | The character to use to delimit lines within the final concatenated message. Most multi-line messages contain a newline at the end of each line | `Nil` |
| `sumologic.auditLogPath` | Define the path to the [Kubernetes Audit Log](https://kubernetes.io/docs/tasks/debug-application-cluster/audit/) | `/mnt/log/kube-apiserver-audit.log` |
| `image.name` | The image repository and name to pull from | `sumologic/fluentd-kubernetes-sumologic` |
| `image.tag` | The image tag to pull | `v1.6` |
| `image.tag` | The image tag to pull | `v1.11` |
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
| `persistence.enabled` | Boolean value, used to turn on or off fluentd position file persistence, on nodes (requires Kubernetes >= 1.8) | `false` |
| `persistence.hostPath` | The path, on each node, to a directory for fluentd pos files. You must create the directory on each node first or set `persistence.createPath` (requires Kubernetes >= 1.8) | `/var/run/fluentd-pos` |
@@ -139,6 +139,10 @@ spec:
- name: FLUENTD_OPT
value: {{ quote .Values.sumologic.fluentdOpt }}
{{- end }}
{{- if quote .Values.sumologic.timeKey }}
- name: TIME_KEY
value: {{ quote .Values.sumologic.timeKey }}
{{- end }}
{{- if quote .Values.sumologic.verifySsl }}
- name: VERIFY_SSL
value: {{ quote .Values.sumologic.verifySsl }}
+5 -1
View File
@@ -1,7 +1,7 @@
# Default values for sumologic-fluentd.
image:
name: sumologic/fluentd-kubernetes-sumologic
tag: v1.6
tag: v1.11
pullPolicy: IfNotPresent
## Annotations to add to the DaemonSet's Pods
@@ -115,6 +115,10 @@ sumologic:
## ref: https://github.com/SumoLogic/fluentd-kubernetes-sumologic#options
excludeUnitRegex: ""
## The field name for json formatted sources that should be used as the time
## ref: https://docs.fluentd.org/v0.12/articles/formatter_json#time_key-(string,-optional,-defaults-to-%E2%80%9Ctime%E2%80%9D)
# timeKey:
## Fluentd command line options
## ref: http://docs.fluentd.org/v0.12/articles/command-line-option
fluentdOpt: ""