{
  "schemaVersion": "ebb.rule.v1",
  "id": "kubernetes.extensions.replicaset.v1beta1.removed",
  "ecosystem": "kubernetes",
  "purl": "pkg:generic/kubernetes/extensions/ReplicaSet",
  "affectedVersions": "vers:semver/1.0.0-beta.1",
  "event": "removed",
  "severity": "high",
  "title": "ReplicaSet extensions/v1beta1 is no longer served",
  "summary": "The Kubernetes Deprecated API Migration Guide states that the extensions/v1beta1 API version of ReplicaSet is no longer served as of v1.16, which was released on 2019-09-18.",
  "replacement": "apps/v1 ReplicaSet, available since v1.9",
  "deadline": "2019-09-18",
  "sources": [
    {
      "title": "Kubernetes Deprecated API Migration Guide",
      "url": "https://kubernetes.io/docs/reference/using-api/deprecation-guide/",
      "accessedAt": "2026-10-17"
    },
    {
      "title": "Kubernetes 1.16: Custom Resources, Overhauled Metrics, and Volume Extensions (release announcement, 2019-09-18)",
      "url": "https://kubernetes.io/blog/2019/09/18/kubernetes-1-16-release-announcement/",
      "accessedAt": "2026-10-20"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-20",
    "reviewedAt": "2026-10-20",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Keep the resource's behavior unchanged: the same name, namespace, labels, and spec semantics.",
      "The replacement (apps/v1 ReplicaSet, available since v1.9) can differ in required fields or field names from the removed version; read the ReplicaSet entry in the Kubernetes Deprecated API Migration Guide and convert the manifest accordingly."
    ],
    "steps": [
      {
        "id": "update-api-version",
        "title": "Change the ReplicaSet apiVersion",
        "instructions": "Change the reported `apiVersion` to the replacement version (apps/v1 ReplicaSet, available since v1.9).",
        "targets": "declaration"
      },
      {
        "id": "convert-fields",
        "title": "Convert fields the new version changed",
        "instructions": "Apply the field changes the migration guide lists for ReplicaSet, then check the manifest still expresses the same intent.",
        "targets": "declaration"
      },
      {
        "id": "align-other-manifests",
        "title": "Align other ReplicaSet declarations",
        "instructions": "Update every other manifest, Helm template, and kustomize patch or target that names the old ReplicaSet API version, so the repository agrees.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "kubeconform -strict -summary <manifest-paths>",
        "purpose": "Validate the migrated manifests against the schemas of the target Kubernetes version."
      },
      {
        "command": "kubectl apply --dry-run=server -f <manifest-path>",
        "purpose": "Ask a cluster on the target version to accept the migrated manifest without applying it."
      },
      {
        "command": "helm template <chart-path> | kubeconform -strict -",
        "purpose": "For a Helm chart, render it and validate the output."
      }
    ]
  }
}
