Skip to content

PodDisruptionBudget is policy/v1 in Kubernetes v1.25 #620

Closed

Description

@psschwei

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/v1 here would fix the problem.

Activity

  1. added
    carvel triage
    on Sep 27, 2022
  2. moved this to To Triage in Carvelon Sep 27, 2022
  3. praveenrewar commented on Sep 27, 2022

    @praveenrewar
    Member

    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.

    I couldn't find the tests that was failing with this error, but I noticed that on Kubernetes 1.25, policy/v1/PodDisruptionBudget is 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?

  4. psschwei commented on Sep 28, 2022

    @psschwei
    Author

    We bumped the PDBs to v1 at 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

  5. praveenrewar commented on Oct 2, 2022

    @praveenrewar
    Member

    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?

  6. added
    discussion
    and removed
    carvel triage
    on Oct 3, 2022
  7. added
    helping with an issue
    on Oct 11, 2022
  8. dprotaso commented on May 25, 2023

    @dprotaso
    Contributor
  9. praveenrewar commented on May 25, 2023

    @praveenrewar
    Member

    @dprotaso Would you be able to share the manifest so that I can reproduce the issue.

  10. dprotaso commented on May 25, 2023

    @dprotaso
    Contributor

    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.

  11. moved this from To Triage to Closed in Carvelon May 25, 2023
  12. moved this from To Triage to Closed in Carvelon May 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionhelping with an issue

    Type

    No type

    Projects

    • Status
      Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions