Skip to content

Add migration of ownerReferences that refer to deprecated/no-longer-served Kubernetes API versions #96650

@liggitt

Description

@liggitt

What would you like to be added:

Migrate ownerReferences that refer to deprecated/no-longer-served Kubernetes API versions to current apiVersions

Why is this needed:

Objects can be created with ownerReferences pointing at apiVersion/kind combinations which are no longer served and/or have moved API groups. Once those apiVersions are no longer accessible, the live lookups done by the garbage collector will not succeed, and those objects will no longer be cleaned up by the garbage collector.

For example replace ownerReferences with apiVersion: extensions/v1beta1, kind: {Daemonset,Deployment,ReplicaSet,StatefulSet} with apiVersion: apps/v1beta1, kind: {Daemonset,Deployment,ReplicaSet,StatefulSet}

Follow up from review of #92743

/sig api-machinery
/cc @deads2k

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.sig/api-machineryCategorizes an issue or PR as relevant to SIG API Machinery.triage/acceptedIndicates an issue or PR is ready to be actively worked on.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions