-
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
Allow to configure git services in Che configuration #21577
Comments
We can implement Validating Webhook to check the CheCluster CR fields.
Where I see the several problems:
|
Ok @tolusha let's do that (git services are not required by default) but then we don't need the |
With your proposal, if the admin wants to configure both gitlab.com and gitlab on prem can he do something like this: spec:
gitServices:
gitlab:
endpoint: gitlab.mycompany.com
secret: gitlabinternal-oauth-config
gitlab:
endpoint: gitlab.com
secret: gitlabdotcom-oauth-config |
That won't be possible. I thought the only one configuration of gitlab service is possible on the cluster. |
But anyway, we can move to arrays:
|
Ok. Yes we need to consider that use case as well so it's better to use lists. |
sync'd to Red Hat JIRA https://issues.redhat.com/browse/CRW-3351 |
Is your enhancement related to a problem? Please describe
We want to make it simpler for admin to configure Git services in Che (GitHub, Gitlab, BitBucket): it should not be necessary to look at Eclipse Che documentation.
This first issue is about the CheCluster CR update. There will be another issue dedicated to some new
chectl
parameters to configure git services.Describe the solution you'd like
The oAuth App id/secret/private.key etc... should not be directly in the CR (no clear text passwords in the CR). The
secret
field of anoauthApp
is the name of an existing Kubernetes Secret that includes the base64 encodedid
andsecret
. That should be documented clearly in the CRD field to avoid that admins need to read Eclipse Che documentation.Release Notes Text
Configuring Git services OAuth will be more straightforward for administrators as it's possible to reference Git servies secrets from CheCluster CRs. On OpenShift those new configuration will be available from the OpenShift Console UI.
The text was updated successfully, but these errors were encountered: