Skip to content

Commit

Permalink
feat: enable helm template substitutions on Open Collector config map (
Browse files Browse the repository at this point in the history
…#274)

Signed-off-by: Jeromy Cannon <[email protected]>
  • Loading branch information
jeromy-cannon authored Aug 21, 2023
1 parent 8563e16 commit 1fa684b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ exporters:
prometheus:
endpoint: "0.0.0.0:8889"
const_labels:
label1: "value1"
label1: "{{ .otelDefaults.nameOverride }}-label1"

logging:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ metadata:
name: otel-collector-cm
data:
config.yaml: |
{{- .Files.Get "config-files/otel-collector-config.yaml" | nindent 4 }}
{{- tpl (.Files.Get "config-files/otel-collector-config.yaml") ( dict "otelDefaults" $.Values.defaults.sidecars.otelCollector "Template" $.Template ) | nindent 4 }}

0 comments on commit 1fa684b

Please sign in to comment.