api-firewall icon indicating copy to clipboard operation
api-firewall copied to clipboard

helm chart templates use outdated API [PodDisruptionBudget]

Open ep4sh opened this issue 1 year ago • 0 comments

Hi team, please check the following issue with helm chart installation:

Steps to reproduce:

  1. $ git clone https://github.com/wallarm/api-firewall.git
  2. $ cd api-firewall/helm/api-firewall
  3. $ kubectl create ns apif
  4. $ 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
  5. $ 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/

ep4sh avatar Jun 03 '24 10:06 ep4sh