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

Ability to change default namespace without namespace permission #67

Closed
morhook opened this issue May 17, 2020 · 12 comments · Fixed by #70
Closed

Ability to change default namespace without namespace permission #67

morhook opened this issue May 17, 2020 · 12 comments · Fixed by #70

Comments

@morhook
Copy link

morhook commented May 17, 2020

On my work cluster the permission to list namespaces has been revoked. I cannot use anymore kubenav for any functionality on my iOS device (listing pods, deployments, etc).

Is there any way to do this via the interface for my use case? Or do I need a modification on the interface?

B5B94568-4967-41D8-B5C2-620CB2E756BF

@ricoberger
Copy link
Member

Hi @morhook, currently there is no way to change the namespace without the permission to list all namespaces. Maybe we should add a new input field in the EditCluster component which also allows the modification of the namespace. Currently the namespace isn't editable there: https://github.com/kubenav/kubenav/blob/master/src/components/settings/clusters/EditCluster.tsx#L108

@morhook
Copy link
Author

morhook commented May 19, 2020

On EditCluster will certainly work! Thanks a lot!

@ricoberger
Copy link
Member

HI @morhook, the beta versions with the change are now available for iOS, Android and the desktop:

@morhook
Copy link
Author

morhook commented May 30, 2020

I can see the edition of the namespace, but I’m getting an error that says “Could not create Kubernetes API client”

@ricoberger
Copy link
Member

Hi, sorry that it didn't work for you. Do you add your cluster using the Kubeconfig/manual option or do you use a cloud provider?

@morhook
Copy link
Author

morhook commented May 31, 2020 via email

@ricoberger
Copy link
Member

ricoberger commented Jun 2, 2020

Hi, I was able to reproduce your problem. For me the error occurred when I add a slash or space to the URL in the edit modal. I will improve this with the next version:

editCluster.url =

Can you check the fields in the edit modal, that they didn't contain any spaces please?

@morhook
Copy link
Author

morhook commented Jun 4, 2020

I’ve confirmed. No spaces on my URL.

@ricoberger
Copy link
Member

Mh, not sure what the problem is here. I think I tested every possible combination now. I only run into the problem, when one of the provided values wasn't formatted correctly or when I enabled the Insecure Skip TLS Verify toggle and also provide the Certificate Authority Data.

@morhook
Copy link
Author

morhook commented Jun 4, 2020

On my config I put a name, a Token, a server URL, a username and a namespace.

@ricoberger
Copy link
Member

Thanks for sharing, If you didn't provide the Certificate Authority Data you have to enable the Insecure Skip TLS Verify option. Also Token + Username wouldn't work. You have to set Username + Password for basic auth header or Token for the Authorization: Bearer header.

@morhook
Copy link
Author

morhook commented Jun 5, 2020

That did it! Thanks @ricoberger !

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

Successfully merging a pull request may close this issue.

2 participants