Skip to content

Commit

Permalink
Add parameter to overwrite index template (#45)
Browse files Browse the repository at this point in the history
* Add parameter to overwrite index template

Signed-off-by: baczus <[email protected]>

* Bump fluentd-elasticsearch chart version to 11.4.0

Signed-off-by: baczus <[email protected]>

Co-authored-by: André Bauer <[email protected]>
  • Loading branch information
baczus and monotek authored Dec 14, 2020
1 parent 44db0bf commit 9ab168b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/fluentd-elasticsearch/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: fluentd-elasticsearch
version: 11.3.0
version: 11.4.0
appVersion: 3.1.0
type: application
home: https://www.fluentd.org/
Expand Down
9 changes: 5 additions & 4 deletions charts/fluentd-elasticsearch/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ The following table lists the configurable parameters of the Fluentd elasticsear
| `elasticsearch.ilm.policy` | Elasticsearch ILM policy to create | `{}` |
| `elasticsearch.ilm.policies` | Elasticsearch ILM policies to create, map of policy IDs and policies | `{}` |
| `elasticsearch.ilm.policy_overwrite` | Elastichsarch ILM policy overwrite | `false` |
| `elasticsearch.template.enabled` | Elastichsarch Index Template enabled | `false` |
| `elasticsearch.template.name` | Elastichsarch Index Template Name | `fluentd-template` |
| `elasticsearch.template.file` | Elasticsearch Index Template File Name (inside the daemonset) | `fluentd-template.json` |
| `elasticsearch.template.content` | Elasticsearch Index Template Content | _see `values.yaml`_ |
| `elasticsearch.template.enabled` | Elastichsarch Template enabled | `false` |
| `elasticsearch.template.name` | Elastichsarch Template Name | `fluentd-template` |
| `elasticsearch.template.file` | Elasticsearch Template File Name (inside the daemonset) | `fluentd-template.json` |
| `elasticsearch.template.content` | Elasticsearch Template Content | _see `values.yaml`_ |
| `elasticsearch.template.overwrite` | Elasticsearch Template Overwrite (update even if it already exists) | `false` |
| `elasticsearch.indexName` | Elasticsearch Index Name | `fluentd` |
| `elasticsearch.path` | Elasticsearch Path | `""` |
| `elasticsearch.scheme` | Elasticsearch scheme setting | `http` |
Expand Down
1 change: 1 addition & 0 deletions charts/fluentd-elasticsearch/templates/configmaps.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,7 @@ data:
{{- if or .Values.elasticsearch.template.enabled .Values.elasticsearch.ilm.enabled }}
template_name "#{ENV['TEMPLATE_NAME']}"
template_file "#{ENV['TEMPLATE_FILE']}"
template_overwrite "#{ENV['TEMPLATE_OVERWRITE']}"
{{- end }}
log_es_400_reason "#{ENV['OUTPUT_LOG_400_REASON']}"
reconnect_on_error "#{ENV['OUTPUT_RECONNECT_ON_ERROR']}"
Expand Down
2 changes: 2 additions & 0 deletions charts/fluentd-elasticsearch/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ spec:
value: {{ .Values.elasticsearch.template.name | quote }}
- name: TEMPLATE_FILE
value: "/etc/fluent/config.d/{{ .Values.elasticsearch.template.file }}"
- name: TEMPLATE_OVERWRITE
value: {{ .Values.elasticsearch.template.overwrite | quote }}
{{- end }}
- name: OUTPUT_SCHEME
{{- if .Values.awsSigningSidecar.enabled }}
Expand Down
1 change: 1 addition & 0 deletions charts/fluentd-elasticsearch/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ elasticsearch:
policy_overwrite: false
template:
enabled: false
overwrite: false
name: fluentd-template
file: fluentd-template.json
content: |-
Expand Down

0 comments on commit 9ab168b

Please sign in to comment.