What problem does it solve?
Upgrading a live kube-hetzner Kubernetes cluster from Terraform module v2.x to v3.x involves renamed variables, inverted booleans, silent default changes, and the risk of Terraform destroying production Hetzner infrastructure. This Skill guides the migration so validation failures become actionable and destructive plan actions are caught before apply.
Core Features & Use Cases
- Configuration Rewriting: Maps v2 inputs to v3 using MIGRATION.md, including renames like k3s_token to cluster_token, inverted booleans like disable_selinux to enable_selinux, and replacements like existing_network_id to existing_network.
- Static and Plan Audits: Runs scripts/v2_to_v3_migration_assistant.py against the Terraform root and the plan JSON to detect v2-only inputs and risky changes.
- Protected-Infrastructure Gate: Uses a jq filter over terraform show -json output to block any delete or replace action on hcloud_server, hcloud_network, hcloud_load_balancer, hcloud_volume, and other critical resource types.
- Use Case: An operator with a production k3s cluster on Hetzner Cloud wants to upgrade the module to v3.2.0 without recreating servers; the Skill backs up state, rewrites the root, validates with Terraform and OpenTofu, and produces a migration report before any apply.
Quick Start
Migrate my kube-hetzner Terraform root in the current directory from module v2 to v3 and show me the plan safety report before applying anything.