{
  "id": "kubernetes/helm-upgrade-failed-missing-values",
  "signature": "Error: UPGRADE FAILED: values don't meet the specifications of the following chart templates: template \"deployment.yaml\" is missing required values",
  "signature_zh": "错误：升级失败：值不符合以下图表模板的规范：模板\"deployment.yaml\"缺少必需的值",
  "regex": "Error: UPGRADE FAILED: values don't meet the specifications of the following chart templates: template \"([^\"]+)\" is missing required values",
  "domain": "kubernetes",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Helm upgrade fails because the provided values.yaml is missing required keys that the chart template expects, often due to a new chart version with additional required fields.",
  "root_cause_type": "generic",
  "root_cause_zh": "Helm升级失败，因为提供的values.yaml缺少图表模板所需的键，通常是由于新图表版本增加了必需字段。",
  "versions": [
    {
      "version": "Helm v3.14.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Helm v3.13.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Kubernetes v1.28.4",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Run `helm upgrade --reuse-values` to reuse old values",
      "why_fails": "Reusing old values doesn't supply the missing required keys from the new chart version. It will still fail with the same error.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "Delete the release and reinstall with `helm install`",
      "why_fails": "Deleting the release may cause data loss (e.g., PVCs may be orphaned). Also, the install will fail for the same reason if values are missing.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Inspect the chart for required values: `helm show values <chart-name>` and compare with your values.yaml. Add missing keys, e.g., if the chart requires `service.port`, add `service: {port: 8080}` to your values file.",
      "success_rate": 0.9,
      "how": "Inspect the chart for required values: `helm show values <chart-name>` and compare with your values.yaml. Add missing keys, e.g., if the chart requires `service.port`, add `service: {port: 8080}` to your values file.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use `helm upgrade --install --dry-run --debug` to see the template rendering errors and identify exactly which values are missing.",
      "success_rate": 0.85,
      "how": "Use `helm upgrade --install --dry-run --debug` to see the template rendering errors and identify exactly which values are missing.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Inspect the chart for required values: `helm show values <chart-name>` and compare with your values.yaml. Add missing keys, e.g., if the chart requires `service.port`, add `service: {port: 8080}` to your values file.",
    "Use `helm upgrade --install --dry-run --debug` to see the template rendering errors and identify exactly which values are missing."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://helm.sh/docs/chart_template_guide/values_files/",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.88,
  "fix_success_rate": 0.87,
  "resolvable": "true",
  "first_seen": "2024-02-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}