-
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
Importing several private projects in a single devfile fails #18494
Comments
Yes. Looks like UX is not ideal. |
@l0rd @vinokurig @mshaposhnik |
As you said, that solves the problem from a technical POV, but that wouldn't be an option for developers without knowledge about Kubernetes. We are evaluating Che/CRW as the standard development platform for customers with several hundreds of developers with various levels of knowledge/experience with Kubernetes. In large companies, development flows are usually abstracted from the platform for developers, and since Che would be aimed to replace local development environments, Kubernetes knowledge shouldn't be a requirement to use it. Having this implemented in the UI would greatly ease adoption for that kind of companies, as private repositories are the usual scenario there. |
This should have been fixed (at least for HTTPS) in #16401 We can investigate next sprint. |
@ericwill wdyt about #18494 (comment)? At which stage, we should validate the existence of ssh keys or git-config? |
@skabashnyuk agreed. In Theia there should be a git authentication helper that looks at git config or ssh keys before the clone starts and makes things work if it find them. Prompt the user otherwise. But for GitHub that flow should already be possible if the admin adds GitHub as an identity provider in Keycloak. We have created an issue to make it straightforward. @rromannissen a couple of considerations:
|
So I was under the impression that factories are gone, right? Doesn't that mean that:
is not supposed to work? |
@ericwill factories are not gone, it's just that it's not possible to manage factories from the dashboard anymore. The factory menu item has been removed and the corresponding API. |
Ah, okay. So I investigated and it seems that the factory API portion of the workspace plugin in che-theia ( I think this kind of answers your question @skabashnyuk. I'll have someone from my team investigate further to see what our options are. |
I am having a look |
The problem is that the two I don't think it make sense to have the commands executed in sequence. Will probably ask the second one to wait for the result of the first one. |
so finally implemented in eclipse-che/che-theia#959:
|
Describe the bug
I have tried importing a devfile with multiple projects stored in private GitHub repositories using the /f?url= API. The result is that Che fails to clone the repositories without even prompting for the credentials. Only the password request for the last repository is prompted (without previously asking for the user):
After entering the right password, that last clone fails as well and the projects list ends up empty:
The devfile used to reproduce this error is the following:
Che version
Che-Theia@5e48d39 using Theia@e2098321a in https://che.openshift.io and Che-Theia@4587314 using Theia@eb1136b11 in CodeReady Workspaces in OCP 4.6.4.
Steps to reproduce
The devfile used to reproduce this error is the following:
Just import it using the /f?url= API.
Expected behavior
Che asks for the credentials of each repository and executes the clone correctly for all projects.
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Reproduced in https://che.openshift.io and CodeReady Workspaces 2.5.0 in OCP 4.6.4.
Installation method
chectl version
commandOperatorHub for CodeReady Workspaces 2.5.0 in OCP 4.6.4.
Environment
Reproduced in https://che.openshift.io and CodeReady Workspaces 2.5.0 in OCP 4.6.4.
The text was updated successfully, but these errors were encountered: