-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
current-context in ~/.kube/config not cleaned up #527
Comments
@Jeffwan thanks for reporting this! I can confirm I've noticed it a few times also. Would you be keen on fixing this? |
I've never contributed to eksctl, Let me take a look. |
Please do, this should be fairly easy.
…On Mon, 11 Feb 2019, 6:18 pm Jiaxin Shan ***@***.*** wrote:
I've never contributed to eksctl, Let me take a look.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#527 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPWS5iZfKHW56je9BgIWfbvxSkAD4MJks5vMbP5gaJpZM4axGSG>
.
|
/cc @Jeffwan |
@errordeveloper If we have two cluster and delete current using one. Should eksctl set I am thinking auto switch to other context might be user friendly but it bring risk user create/delete resource in other cluster due to mistakes. Using empty context force user choose context after current cluster deletion but it's safe. What do you think? |
We could clear the context whenever it does look like ours (i.e matches |
What happened?
After I delete the cluster, current-context still have the old context
username@cluster-name.us-west-2.eksctl.io
which has not been cleaned up.if there's only one cluster, result as follow
What you expected to happen?
I expect the cluster context resume to the valid one.
How to reproduce it?
create cluster and delete cluster.
Anything else we need to know?
Versions
Please paste in the output of these commands:
Also include your version of
heptio-authenticator-aws
Logs
Include the output of the command line when running eksctl. If possible, eksctl should be run with debug logs. For example:
eksctl get clusters -v 4
Make sure you redact any sensitive information before posting.
If the output is long, please consider a Gist.
The text was updated successfully, but these errors were encountered: