helm-release-force-rerender

Reconcile Terraform state and re-import Helm releases to force template re-rendering.

5|Updated Feb 7, 2021
One-click install
npx skills add https://github.com/ViktorBarzin/infra --skill helm-release-force-rerender
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: helm-release-force-rerender
Source: https://github.com/ViktorBarzin/infra/tree/main/.claude/skills/helm-release-force-rerender
Command: npx skills add https://github.com/ViktorBarzin/infra --skill helm-release-force-rerender

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Kubernetes resources rendered by Helm templates can stay stale after changes to Helm values, even when a Terraform apply succeeds, leading to mismatches between desired state and actual resources.

Core Features & Use Cases

  • Force a full Helm template re-render by reconciling Terraform state with the actual release and re-importing it.
  • Applies to charts managed via Terraform helm_release, especially for state-drift scenarios in Kubernetes clusters.
  • Useful with common ingress and service charts where structural value changes require complete template re-render.

Quick Start

Force a full Helm template re-render by removing the release from Terraform state, re-importing it, and applying the target module.

Frequently Asked Questions about helm-release-force-rerender

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I force a Helm template re-render when Terraform state drifts from Kubernetes cluster state?

To force a Helm template re-render and resolve Terraform state drift, remove the helm_release from Terraform state, re-import it, and perform a targeted apply. This reconciles Terraform state with the actual release and aligns K8s resources with desired values.

What causes Helm renders to stay stale after updating helm_release values in Terraform?

Helm renders stay stale because Terraform apply succeeds without triggering a full template re-render, causing drift between Terraform state and Kubernetes cluster state. Structural value changes in common ingress and service charts require complete template re-rendering to reflect updates.

How do I re-import a helm_release in Terraform to update Kubernetes state?

To re-import a helm_release and update Kubernetes state, remove the release from Terraform state, re-import it to reconcile the actual release, and apply the target module. This forces a full Helm template re-render to align resources with desired values.

Does this workflow work for fixing state drift in charts managed via Terraform helm_release?

Yes, this workflow specifically applies to charts managed via Terraform helm_release. It is designed for state-drift scenarios in Kubernetes clusters where structural value changes require forcing a complete template re-render to match desired state.

When should I manually remove and re-import a Helm release from Terraform state?

You should remove and re-import a Helm release from Terraform state when Kubernetes resources rendered by Helm templates stay stale after value changes, and a successful Terraform apply fails to re-render templates, leading to mismatches between desired state and actual resources.