api-firewall
api-firewall copied to clipboard
helm chart templates use outdated API [PodDisruptionBudget]
Hi team, please check the following issue with helm chart installation:
Steps to reproduce:
- $ git clone https://github.com/wallarm/api-firewall.git
- $ cd api-firewall/helm/api-firewall
- $ kubectl create ns apif
- $ helm upgrade --install apifw . -n apifw Release "apifw" does not exist. Installing it now. Error: unable to build kubernetes objects from release manifest: resource mapping not found for name: "apifw-api-firewall" namespace: "" from "": no matches for kind "PodDisruptionBudget" in version "extensions/v1beta1" ensure CRDs are installed first
- $ kubectl version Client Version: v1.30.1 Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3 Server Version: v1.30.0
The same on kubernetes v1.25 and above. The issue can be fixed by disabling podDisruptionBudget (set enabled to false).
My guess is PDB templates are built on removed API: https://kubernetes.io/docs/reference/using-api/deprecation-guide/