Skip to content

Commit ca0833f

Browse files
authored
Merge pull request #19 from BetterStackHQ/sl/add_chart_version_to_env
Add HELM_CHART_VERSION environment variable to containers
2 parents 83c41ac + fca7b55 commit ca0833f

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apiVersion: v2
22
name: collector
33
description: A Helm chart for Better Stack Collector - monitoring solution that collects metrics, logs, and traces
44
type: application
5-
version: 0.1.19
5+
version: 0.1.20
66
appVersion: "latest"
77
keywords:
88
- monitoring

templates/daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ spec:
6262
value: "/host/proc"
6363
- name: SYSFS_ROOT
6464
value: "/host/sys"
65+
- name: HELM_CHART_VERSION
66+
value: {{ .Chart.Version | quote }}
6567
ports:
6668
- name: otlp
6769
containerPort: {{ .Values.collector.otlpPort }}
@@ -133,6 +135,8 @@ spec:
133135
valueFrom:
134136
fieldRef:
135137
fieldPath: metadata.namespace
138+
- name: HELM_CHART_VERSION
139+
value: {{ .Chart.Version | quote }}
136140
# Special configuration (these need dynamic template values)
137141
- name: OTEL_EXPORTER_OTLP_ENDPOINT
138142
value: "http://localhost:{{ .Values.collector.otlpPort }}"

0 commit comments

Comments
 (0)