Skip to content

Commit cbda287

Browse files
committed
fix: Allow for custom otel env vars
1 parent 6226226 commit cbda287

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

charts/hdx-oss-v2/templates/otel-collector-deployment.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ spec:
5252
value: {{ .Values.otel.clickhouseUser | default .Values.clickhouse.config.users.otelUserName }}
5353
- name: CLICKHOUSE_PASSWORD
5454
value: {{ .Values.otel.clickhousePassword | default .Values.clickhouse.config.users.otelUserPassword }}
55+
{{- with .Values.otel.env }}
56+
{{- toYaml . | nindent 12 }}
57+
{{- end }}
5558
---
5659
apiVersion: v1
5760
kind: Service

charts/hdx-oss-v2/values.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,16 @@ otel:
220220
httpPort: 4318
221221
healthPort: 8888
222222
enabled: true
223+
env: []
224+
# Additional environment variables can be configured here
225+
# Example:
226+
# - name: CUSTOM_VAR
227+
# value: "my-value"
228+
# - name: SECRET_VAR
229+
# valueFrom:
230+
# secretKeyRef:
231+
# name: my-secret
232+
# key: secret-key
223233
# Opamp server URL - defaults to the app service. Customize if you want to use a different Opamp server.
224234
# Leave empty if you want to use the app service.
225235
# Example: opampServerUrl: "http://custom-opamp-server:4320"

0 commit comments

Comments
 (0)