Drop the home PVC migration import, keep the removed block #7
No reviewers
Labels
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
GuillaumeHemmen-k8s/coder-sindri-deployment!7
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "chore/pvc-v1-migration-cleanup"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Step 2 of 2 for the
kubernetes_persistent_volume_claim→_v1migration (#6).Migration result
All workspaces were updated to the #6 template and restarted. Home PVCs verified on the cluster afterwards:
46f76366…f0194552…83d83509…~/toto.txtsurvived two builds on the migration versionChange
kubernetes_persistent_volume_claim_v1.existing_homedata source and theimportblock.removed { destroy = false }block, permanently, with a comment explaining why. For a workspace that somehow missed the migration, it turns what would be a destroy of its home PVC (reclaimPolicy Delete) into a harmlessalready existserror on create. The fix in that case is to re-run #6's import.Tested (plan only, Terraform 1.14.5 / kubernetes v3.2.1)
_v1in state, ghe-perso's real PVC)_v1: updateforget,_v1:create(would fail "already exists")terraform validate: valid, no warnings.🤖 Generated with Claude Code