diff --git a/charts/gardener-extension-provider-ionos/templates/serviceaccount.yaml b/charts/gardener-extension-provider-ionos/templates/serviceaccount.yaml index 98fdc8d5..c0b287f1 100644 --- a/charts/gardener-extension-provider-ionos/templates/serviceaccount.yaml +++ b/charts/gardener-extension-provider-ionos/templates/serviceaccount.yaml @@ -5,6 +5,8 @@ metadata: namespace: {{ .Release.Namespace }} labels: {{ include "labels" . | indent 4 }} -{{- if and (ne .Values.gardener.version "") (semverCompare ">= 1.37-0" .Values.gardener.version) }} +{{- if ne .Values.gardener.version "" }} +{{- if semverCompare ">= 1.37-0" .Values.gardener.version }} automountServiceAccountToken: false {{- end }} +{{- end }} \ No newline at end of file