Skip to content

Commit ed16064

Browse files
francesco-furlanmavimo
authored andcommitted
chore: use universal_ebpf for gke-autopilot
1 parent 6a85fdd commit ed16064

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

charts/shield/templates/host/_helpers.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,21 +83,21 @@ If release name contains chart name it will be used as a full name.
8383
{{- end }}
8484

8585
{{- define "host.driver.is_ebpf" }}
86-
{{- if or (include "host.driver.is_legacy_ebpf" .) (include "host.driver.is_universal_ebpf" .) }}
86+
{{- if or (include "host.driver.is_legacy_ebpf" .) (include "common.cluster_type.is_gke_autopilot" .) }}
8787
true
8888
{{- else }}
8989
{{- end }}
9090
{{- end }}
9191

9292
{{- define "host.driver.is_legacy_ebpf" }}
93-
{{- if eq "legacy_ebpf" .Values.host.driver }}
93+
{{- if and (eq "legacy_ebpf" .Values.host.driver) (not (include "common.cluster_type.is_gke_autopilot" .)) }}
9494
true
9595
{{- else }}
9696
{{- end }}
9797
{{- end }}
9898

9999
{{- define "host.driver.is_universal_ebpf" }}
100-
{{- if eq "universal_ebpf" .Values.host.driver }}
100+
{{- if or (eq "universal_ebpf" .Values.host.driver) (include "common.cluster_type.is_gke_autopilot" .) }}
101101
true
102102
{{- else }}
103103
{{- end }}

0 commit comments

Comments
 (0)