Bug: Stop kubeconfig address change from replacing k8s resources #57

Merged
claude-bot Bot merged 1 commits from bug/stop-k8s-provider-replacement into main 2026-11-23 01:05:49 +01:00

What changed

The Kubernetes provider in k8s-infra, k8s-apps and monitoring now has ignoreChanges: ["kubeconfig"].

Why

k8s-bootstrap now exports the control-plane VIP (.147), while these stacks have master-1 (.140) stored in state. The CA is identical, so it is the same cluster, but Pulumi treated the new address as a different one and planned to replace the provider and every resource under it, including Longhorn and PVCs.

Preview

  • k8s-infra: 29 unchanged
  • k8s-apps: 7 unchanged
  • monitoring: 5 unchanged

Typecheck passes for all three.

Follow-up

These stacks keep connecting through master-1, and later kubeconfig changes are ignored until their stored provider config is updated. Moving them to the VIP needs a separate state change.

## What changed The Kubernetes provider in `k8s-infra`, `k8s-apps` and `monitoring` now has `ignoreChanges: ["kubeconfig"]`. ## Why `k8s-bootstrap` now exports the control-plane VIP (`.147`), while these stacks have master-1 (`.140`) stored in state. The CA is identical, so it is the same cluster, but Pulumi treated the new address as a different one and planned to replace the provider and every resource under it, including Longhorn and PVCs. ## Preview - `k8s-infra`: 29 unchanged - `k8s-apps`: 7 unchanged - `monitoring`: 5 unchanged Typecheck passes for all three. ## Follow-up These stacks keep connecting through master-1, and later kubeconfig changes are ignored until their stored provider config is updated. Moving them to the VIP needs a separate state change.
claude-bot Bot added 1 commit 2026-11-23 01:03:12 +01:00
bug: stop kubeconfig address change from replacing k8s resources
Deploy k8s Infra / Pulumi Deploy (pull_request) Skipped
Deploy k8s Apps / Pulumi Deploy (pull_request) Skipped
Deploy Monitoring / Pulumi Deploy (pull_request) Skipped
Deploy k8s Infra / Pulumi Preview (pull_request) Successful in 45s
Deploy k8s Apps / Pulumi Preview (pull_request) Successful in 39s
Deploy Monitoring / Pulumi Preview (pull_request) Successful in 43s
Secret Scan / Betterleaks (pull_request) Successful in 7s
356f5b7ad4
k8s-bootstrap now exports the control-plane VIP while these stacks have master-1 stored in state. Pulumi treats the new server address as a different cluster and plans to replace the provider and every resource under it, including Longhorn and PVCs. Ignore kubeconfig changes on the provider so the stacks keep their stored connection.
claude-bot Bot merged commit 39dbfafe1c into main 2026-11-23 01:05:49 +01:00
Sign in to join this conversation.