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

chectl: --devfile-registry-url and --che-operator-cr-yaml do not play well together #14589

Closed
4 of 23 tasks
makandre opened this issue Sep 18, 2019 · 3 comments
Closed
4 of 23 tasks
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator area/chectl Issues related to chectl, the CLI of Che severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@makandre
Copy link

makandre commented Sep 18, 2019

Describe the bug

I'm using chectl to deploy a customized version of Che (using --che-operator-cr-yaml).

I also want to use an external devfile registry.

  • I assumed that specifying --devfile-registry-url=<url> will work, but it ends up still using the default online devfile registry
  • Turns out I need to add devfileRegistryUrl property to my yaml; but I still need --devfile-registry-url otherwise it still deploys a devfile registry pod (I think Add a chectl server:start flag to specify if using external registries #13949 may address this?)

So the gist of it is that I need to specify the devfile registry url both in my yaml and on the chectl command line which is not ideal

Che version

  • latest
  • nightly
  • other: please specify

Steps to reproduce

Expected behavior

Runtime

  • kubernetes (include output of kubectl version)
  • Openshift (include output of oc version)
oc version
oc v3.11.0+0cbc58b
kubernetes v1.11.0+d4cacc0
features: Basic-Auth

Server https://makandre-master.fyre.ibm.com:8443
openshift v3.11.0+739ab57-285
kubernetes v1.11.0+d4cacc0
  • minikube (include output of minikube version and kubectl version)
  • minishift (include output of minishift version and oc version)
  • docker-desktop + K8S (include output of docker version and kubectl version)
  • other: (please specify)

Screenshots

Installation method

  • chectl
  • che-operator
  • minishift-addon
  • I don't know

Environment

  • my computer
    • Windows
    • Linux
    • macOS
  • Cloud
    • Amazon
    • Azure
    • GCE
    • other (please specify)
  • other: please specify

Additional context

@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Sep 18, 2019
@rhopp
Copy link
Contributor

rhopp commented Sep 20, 2019

I agree, that when chectl is using operator to install Che, it's really confusing how checluster CR yaml and chectl flags play together.

For the specific problem you are having, there is should be boolean property in checluster CR externalPluginRegistry.

@rhopp rhopp added area/chectl Issues related to chectl, the CLI of Che area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator severity/P2 Has a minor but important impact to the usage or development of the system. and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Sep 23, 2019
@nickboldt
Copy link
Contributor

nickboldt commented Oct 16, 2019

Since the cr.yaml now includes the option to override 9 Che images [1] including the two registries... maybe we should remove the plugin/devfile registry CLI options?

[1] https://github.com/redhat-developer/codeready-workspaces-deprecated/blob/master/operator-installer/custom-resource.yaml#L12-L14

I'm thinking it makes sense since in addition to the registries you might also want to override the server, and the server is actually 6 containers... all the one-off image CLI override flags should be removed except for:

  • operator image
  • cr.yaml file

@nickboldt nickboldt changed the title chectl: --devfile-registry-url and --che-operator-cr-yaml does not play well together chectl: --devfile-registry-url and --che-operator-cr-yaml do not play well together Oct 16, 2019
@tolusha
Copy link
Contributor

tolusha commented Mar 4, 2020

--devfile-registry-url is ignored when --che-operator-cr-yaml is used.
External devfile registry can be configured in cr yaml file

@tolusha tolusha closed this as completed Mar 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/che-operator Issues and PRs related to Eclipse Che Kubernetes Operator area/chectl Issues related to chectl, the CLI of Che severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants