Add kubectl bootstrap script #31
No reviewers
Labels
No labels
blocked
bug
duplicate
effort
high
effort
low
effort
medium
effort
minimal
enhancement
help wanted
invalid
pr
feedback
pr
reviewing
question
status
backlog
status
document
status
done
status
implement
status
pending
status
planning
status
reviewing
waiting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tepichord/milner!31
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/30-kubectl-bootstrap-script"
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?
Closes #30
Automated PR created by forgejo-done adapter.
use-kubectl.sh extracted context/cluster/user names by matching map-style YAML keys (' name:'), but every real kubeconfig here is list-style ('- name: ...'): kubectl config set-*, Talos/terraform output, and kubectl config view --flatten (the script's own output). The parser therefore found nothing — routing configs down the wholesale-replace path and silently deleting unrelated clusters — or matched phantom keys such as the users section's 'user:' line and skipped the stale-entry cleanup entirely. - Extract section names via kubectl config view jsonpath, which parses both styles. - Delete stale clusters/users by the freshly generated file's names: Talos names the cluster '<cluster>' (milner) but its context and user '<user>@<cluster>' (admin@milner), so name-equality with the context never matched the cluster entry and old CA/certs/server won the first-file-wins merge after a rebuild. - Correct README wording: the kubectl context is admin@milner, not milner.