DaspawnW/vault-crd

(Helm chart) PodSecurityPolicy was deprecated in Kubernetes v1.21, and removed from Kubernetes in v1.25

Opened this issue · 0 comments

Hello,

It seems that there is an issue with your helm chart which installs vault-crd. If the kubernetes cluster is greater then 1.25, the chart will fail to install with the following error message.

❯ helm install vault-crd vault-crd/vault-crd --set vaultCRD.vaultToken=hvs.xxxxxxxxxxxxxxxxxxx --set vaultCRD.vaultUrl=https://vault.example.com:8200
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "vault-crd-pod-running-policy" namespace: "default" from "": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"
ensure CRDs are installed first

After doing some research, it seems that they are deprecated in Kubernetes v1.21, and then removed from Kubernetes in v1.25.

I am currently running version kubernetes version 1.28.xx, so it looks like the charts need some upgrades to make it function correctly.

image

https://kubernetes.io/docs/concepts/security/pod-security-policy/