Skip to content

Commit e3eed76

Browse files
committed
feature(agent): standardize the value used for driver selection (#1389)
1 parent 59e0a8b commit e3eed76

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

charts/agent/templates/daemonset.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ spec:
9898
{{- end }}
9999
{{- if (include "agent.legacyEbpfEnforced" .) }}
100100
- name: SYSDIG_AGENT_DRIVER
101-
value: legacy_bpf
101+
value: legacy_ebpf
102102
{{- end }}
103103
{{- range $key, $value := .Values.daemonset.kmodule.env }}
104104
- name: {{ $key | quote }}
@@ -189,10 +189,10 @@ spec:
189189
{{- end }}
190190
{{- if (include "agent.universalEbpfEnforced" .) }}
191191
- name: SYSDIG_AGENT_DRIVER
192-
value: universal_bpf
192+
value: universal_ebpf
193193
{{- else if (and (include "agent.ebpfEnabled" .) (eq "legacy" .Values.ebpf.kind )) }}
194194
- name: SYSDIG_AGENT_DRIVER
195-
value: legacy_bpf
195+
value: legacy_ebpf
196196
{{- end }}
197197
{{- if (.Values.proxy.httpProxy | default .Values.global.proxy.httpProxy) }}
198198
- name: http_proxy

charts/agent/tests/universal_ebpf_test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ tests:
4040
path: spec.template.spec.initContainers[*].env[?(@.name == "SYSDIG_BPF_PROBE")].value
4141
- equal:
4242
path: spec.template.spec.initContainers[*].env[?(@.name == "SYSDIG_AGENT_DRIVER")].value
43-
value: legacy_bpf
43+
value: legacy_ebpf
4444
- isEmpty:
4545
path: spec.template.spec.containers[*].env[?(@.name == "SYSDIG_BPF_PROBE")].value
4646
- equal:
4747
path: spec.template.spec.containers[*].env[?(@.name == "SYSDIG_AGENT_DRIVER")].value
48-
value: legacy_bpf
48+
value: legacy_ebpf
4949

5050
- it: Ensure that when the eBPF is enabled and we specify to use the "universal" driver we create the sysdig container without the SYSDIG_BPF_PROBE and with the SYSDIG_AGENT_DRIVER environment variables
5151
set:
@@ -57,7 +57,7 @@ tests:
5757
path: spec.template.spec.containers[*].env[?(@.name == "SYSDIG_BPF_PROBE")]
5858
- equal:
5959
path: spec.template.spec.containers[*].env[?(@.name == "SYSDIG_AGENT_DRIVER")].value
60-
value: universal_bpf
60+
value: universal_ebpf
6161

6262
- it: Ensure that when the eBPF is enabled and we specify to use the "universal" driver we don't create the init container
6363
set:

0 commit comments

Comments
 (0)