Skip to content

Migrate manifests from {extensions/v1beta1,apps/v1beta1,apps/v1beta2} to apps/v1 #12211

@liggitt

Description

@liggitt

Describe the feature request

There are ~165 manifests in the repo using deprecated versions of DaemonSets, Deployments, ReplicaSets, and StatefulSets (in extensions/v1beta1, apps/v1beta1, or apps/v1beta2).

These resources have been deprecated since k8s v1.9 and are planned to no longer be served starting in k8s v1.16 (c.f. kubernetes/kubernetes#43214).

All supported versions of k8s have the apps/v1 versions of these resources available. Switching manifests to use the GA versions of these resources ensures broader compatibility and longer-term support.

Migration involves:

  • changing apiVersion to apps/v1
  • populating spec.selector.matchLabels with the contents of spec.template.metadata.labels if spec.selector does not already exist
  • populating metadata.labels with the contents of spec.template.metadata.labels if metadata.labels does not already exist

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions