Skip to content
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

Project names with spaces cause issues in kube config helper UI commands #288

Open
lukeab opened this issue Jul 10, 2019 · 0 comments
Open

Comments

@lukeab
Copy link

lukeab commented Jul 10, 2019

when a Project has a name with spaces in it, this results in generated commands in the kubectl config helper UI being broken due to the spaces.
eg.:

Set up the credentials:
kubectl config set-credentials [email protected]_acp-test_ACP Test Team --token=a1b2c3-...etc
Set up the context:
kubectl config set-context acp-test_ACP Test Team --cluster=acp-test [email protected]_acp-test_ACP Test Team
Now you can access the cluster:
kubectl --context=acp-test_ACP Test Team --namespace=<namespace> get pods

suggestions:

  1. quote the user and context name in all cases
  2. replace spaces with another valid non whitespace character on command generation
  3. backend/frontend validate input of Project names to make spaces invalid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant