diff --git a/templates/admission-policy.yaml b/templates/admission-policy.yaml index 3ff8c357b..f90840954 100644 --- a/templates/admission-policy.yaml +++ b/templates/admission-policy.yaml @@ -1,4 +1,4 @@ -{{- $kubeVersion := semverCompare ">1.30.0" .Values.clusterConfiguration.kubernetesVersion }} +{{- $kubeVersion := semverCompare ">1.30.0" .Values.global.clusterConfiguration.kubernetesVersion }} apiVersion: admissionregistration.k8s.io/{{ if $kubeVersion }}v1{{ else }}v1alpha1{{ end }} kind: ValidatingAdmissionPolicy metadata: