dheerajreddy01/claude-skills/helm
Claude Code and agent skill by dheerajreddy01/claude-skills
- community
Checking that the SKILL.md file is still in the repository.
Helm chart structure, Go templating, values precedence, and release lifecycle practices
Install
npx vskill@latest install dheerajreddy01/claude-skills/helmSKILL.md
The same SKILL.md was published earlier as dheerajreddy01/claude-skills/helm.
Helm
Templates that render valid YAML for the values you tested, and quietly don't for the ones you didn't
Applicable Scenarios
- Structuring a Helm chart (templates, values, dependencies) for a Kubernetes application
- Managing values overrides across multiple environments
- Diagnosing a failed
helm upgradeor unexpected rendered output - Handling chart dependencies (subcharts) and shared values
- Planning release rollback strategy
Core Knowledge
Chart Structure
- `Chart.yaml`'s
versionis the chart's own version;appVersionis the version of the application it deploys — these are independent and often confused - Subcharts let a chart depend on other charts (e.g., a web app chart depending on a Redis chart) — subchart values are namespaced under the subchart's name in the parent's
values.yaml
Templating
- Helm templates are Go templates rendered against the merged values, producing final Kubernetes YAML — templating happens entirely client-side (or server-side via
helm template) before anything is sent to the cluster - Conditional/loop constructs (
{{ if }},{{ range }}) generate different YAML depending on values — a combination of values nobody tested can render syntactically invalid or semantically wrong YAML that only fails at actual deploy time helm template(renders without installing) andhelm lintare the primary ways to catch template bugs before they hit a real cluster
Values Precedence
Values merge from multiple sources, later sources overriding earlier ones:
- Multiple
-fflags apply in the order given, each overriding overlapping keys from the previous --setalways wins over any-ffile, regardless of order — a--setin a CI script can silently override a carefully maintained environment values file
Release Lifecycle
| Command | Effect | |
|---|---|---|
helm install | First deployment of a release | |
helm upgrade | Applies a new chart version/values to an existing release | |
helm rollback | Reverts to a previous release revision | |
helm history | Lists all revisions of a release |
Helm tracks release history as its own state (stored as Secrets in-cluster by default) — this is what helm rollback reverts to, and it's a record of values and chart version, not a guarantee that the underlying resources can always be cleanly reverted (see Sharp Edges).
Best Practices
- Run `helm lint` and `helm template` in CI for every chart change, across the actual values files used per environment — not just the defaults
- Keep environment-specific values in separate, version-controlled files (
values-prod.yaml,values-staging.yaml), layered onto shared defaults - Avoid `--set` for anything beyond quick manual testing — it's invisible in version control and silently overrides file-based values
- Set explicit resource requests/limits in chart defaults, not just documentation — a chart's defaults are what most installs will actually run with
- Pin subchart versions explicitly in
Chart.yaml'sdependencies, don't float on ranges for anything beyond local development - Understand that Helm doesn't manage CRD lifecycle well — treat CRDs installed by a chart as a separate, deliberate operational concern, not something
helm upgradewill safely evolve
Common Mistakes
| Mistake | Correct Approach | |
|---|---|---|
Testing a chart only against its default values.yaml | Run helm template/lint against every real environment's values combination in CI | |
Using --set for production deploys | Use version-controlled values files layered via -f; reserve --set for local debugging | |
Assuming Chart.yaml's version and appVersion are the same thing | Track them independently — version is the chart, appVersion is the app it deploys | |
Expecting helm upgrade to handle any field change on any resource | Understand which fields are immutable on the underlying resource type and plan around forced replacements | |
Relying on helm upgrade to evolve CRDs installed by the chart | Manage CRD installation/upgrade as an explicit, separate step |
Sharp Edges
SE-1: helm upgrade Failing on Immutable Field Changes
- Severity: high
- Situation: A seemingly minor values change (e.g., a Job's
selector, a PVC's storage class) causeshelm upgradeto fail with a cryptic Kubernetes API error about an immutable field, and the release gets stuck in a failed/pending state - Cause: Some Kubernetes resource fields are immutable after creation at the API level — Helm doesn't know this ahead of time and simply submits the changed manifest, and the Kubernetes API server is what actually rejects it
- Symptoms:
helm upgradefails withfield is immutableor similar, often deep in a nested resource type- The release history shows a failed revision that needs manual intervention to resolve
- Solution: For fields known to be immutable on a given resource type, either avoid changing them via chart values in-place, or explicitly delete-and-recreate the specific resource as part of the upgrade process (some charts template this via
helm.sh/hook: pre-upgradedelete jobs) - Details: → [extended/checklists.md#chart-safety-checklist]
SE-2: Values Override Precedence Confusion
- Severity: high
- Situation: A deploy uses multiple
-fvalues files plus a--setflag, and the final rendered configuration doesn't match what any single file specifies — a value from an unexpected source silently won - Cause: Helm's merge order (chart defaults →
-ffiles in given order →--set) means a later source always wins on overlapping keys, and it's easy to lose track of which source actually determined a given final value across several layered files and flags - Symptoms:
- A configuration change made in what looks like "the right file" doesn't take effect
helm get valuesshows a different effective value than expected from reading the values files alone- Solution: Use
helm template/helm get values -ato inspect the actual merged/rendered output before trusting what any individual source file implies, and minimize the number of values sources layered together for any single deploy
SE-3: Template Logic Producing Invalid YAML Only for Certain Values
- Severity: medium
- Situation: A chart's
{{ if }}/{{ range }}template logic renders valid YAML for the values combinations that were tested, but a different, untested combination (e.g., an empty list, a missing optional key) produces malformed or semantically wrong YAML that only fails at actualhelm install/upgradetime - Cause: Go templates don't validate the semantic correctness of their output — a template can be syntactically valid Go template code while still producing broken YAML for edge-case input values
- Symptoms:
- A chart that works fine in one environment fails to render or deploy correctly in another with different values
- The failure is a YAML parse error or a Kubernetes API rejection that only appears with specific values combinations
- Solution: Run
helm template/lintagainst every real environment's values file (not just defaults) in CI, and explicitly test edge cases like empty lists, zero replicas, and missing optional values
SE-4: Chart Default Resource Settings Propagating an Anti-Pattern
- Severity: medium
- Situation: A chart ships with no (or unrealistic) default resource requests/limits, and every team that installs it without overriding those defaults ends up with unbounded or mis-sized workloads across the fleet
- Cause: Most consumers of a chart install it with mostly-default values, especially early on — whatever the chart's defaults are effectively becomes the fleet-wide baseline unless someone actively overrides them
- Symptoms:
- Many unrelated deployments across the cluster share the same missing/unrealistic resource configuration, traceable back to one chart's defaults
- Solution: Set sane, explicit resource request/limit defaults in the chart itself (not just as commented-out examples in
values.yaml), so the path of least resistance for consumers is already reasonably safe
SE-5: CRD Lifecycle Not Managed by helm upgrade
- Severity: high
- Situation: A chart that installs Custom Resource Definitions (CRDs) ships a new chart version with updated CRDs, but
helm upgradedoesn't apply the CRD changes — the cluster's CRDs silently stay on the old version, causing confusing behavior for anything relying on the new CRD schema - Cause: Helm deliberately does not manage CRD upgrades or deletions through the normal template lifecycle (CRDs placed in a chart's special
crds/directory are only installed onhelm install, never updated or removed byhelm upgrade/uninstall) — this is a documented but frequently-missed Helm design decision - Symptoms:
- A resource using a CRD's new field has no effect, because the cluster's installed CRD schema doesn't yet include that field
kubectl get crd <name> -o yamlshows an older schema version than what the chart'scrds/directory currently contains- Solution: Treat CRD installation/upgrade as an explicit, separate operational step (a dedicated
kubectl applystep, or a separate chart/job specifically for CRD management) rather than assuminghelm upgradekeeps them current
Recommended Tools
| Category | Tools | |
|---|---|---|
| Linting/rendering | helm lint, helm template, helm-unittest | |
| Chart management | Helmfile, Chart Releaser | |
| Repositories | ChartMuseum, OCI-based registries | |
| Alternatives/complements | Kustomize (overlay-based, no templating language) |
Chart Safety
Full checklist: → [extended/checklists.md#chart-safety-checklist]
Related Resources
Helm Docs | Helm Best Practices | Chart Template Guide
Related Domains
[[kubernetes]] | [[docker]] | [[argocd-flux]] | [[github-actions]]
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingenterprise-devtools/helm/skills/helm/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dheerajreddy01/claude-skills/helm)