Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #26 from alltilla/rewrite-set
Browse files Browse the repository at this point in the history
collector: add set rewrites configurability
  • Loading branch information
pepov authored Dec 11, 2023
2 parents 23e9715 + a2e1b0f commit 5e12c85
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/axosyslog-collector/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ apiVersion: v2
name: axosyslog-collector
description: AxoSyslog Kubernetes log collector
type: application
version: 0.7.0
version: 0.8.0
appVersion: "4.5.0"
7 changes: 7 additions & 0 deletions charts/axosyslog-collector/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ data:
opentelemetry();
};
{{- end }}
{{- with .Values.config.rewrites.set }}
rewrite {
{{- range $k, $v := . }}
set({{ $v | quote }} value({{ $k | quote }}));
{{- end }}
};
{{- end }}
{{- range .Values.config.destinations.file }}
destination {
file(
Expand Down
5 changes: 5 additions & 0 deletions charts/axosyslog-collector/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@ config:
parsers:
opentelemetry:
enabled: false
rewrites:
set: {}
# E.g.:
# foo: "${foovalue}"
# bar: "${barvalue}"
destinations:
file: []
# E.g.:
Expand Down

0 comments on commit 5e12c85

Please sign in to comment.