Skip to content

Commit f1e43cf

Browse files
authored
Merge pull request #17 from BetterStackHQ/sl/touch_up_env_vars
Beyla: Don't pass empty vars, add config
2 parents 79d6e0f + 0e99f34 commit f1e43cf

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

templates/daemonset.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ spec:
3636
privileged: false
3737
env:
3838
{{- range $key, $value := .Values.collector.env }}
39+
{{- if $value }}
3940
- name: {{ $key }}
4041
value: {{ $value | quote }}
4142
{{- end }}
43+
{{- end }}
4244
# System environment variables from Kubernetes downward API
4345
- name: HOSTNAME
4446
valueFrom:
@@ -109,9 +111,11 @@ spec:
109111
{{- toYaml .Values.securityContext.beyla | nindent 10 }}
110112
env:
111113
{{- range $key, $value := .Values.beyla.env }}
114+
{{- if $value }}
112115
- name: {{ $key }}
113116
value: {{ $value | quote }}
114117
{{- end }}
118+
{{- end }}
115119
# System environment variables from Kubernetes downward API
116120
- name: HOSTNAME
117121
valueFrom:

values.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ beyla:
6666
OTEL_EXPORTER_OTLP_PROTOCOL: "http/protobuf"
6767
BEYLA_DISCOVERY_POLL_INTERVAL: "30s"
6868
BEYLA_MIN_PROCESS_AGE: "20s"
69+
BEYLA_CONFIG_PATH: "/etc/beyla/beyla.yaml"
6970
BEYLA_OPEN_PORT: "" # Set to "1-32767" to skip ephemeral ports, set to "1-65535" to enable all ports
7071
BEYLA_PROFILE_PORT: "" # Set to 6060 for profiling
7172
BEYLA_LOG_LEVEL: "" # Options: debug, info, warn, error

0 commit comments

Comments
 (0)