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

prune: add new command #49

Merged
merged 8 commits into from
Jan 26, 2024
Merged

prune: add new command #49

merged 8 commits into from
Jan 26, 2024

Conversation

embik
Copy link
Owner

@embik embik commented Jan 26, 2024

Fixes #3.

This adds kbs prune, a command that will check all kubeconfigs (or those matched by a selector) for if their remote server is still reachable and the Kubernetes API version can be fetched.

I've also reworked quite some code in the course of adding this command, which I didn't want to move to a separate refactor PR, so here goes nothing.

Signed-off-by: Marvin Beckers <mail@embik.me>
Signed-off-by: Marvin Beckers <mail@embik.me>
Signed-off-by: Marvin Beckers <mail@embik.me>
Signed-off-by: Marvin Beckers <mail@embik.me>
Signed-off-by: Marvin Beckers <mail@embik.me>
Signed-off-by: Marvin Beckers <mail@embik.me>
Signed-off-by: Marvin Beckers <mail@embik.me>
Signed-off-by: Marvin Beckers <mail@embik.me>
@embik embik merged commit ac66d4d into main Jan 26, 2024
2 checks passed
@embik embik deleted the prune-command branch January 26, 2024 22:04
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.

prune subcommand to clean stale kubeconfigs
1 participant