Open webdog opened 2 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@senorprogrammer Any chance the wontfix label could be removed?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
What should it do?
In the Kubernetes module, if a context isn't specified, the behavior is to revert to the default context. If this doesn't exist, the application panics, and returns an invalid memory address.
A current-context exists, but I do not use a default context. I programatically generate my kubeconfigs with the aws CLI, and then remove the kubeconfig after the cluster is removed. When aws CLI regenerates the config, it isn't expected to create a default context based on the parameters sent to the aws cli.
To reproduce:
aws eks update-kubeconfig --region us-west-2 --name my-eks-cluster --alias my-alias
It seems reasonable (to me 😄 ) that a current-context can exist when a default doesn't, as this setup isn't necessarily breaking the kubeconfig. wtfutil seems to be state-dependent on the kubeconfig, adding support for the current would/could mitigate this somewhat.
Thank you!