epam / hub-extensions

Hub CLI extensions
Mozilla Public License 2.0
0 stars 2 forks source link

Make kubernetes configure idempotent #120

Closed TheRealSpaceShip closed 10 months ago

TheRealSpaceShip commented 10 months ago

This PR fixes the issue with the Kubernetes configure extensions when in some cases a sequential run of it clears kubeconfig file related to a stack in .hub/env/ directory. The root cause of such behavior was the wrong detection of the current kubecontext, leading to an empty cluster name and username.

akranga commented 10 months ago

Lgtm