Skip to content

Commit 8679416

Browse files
chore(shield): remove /root/.sysdig on gke autopilot and restore legacy_ebpf check for autopilot
1 parent 92f8338 commit 8679416

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

charts/shield/templates/host/daemonset.yaml

+1-7
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,6 @@ spec:
9898
- mountPath: /host/etc/os-release
9999
name: osrel
100100
readOnly: true
101-
- mountPath: /root/.sysdig
102-
name: bpf-probes
103101
{{- end }}
104102
{{- end }}
105103
containers:
@@ -126,7 +124,7 @@ spec:
126124
{{- if (include "host.driver.is_universal_ebpf" .) }}
127125
- name: SYSDIG_AGENT_DRIVER
128126
value: universal_ebpf
129-
{{- else if (include "host.driver.is_legacy_ebpf" .) }}
127+
{{- else if and (include "host.driver.is_legacy_ebpf" .) (not (include "common.cluster_type.is_gke_autopilot" .)) }}
130128
- name: SYSDIG_AGENT_DRIVER
131129
value: legacy_ebpf
132130
{{- end }}
@@ -210,8 +208,6 @@ spec:
210208
readOnly: true
211209
- mountPath: /host/var/run/containerd/containerd.sock
212210
name: containerdsock-vol
213-
- mountPath: /root/.sysdig
214-
name: bpf-probes
215211
{{- end }}
216212

217213
{{- if (include "host.need_host_root" .) }}
@@ -309,8 +305,6 @@ spec:
309305
- name: osrel
310306
hostPath:
311307
path: /etc/os-release
312-
- name: bpf-probes
313-
emptyDir: {}
314308
- name: containerdsock-vol
315309
hostPath:
316310
path: /var/run/containerd/containerd.sock

0 commit comments

Comments
 (0)