{
  "id": "cicd/helm-upgrade-failed-incompatible-versions",
  "signature": "Error: UPGRADE FAILED: incompatible versions client[v3.10.0] server[v3.8.0]",
  "signature_zh": "升级失败：客户端版本[v3.10.0]与服务器版本[v3.8.0]不兼容",
  "regex": "incompatible versions client\\[v\\d+\\.\\d+\\.\\d+\\] server\\[v\\d+\\.\\d+\\.\\d+\\]",
  "domain": "cicd",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Helm client and Tiller/server versions are mismatched, or in Helm v3, the installed chart version is not compatible with the cluster's Helm SDK version due to API changes.",
  "root_cause_type": "generic",
  "root_cause_zh": "Helm客户端和Tiller/服务器版本不匹配，或者在Helm v3中，安装的chart版本与集群的Helm SDK版本因API变更而不兼容。",
  "versions": [
    {
      "version": "Helm v3.8.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Helm v3.10.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Helm v3.12.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Kubernetes 1.25",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "--force only reapplies resources; does not fix version incompatibility; may cause resource conflicts.",
      "fail_rate": 0.65,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Cluster downgrade is risky and may break other services; not practical for production.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Reinstall doesn't change the server version; the cluster's Helm SDK is embedded in the tiller or in-cluster agent.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Upgrade Helm client to match server: `curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -s -- --version v3.8.0`",
      "success_rate": 0.85,
      "how": "Upgrade Helm client to match server: `curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -s -- --version v3.8.0`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use helm template to render locally and apply with kubectl, bypassing Helm server: `helm template release-name chart/ > manifest.yaml && kubectl apply -f manifest.yaml`",
      "success_rate": 0.9,
      "how": "Use helm template to render locally and apply with kubectl, bypassing Helm server: `helm template release-name chart/ > manifest.yaml && kubectl apply -f manifest.yaml`",
      "condition": "",
      "sources": []
    },
    {
      "action": "In CI/CD, pin Helm version in setup step: `uses: azure/setup-helm@v3 with helm-version: '3.8.0'`",
      "success_rate": 0.88,
      "how": "In CI/CD, pin Helm version in setup step: `uses: azure/setup-helm@v3 with helm-version: '3.8.0'`",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Upgrade Helm client to match server: `curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash -s -- --version v3.8.0`",
    "Use helm template to render locally and apply with kubectl, bypassing Helm server: `helm template release-name chart/ > manifest.yaml && kubectl apply -f manifest.yaml`",
    "In CI/CD, pin Helm version in setup step: `uses: azure/setup-helm@v3 with helm-version: '3.8.0'`"
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://helm.sh/docs/topics/version_skew/",
  "official_doc_section": null,
  "error_code": "HELM_VERSION_MISMATCH",
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.79,
  "resolvable": "true",
  "first_seen": "2023-11-30",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}