Cannot install moco 0.25.0 without admissionregistration.k8s.io/v1beta1=true
for k8s 1.30 or above
#759
Labels
bug
Something isn't working
Describe the bug
#751 introduces ValidatingAdmissionPolicy. This feature is GA in Kubernetes 1.30.
https://kubernetes.io/blog/2024/04/24/validating-admission-policy-ga/
Kubernetes 1.30 or above only accepts
admissionregistration.k8s.io/v1
, notadmissionregistration.k8s.io/v1beta1
by default.Environments
To Reproduce
kind create cluster --name moco --image kindest/node:v1.30.6 curl -fsL https://github.com/jetstack/cert-manager/releases/latest/download/cert-manager.yaml | kubectl apply -f - helm install --create-namespace --namespace moco-system moco moco/moco
Following errors are shown:
Expected behavior
moco 0.25.0 can be installed for any supported kubernetes versions.
Additional context
K8s cluster used in E2E Test enables the
admissionregistration.k8s.io/v1beta1
.moco/e2e/kind-config.yaml
Lines 3 to 6 in 389ae12
So the tests passed, but installation fails for the cluster with default configuration.
Replace
admissionregistration.k8s.io/v1beta1
withadmissionregistration.k8s.io/v1
, then it can be installed without any configuration.If additional FeatureGates are required for installation, it should be documented.
ValidatingAdmissionPolicy
is not available in K8s 1.29 by default.The text was updated successfully, but these errors were encountered: