op-scim-helm
op-scim-helm copied to clipboard
Template failing to parse k8s version for PDB, HPA, and Ingress resources
Your environment
Chart Version:
Helm Version: version.BuildInfo{Version:"v3.15.4", GitCommit:"fa9efb07d9d8debbb4306d72af76a383895aa8c4", GitTreeState:"clean", GoVersion:"go1.22.6"}
Kubernetes Version: v1.28.11-gke.1172000
What happened?
The template fails to build on k8s v1.28 for PDB, HPA, and Ingress resources.
What did you expect to happen?
The template should've used the proper resources API.
Steps to reproduce
~/op-scim ❯❯ helm install op-scim 1password/op-scim -n op-scim --dry-run --set 'scim.podDisruptionBudget.enabled=true'
Error: INSTALLATION FAILED: unable to build kubernetes objects from release manifest: resource mapping not found for name: "op-scim-bridge" namespace: "op-scim" from "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
ensure CRDs are installed first
~/op-scim ❯❯ kubectl version
Client Version: v1.28.6
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.28.11-gke.1172000
On k8s v1.28, a PDB should be using policy/v1
.
Notes & Logs
I believe that the check for k8s version in the chart needs to be changed from
Capabilities.KubeVersion.GitVersion
to
.Capabilities.KubeVersion.Version