{
  "id": "cicd/helm-deploy-failed-no-api-versions",
  "signature": "Error: UPGRADE FAILED: failed to decode: unable to find api-versions for 'networking.k8s.io/v1beta1/Ingress'. The chart may be incompatible with the cluster version.",
  "signature_zh": "错误：升级失败：解码失败：无法找到 'networking.k8s.io/v1beta1/Ingress' 的 API 版本。该 Chart 可能与集群版本不兼容。",
  "regex": "UPGRADE FAILED.*unable to find api-versions for '.*/.*/.*'",
  "domain": "cicd",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "A Helm chart references a deprecated Kubernetes API version (e.g., networking.k8s.io/v1beta1) that is no longer available in the target cluster (e.g., Kubernetes 1.22+), causing the deployment to fail.",
  "root_cause_type": "generic",
  "root_cause_zh": "Helm Chart 引用了已弃用的 Kubernetes API 版本（例如 networking.k8s.io/v1beta1），该版本在目标集群中不再可用（例如 Kubernetes 1.22+），导致部署失败。",
  "versions": [
    {
      "version": "Helm 3.12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Helm 3.13",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Kubernetes 1.22",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Kubernetes 1.24",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Kubernetes 1.27",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "--force only replaces resources; it does not change the API version requirements.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The Helm client only sends the manifest; the cluster rejects unknown API versions.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The same chart manifest is used, so the same API version error will occur.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Update the chart to use the equivalent stable API version: replace 'networking.k8s.io/v1beta1' with 'networking.k8s.io/v1' for Ingress, or use 'apps/v1' for Deployments.",
      "success_rate": 0.9,
      "how": "Update the chart to use the equivalent stable API version: replace 'networking.k8s.io/v1beta1' with 'networking.k8s.io/v1' for Ingress, or use 'apps/v1' for Deployments.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use the 'helm mapkubeapis' plugin to automatically migrate deprecated API versions in the chart before deployment.",
      "success_rate": 0.85,
      "how": "Use the 'helm mapkubeapis' plugin to automatically migrate deprecated API versions in the chart before deployment.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Pin the chart to a version that supports the target cluster's API versions by specifying a chart version in the Helm command or requirements.yaml.",
      "success_rate": 0.8,
      "how": "Pin the chart to a version that supports the target cluster's API versions by specifying a chart version in the Helm command or requirements.yaml.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Update the chart to use the equivalent stable API version: replace 'networking.k8s.io/v1beta1' with 'networking.k8s.io/v1' for Ingress, or use 'apps/v1' for Deployments.",
    "Use the 'helm mapkubeapis' plugin to automatically migrate deprecated API versions in the chart before deployment.",
    "Pin the chart to a version that supports the target cluster's API versions by specifying a chart version in the Helm command or requirements.yaml."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://helm.sh/docs/topics/kubernetes_apis/",
  "official_doc_section": null,
  "error_code": "HELM_API_VERSION_MISMATCH",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.87,
  "resolvable": "true",
  "first_seen": "2023-09-01",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}