{
  "schemaVersion": "ebb.rule.v1",
  "id": "kubernetes.flowcontrol-apiserver-k8s-io.flowschema.v1beta1.removed",
  "ecosystem": "kubernetes",
  "purl": "pkg:generic/kubernetes/flowcontrol.apiserver.k8s.io/FlowSchema",
  "affectedVersions": "vers:semver/1.0.0-beta.1",
  "event": "removed",
  "severity": "high",
  "title": "FlowSchema flowcontrol.apiserver.k8s.io/v1beta1 is no longer served",
  "summary": "The Kubernetes Deprecated API Migration Guide states that the flowcontrol.apiserver.k8s.io/v1beta1 API version of FlowSchema is no longer served as of v1.26, which was released on 2022-12-09.",
  "replacement": "flowcontrol.apiserver.k8s.io/v1beta2 FlowSchema",
  "deadline": "2022-12-09",
  "sources": [
    {
      "title": "Kubernetes Deprecated API Migration Guide",
      "url": "https://kubernetes.io/docs/reference/using-api/deprecation-guide/",
      "accessedAt": "2026-10-17"
    },
    {
      "title": "Kubernetes v1.26: Electrifying (release announcement, 2022-12-09)",
      "url": "https://kubernetes.io/blog/2022/12/09/kubernetes-v1-26-release/",
      "accessedAt": "2026-10-17"
    }
  ],
  "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 (flowcontrol.apiserver.k8s.io/v1beta2 FlowSchema) can differ in required fields or field names from the removed version; read the FlowSchema entry in the Kubernetes Deprecated API Migration Guide and convert the manifest accordingly."
    ],
    "steps": [
      {
        "id": "update-api-version",
        "title": "Change the FlowSchema apiVersion",
        "instructions": "Change the reported `apiVersion` to the replacement version (flowcontrol.apiserver.k8s.io/v1beta2 FlowSchema).",
        "targets": "declaration"
      },
      {
        "id": "convert-fields",
        "title": "Convert fields the new version changed",
        "instructions": "Apply the field changes the migration guide lists for FlowSchema, then check the manifest still expresses the same intent.",
        "targets": "declaration"
      },
      {
        "id": "align-other-manifests",
        "title": "Align other FlowSchema declarations",
        "instructions": "Update every other manifest, Helm template, and kustomize patch or target that names the old FlowSchema 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."
      }
    ]
  }
}
