-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Factory acceptance fails if there is no k8s namespace yet #19236
Comments
Dashboard workaround introduced in eclipse-che/che-dashboard#183 is broken, probably due changes on Che Server side #19518 It's how now the dashboard notifies users about namespace absence: |
I also ran into this issue while testing my GitHub integration with OAuth. Once my PR gets merged, we might see more and more occurrences of this problem since a lot of people are using GitHub. So this doesn't only apply to BitBucket, but also to GitHub eventually. |
Honestly, i don't like idea that Since dashb already doing the request to figure out list of user-s namespaces (and theirs existence), That will also help if user have multiple NS, so we will create token secrets exactly where is is specified by dashb and avoid mess. @skabashnyuk @sleshchenko WDYT ? |
Dashboard does not know it. In that case, we need to provide a service that will tell what the namespace names should be.
Users can have one and only one NS. |
Service is already present and dashboard making requests to it. Link |
@mshaposhnik I think it's better to rethink/refact che-server internals and create k8s namespace when it's needed. |
Is your task related to a problem? Please describe.
The PR eclipse-che/che-dashboard#183 integrates dashboard with Che Server Bitbucket OAuth flow implemented recently. But there is one drawback: oauth flow can't be finished is namespace does not exists and Dashboard can do nothing with it.
Che Server should try to precreate namespace when it does not exist on
/api/kubernetes/namespaces
method or on try to store bitbucket secret.I'm open to discuss alternative if any.
The text was updated successfully, but these errors were encountered: