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
{{ message }}
Repository navigation
PodDisruptionBudget is policy/v1 in Kubernetes v1.25 #620
discussionThis issue is not a bug or feature and a conversation is needed to find an appropriate resolutionhelping with an issueDebugging happening to identify the problem
We use kapp in our e2e testing for Knative. When using it on v1.25 Kubernetes clusters, we get a kapp: Error: Expected to find kind 'policy/v1beta1/PodDisruptionBudget', but did not: error.
As the v1beta1 version has been deprecated, I'd assume that bumping the apiVersion to policy/v1here would fix the problem.
Hi @psschwei! Thank you for bringing this to out notice, we definitely need to add policy/v1 to the pod related matchers that you have specified, but I believe that's not the cause of the error you are getting.
kapp: Error: Expected to find kind 'policy/v1beta1/PodDisruptionBudget', but did not:
The error indicates that you are trying to deploy a resource of kind policy/v1beta1/PodDisruptionBudget, but it was not found on the cluster.
discussionThis issue is not a bug or feature and a conversation is needed to find an appropriate resolutionhelping with an issueDebugging happening to identify the problem
Activity
praveenrewar commentedon Sep 27, 2022
Hi @psschwei! Thank you for bringing this to out notice, we definitely need to add
policy/v1to the pod related matchers that you have specified, but I believe that's not the cause of the error you are getting.The error indicates that you are trying to deploy a resource of kind
policy/v1beta1/PodDisruptionBudget, but it was not found on the cluster.I couldn't find the tests that was failing with this error, but I noticed that on Kubernetes 1.25,
policy/v1/PodDisruptionBudgetis working. (https://github.com/knative/serving/actions/runs/3113577583/jobs/5048488839#step:10:1740)By any chance are you trying to deploy a previous version of knative serving (which still has
policy/v1beta1/PodDisruptionBudget) on k8s 1.25?psschwei commentedon Sep 28, 2022
We bumped the PDBs to
v1at the beginning of the year, and we aren't currently testing any of the versions before the bump.cc @skonto for more details on the failing test
praveenrewar commentedon Oct 2, 2022
I see. I am not sure what else could cause this issue. @skonto would you be able to share the yaml that was used when you got this error?
dprotaso commentedon May 25, 2023
Here's a failed run - we don't have v1beta1 anymore so I'm not sure what's triggering kapp to check for that CRD
https://prow.knative.dev/view/gs/knative-prow/pr-logs/pull/knative_serving/14003/gateway-api-latest_serving_main/1661690205490384896
praveenrewar commentedon May 25, 2023
@dprotaso Would you be able to share the manifest so that I can reproduce the issue.
dprotaso commentedon May 25, 2023
Actually looks like we are using an older version of istio in one scenario that has v1beta1/PDBs
I think we're good to close this issue.