Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: delete k1dir instead of kubeconfig file #2317

Merged
merged 1 commit into from
Nov 18, 2024
Merged

Conversation

jokestax
Copy link
Contributor

@jokestax jokestax commented Nov 4, 2024

Description

when we do "kubefirst k3d destroy",it doesnt delete the k1dir repo which return an error that "repo already exists" when we try to provision a k3d cluster again and the cleanup path is also wrong one, it should be (config.K1Dir + "<cluster_name>/kubeconfig")

Testing

Provision a Kubefirst in k3d environment
Clone the repo
run:

go build .
./kubefirst k3d destroy

@jokestax jokestax self-assigned this Nov 4, 2024
@jokestax jokestax linked an issue Nov 4, 2024 that may be closed by this pull request
@jokestax jokestax linked an issue Nov 4, 2024 that may be closed by this pull request
2 tasks
@jokestax jokestax merged commit c76c7bb into main Nov 18, 2024
8 checks passed
@jokestax jokestax deleted the fix-k3d-destroy branch November 18, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

kubefirst reset command does not work kubefirst reset needs to be more aggressive with its cleanup
3 participants