metalbear-co / mirrord-vscode

Connect your local process and your cloud environment, and run local code in cloud conditions.
https://mirrord.dev
MIT License
8 stars 10 forks source link

Kube context cluster name with spaces cannot be connected to #83

Closed alexbowers closed 11 months ago

alexbowers commented 1 year ago

Bug Description

If you have your kubernetes cluster context with a name with a space: eg. Staging Cluster, then you are unable to switch to the cluster in VScode:

The error reported:

Failed to switch the namespace: error: Unexpected args: [Staging Cluster]

If I change the name to staging-cluster in the kube config, then connecting works.

Steps to Reproduce

  1. Create a cluster and make sure that the name has a space in the kube config.
  2. Try to switch the namespace and / or the cluster.

Backtrace

No response

Relevant Logs

No response

Your operating system and version

Mac OS latest

Local process

.

Local process version

No response

Additional Info

No response

aviramha commented 1 year ago

Hey @alexbowers - thanks for reporting this. Can you share a screenshot how you're doing this? I don't think it's a feature that's part of our extension (rather feature of the VSCode k8s extension 😄 )

aviramha commented 12 months ago

Hey @alexbowers - please let me know if it's still relevant.