You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug a clear and concise description of what the bug is.
We enabled podDisruptionBudget in kube-state-metrics chart, when rendering the chart locally with helm template --kube-version 1.31.0, the apiVersion of the PodDisruptionBudget is wrongly set to policy/v1beta1 instead of policy/v1
Client Version: v1.31.4 Kustomize Version: v5.4.2 Server Version: v1.31.2-gke.1354000
Which chart?
kube-state-metrics
What's the chart version?
5.28.0 (tested on main too)
What happened?
When enabling the podDisprutionBudget, the generated apiVersion by helm template --kube-version 1.31.0 command is wrong (policy/v1beta1 instead of policy/v1 which was released many Kubernetes versions ago)
What you expected to happen?
By enabling podDisruptionBudget I expect the apiVersion of PodDisruptionBudget to be policy/v1 in the output of helm template --kube-version 1.31.0
Enter the changed values of values.yaml?
podDisruptionBudget:
minAvailable: 1
Enter the command that you execute and failing/misfunctioning.
Describe the bug a clear and concise description of what the bug is.
We enabled
podDisruptionBudget
inkube-state-metrics
chart, when rendering the chart locally withhelm template --kube-version 1.31.0
, theapiVersion
of thePodDisruptionBudget
is wrongly set topolicy/v1beta1
instead ofpolicy/v1
What's your helm version?
What's your kubectl version?
Which chart?
kube-state-metrics
What's the chart version?
5.28.0 (tested on
main
too)What happened?
When enabling the
podDisprutionBudget
, the generatedapiVersion
byhelm template --kube-version 1.31.0
command is wrong (policy/v1beta1
instead ofpolicy/v1
which was released many Kubernetes versions ago)What you expected to happen?
By enabling
podDisruptionBudget
I expect theapiVersion
ofPodDisruptionBudget
to bepolicy/v1
in the output ofhelm template --kube-version 1.31.0
Enter the changed values of values.yaml?
Enter the command that you execute and failing/misfunctioning.
Anything else we need to know?
It seems to be linked to this helm/helm#11809 but the conclusion is not clear to me 🤔
I don't know if it's proper fix but if we change this line:
helm-charts/charts/kube-state-metrics/templates/pdb.yaml
Line 2 in 392285a
by:
{{ if $.Capabilities.APIVersions.Has "policy/v1" -}}
the
apiVersion
is properly set topolicy/v1
The text was updated successfully, but these errors were encountered: