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 with workspace-engine=dev-workspace doesn't work #18842

Closed
l0rd opened this issue Jan 20, 2021 · 2 comments
Closed

chectl with workspace-engine=dev-workspace doesn't work #18842

l0rd opened this issue Jan 20, 2021 · 2 comments
Assignees
Labels
area/chectl Issues related to chectl, the CLI of Che engine/devworkspace Issues related to Che configured to use the devworkspace controller as workspace engine. kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.

Comments

@l0rd
Copy link
Contributor

l0rd commented Jan 20, 2021

Describe the bug

Running chectl server:deploy --workspace-engine=dev-workspace currently doesn't work.

Che version

nightly

Steps to reproduce

On minikube try

chectl server:deploy --workspace-engine=dev-workspace -p minikube

Expected behavior

The devworkspace operator gets installed along with Che

Runtime

minikube

Screenshots

image

Installation method

$ chectl version
chectl/0.0.20210115-next.dc032a1 darwin-x64 node-v12.20.1

Environment

my computer / macOS

Eclipse Che Logs

  ❯ 🧪  DevWorkspace engine (experimental / technology preview) 🚨
    ✔ Create Namespace (devworkspace-controller)...Done.
    ✖ Create ServiceAccount devworkspace-controller in namespace devworkspace-controller
      → ENOENT: no such file or directory, open '/Users/mariolet/.local/share/chectl/client/0.0.20210115-next.dc032a1/templates/devworkspace/service_accoun
…
      Create Cluster Role devworkspace-controller
      Create ClusterRole edit-workspaces
      Create ClusterRole view-workspaces
      Create ClusterRoleBinding devworkspace-controller
      Create dev workspace CRDs
      Create dev workspace controller ConfigMap
      Create dev workspace controller
    Retrieving Keycloak admin credentials
    Retrieving Che self-signed CA certificate
    Prepare post installation output
 ›   Error: Error: ENOENT: no such file or directory, open
 ›   '/Users/mariolet/.local/share/chectl/client/0.0.20210115-next.dc032a1/templates/devworkspace/service_account.yaml'
 ›   Command server:deploy failed. Error log: /Users/mariolet/Library/Caches/chectl/error.log

Additional context

Probably it got broken when the dev-workspace operator has been updated to use Operator SDK v1. Operator yamls have been replaced with kustomize templates so there is no easy way to fix that.

One option is to generate the operator yaml files when a PR is merged devworkspace side. Those yaml should be published somewhere (gh releases or pages) and retrived by chectl at build time.

Another option is to use kustomize during chectl build.

@l0rd l0rd added kind/bug Outline of a bug - must adhere to the bug report template. engine/devworkspace Issues related to Che configured to use the devworkspace controller as workspace engine. labels Jan 20, 2021
@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 Jan 20, 2021
@l0rd l0rd added severity/P1 Has a major impact to usage or development of the system. area/chectl Issues related to chectl, the CLI of Che and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jan 20, 2021
@l0rd l0rd added this to the DevWorkspace Integration - STEP1 milestone Jan 20, 2021
@tolusha tolusha mentioned this issue Jan 25, 2021
54 tasks
@sleshchenko
Copy link
Member

It depends on devfile/devworkspace-operator#257

@sleshchenko
Copy link
Member

devfile/devworkspace-operator#250 is closed now.
https://github.com/devfile/devworkspace-operator/tree/master/deploy/deployment contains flat yamls for deploying Operator on K8s or OpenShift.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chectl Issues related to chectl, the CLI of Che engine/devworkspace Issues related to Che configured to use the devworkspace controller as workspace engine. kind/bug Outline of a bug - must adhere to the bug report template. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants