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

Clear the Kubernetes auth-info in cf api and cf logout #8

Merged
merged 3 commits into from
Nov 10, 2021

Conversation

gcapizzi
Copy link

@gcapizzi gcapizzi commented Nov 9, 2021

This makes sure that the Kubernetes auth-info is cleared when the user switches to a different CF (either on VMS or on K8s) via cf api, or when they cf api --unset or cf logout.

In the cf logout case, the Enabled flag is left to true so that the user can log back in with a simple cf login.

@gcapizzi gcapizzi changed the title Clear the Kubernetes auth-info in cf api Clear the Kubernetes auth-info in cf api and cf logout Nov 9, 2021
@gcapizzi gcapizzi changed the title Clear the Kubernetes auth-info in cf api and cf logout Clear the Kubernetes auth-info in cf api and cf logout Nov 9, 2021
Copy link
Collaborator

@jdgonzaleza jdgonzaleza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gcapizzi gcapizzi merged commit a5e5680 into master Nov 10, 2021
@gcapizzi gcapizzi deleted the cf-api-clear-auth-info branch November 10, 2021 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants