IlanCosman/tide

Tide and kubectl conflicts

Silverbullet069 opened this issue · 1 comments

Describe the bug

If you, by any chance, ran kubectl before but haven't uninstall or unset all the properties, Tide still remember the kubectl info and display on terminal.

Steps to reproduce

  1. Config GKE cluster using kubectl
  2. Install Tide latest version fisher install IlanCosman/tide@v5
  3. See error

Screenshots

Screenshot 2023-04-19 025508
What that line is "gke_load-test-k8s-locust-demo_asia-southeast1-c_gke-lt-cluster-demo"

Environment

Output of tide bug-report:


Additional context

This output coincidently match my kubectl profile:

  • Project name is "gke_load-test-k8s-locust-demo"
  • Time zone is "asia-southeast1-c"
  • Name of my GKE cluster "gke-lt-cluster-demo".

Solution

Run the following lines:

kubectl config unset users
kubectl config unset contexts
kubectl config unset clusters

Problem should be solved by now.

I'm just a user but — presumably this is just reading the kubectl config file? How would tide know you didn't want to show this?