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

This PR adds initial improvements that allow developer easier to start #3

Merged
merged 9 commits into from
Jan 11, 2020

Conversation

sleshchenko
Copy link
Member

@sleshchenko sleshchenko commented Dec 26, 2019

What does this PR do?

This PR adds initial improvements that allow developer easier to start:

  1. There is a bug in fsnotify transitive dependency that breaks Go Dep because of the empty versions list. As a workaround, direct dependency on the source archive should be added.
  2. Latest plugin broker has additional methods that were not implemented in workspace CRD before, so it's fixed.
  3. WorkspaceCRD controller requires some scripts that operator sdk generate during initializing, now they are committed.
  4. For some reason, dockerimage build fails on Ubuntu when bazel is installer with yum, so, alternative implementation way is used - dnf works on Ubuntu and Fedora as well.
  5. It was quite difficult to understand where I need to take a look to understand overall controller architecture, I believe it should be easier to navigate and learn overall architecture with separate packages.
  6. Added initial instructions on how to run and test Workspace CRD controller. It also includes fixes for default values.
  7. Format the code with gofmt -w ./..

What issues does this PR fix or reference?

It was done during eclipse-che/che#15522

Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Copy link
Collaborator

@amisevsk amisevsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments from a relatively quick read, I'll take another look later.

build/bin/user_setup Show resolved Hide resolved
build/Dockerfile Outdated Show resolved Hide resolved
deploy/controller_config.yaml Show resolved Hide resolved
pkg/controller/workspace/config/config.go Outdated Show resolved Hide resolved
pkg/controller/workspace/log/log.go Outdated Show resolved Hide resolved
pkg/controller/workspace/k8s/utilities.go Outdated Show resolved Hide resolved
pkg/controller/workspace/status.go Outdated Show resolved Hide resolved
pkg/controller/workspace/utils/utilities.go Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
build/Dockerfile Show resolved Hide resolved
build/bin/entrypoint Outdated Show resolved Hide resolved
build/bin/user_setup Show resolved Hide resolved
build/bin/user_setup Show resolved Hide resolved
deploy/registry/local/ingress.yaml Outdated Show resolved Hide resolved
deploy/registry/local/service.yaml Outdated Show resolved Hide resolved
pkg/controller/workspace/config/config.go Outdated Show resolved Hide resolved
pkg/controller/workspace/k8s/utilities.go Outdated Show resolved Hide resolved
pkg/controller/workspace/k8s/convertToLowLevelObjects.go Outdated Show resolved Hide resolved
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated
### Run controller within K8s/OS cluster
1. `kubectl apply -f ./deploy/crds`
2. `kubectl create namespace devworkspace-controller`
3. For K8s cluster you must to make sure that right domain is set in `./deploy/controller_config.yaml` and `./deploy/registry/local/ingress.yaml`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you specifying "For K8s cluster" here? This section is about K8s/OS, if this step is for K8s only (not OS) that's ok to be explicit but I think that's for both so I would only mention "Make sure that the right domain is set in....".

Copy link
Collaborator

@davidfestal davidfestal Jan 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the OpenShift case we don't need to provide this information. It is retrieved automatically at start of the controller, at least in the controller config map.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Actually, I did not try to run it on OpenShift cluster, maybe Route instead of Ingress is needed. For time being I've renamed section to Run controller within K8s cluster and then it's needed to test and fill in instructions for OpenShift Cluster

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Copy link
Collaborator

@amisevsk amisevsk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I went through the provided readme and was able to get a workspace up and running -- LGTM.

@sleshchenko sleshchenko merged commit 544ea89 into devfile:master Jan 11, 2020
@sleshchenko sleshchenko changed the title This PR adds initial improvements that allows developer easier to start This PR adds initial improvements that allow developer easier to start Jan 11, 2020
@sleshchenko sleshchenko deleted the initialImprovements branch January 11, 2020 08:35
JPinkney pushed a commit to JPinkney/che-workspace-operator that referenced this pull request May 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants