Skip to content

Skip deprecated resources automatically #104

Description

@nogweii

Is your feature request related to a problem? Please describe.
I get I0624 14:41:33.968542 3872669 warnings.go:110] "Warning: v1 Endpoints is deprecated in v1.33+; use discovery.k8s.io/v1 EndpointSlice" when running get-all on my kubernetes cluster. It'd be nice to avoid that spam.

Describe the solution you'd like
If there is a way, get a list of resources from the Kubernetes API server and filter them for only those that are not marked deprecated.

Describe alternatives you've considered
Maintain a list of deprecated resources that emit warnings and remember to pass them as an --exclude filter. Doable, but annoying if I forget or it gets out of date. (Not that there are many, thankfully.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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