Skip to content

Add support for policy/v1 PodDisruptionBudget #251

Description

@karlskewes

See warning from Kubernetes 1.22.x API:

W0128 04:41:27.669097       1 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget

The change is probably:

i.informerFactory.Policy().V1beta1().PodDisruptionBudgets().Informer().AddEventHandler(i.getEventHandlerForResource("PodDisruptionBudget", enableGranularMetrics))

Maybe we can add support for v1 and then remove v1beta1 in a month or so?

  • Kubernetes 1.21 went end of life 28th June 2022 (source) though it is still available on Amazon EKS until February 15 2023 - (source).
  • Kubernetes 1.23 goes end of life upstream on 28th Feb 2023 - source.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions