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

Che operator should be able to install DevWorkspace operator #689

Merged
merged 20 commits into from Mar 4, 2021

Conversation

tolusha
Copy link
Contributor

@tolusha tolusha commented Feb 24, 2021

Signed-off-by: Anatolii Bazko abazko@redhat.com

What does this PR do?

Deploys Dev Workpace operator if spec.devWorkspace.enable: true

Screenshot/screencast of this PR

time="2021-03-01T12:37:49Z" level=info msg="Creating a new object: Namespace, name devworkspace-controller"
time="2021-03-01T12:37:49Z" level=info msg="Creating a new object: ServiceAccount, name devworkspace-controller-serviceaccount"
time="2021-03-01T12:37:49Z" level=info msg="Creating a new object: ClusterRole, name devworkspace-controller-role"
time="2021-03-01T12:37:49Z" level=info msg="Creating a new object: ClusterRole, name devworkspace-controller-proxy-role"
time="2021-03-01T12:37:49Z" level=info msg="Creating a new object: ClusterRole, name devworkspace-controller-edit-workspaces"
time="2021-03-01T12:37:49Z" level=info msg="Creating a new object: ClusterRole, name devworkspace-controller-view-workspaces"
time="2021-03-01T12:37:50Z" level=info msg="Creating a new object: Role, name devworkspace-controller-leader-election-role"
time="2021-03-01T12:37:50Z" level=info msg="Creating a new object: RoleBinding, name devworkspace-controller-leader-election-rolebinding"
time="2021-03-01T12:37:51Z" level=info msg="Creating a new object: ClusterRoleBinding, name devworkspace-controller-rolebinding"
time="2021-03-01T12:37:52Z" level=info msg="Creating a new object: ClusterRoleBinding, name devworkspace-controller-proxy-rolebinding"
time="2021-03-01T12:37:55Z" level=info msg="Creating a new object: CustomResourceDefinition, name devworkspaces.workspace.devfile.io"
time="2021-03-01T12:38:01Z" level=info msg="Creating a new object: CustomResourceDefinition, name components.controller.devfile.io"
time="2021-03-01T12:38:11Z" level=info msg="Creating a new object: CustomResourceDefinition, name devworkspacetemplates.workspace.devfile.io"
time="2021-03-01T12:38:32Z" level=info msg="Creating a new object: CustomResourceDefinition, name workspaceroutings.controller.devfile.io"
time="2021-03-01T12:39:13Z" level=info msg="Creating a new object: ConfigMap, name devworkspace-controller-configmap"
time="2021-03-01T12:40:36Z" level=info msg="Creating a new object: Deployment, name devworkspace-controller-manager"

What issues does this PR fix or reference?

eclipse-che/che#19121

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

@openshift-ci-robot
Copy link

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@codecov
Copy link

codecov bot commented Feb 24, 2021

Codecov Report

Merging #689 (8c5d8e9) into master (80e33df) will increase coverage by 1.03%.
The diff coverage is 55.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #689      +/-   ##
==========================================
+ Coverage   31.60%   32.64%   +1.03%     
==========================================
  Files          49       50       +1     
  Lines        5369     5459      +90     
==========================================
+ Hits         1697     1782      +85     
+ Misses       3421     3409      -12     
- Partials      251      268      +17     
Impacted Files Coverage Δ
pkg/deploy/kubernetes_image_puller.go 0.00% <ø> (ø)
pkg/util/util.go 9.95% <0.00%> (-0.36%) ⬇️
pkg/controller/che/che_controller.go 19.30% <11.11%> (-0.11%) ⬇️
pkg/deploy/sync.go 46.25% <44.44%> (+46.25%) ⬆️
pkg/deploy/dev-workspace/dev_workspace.go 74.60% <74.60%> (ø)
pkg/deploy/defaults.go 46.80% <100.00%> (+0.28%) ⬆️
pkg/deploy/server/che_configmap.go 82.05% <100.00%> (+0.09%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 80e33df...8c5d8e9. Read the comment docs.

Dockerfile Outdated
RUN export ARCH="$(uname -m)" && if [[ ${ARCH} == "x86_64" ]]; then export ARCH="amd64"; elif [[ ${ARCH} == "aarch64" ]]; then export ARCH="arm64"; fi && \
export MOCK_API=true && \
go test -mod=vendor -v ./... && \
GOOS=linux GOARCH=${ARCH} CGO_ENABLED=0 go build -mod=vendor -o /tmp/che-operator/che-operator cmd/manager/main.go

# download devworkspace-operator templates
RUN curl -L https://api.github.com/repos/devfile/devworkspace-operator/zipball/master > /tmp/devworkspace-operator.zip && \
Copy link
Member

Choose a reason for hiding this comment

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

I think devworkspace operator version should be defined as argument.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right now there are only master and v1.0.0-alpha1
I can define env variable in the Dockerfile.

Copy link
Member

Choose a reason for hiding this comment

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

it's just because release lack. But soon releases will be with Che cadence.
If you meant argument, that +1
If you meant environment variable - please elaborate more

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ENV DEV_WORKSPACE_CONTROLLER_VERSION="master"
When che-operator is released the correct version will be set

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok. make sense

local-debug.sh Outdated Show resolved Hide resolved
@tolusha
Copy link
Contributor Author

tolusha commented Mar 4, 2021

/retest

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
@flacatus
Copy link
Contributor

flacatus commented Mar 4, 2021

/retest

@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: AndrienkoAleksandr, tolusha
To complete the pull request process, please assign after the PR has been reviewed.
You can assign the PR to them by writing /assign in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@tolusha tolusha merged commit 052a637 into master Mar 4, 2021
@tolusha tolusha deleted the che-19121 branch March 4, 2021 19:59
@che-bot che-bot added this to the 7.27 milestone Mar 4, 2021
@l0rd l0rd mentioned this pull request Mar 5, 2021
24 tasks
tolusha added a commit that referenced this pull request Mar 11, 2021
* Che operator should be able to install DevWorkspace operator

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fix typo

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Add missing roles

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update cluster roles

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update nightly bundle

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fixes

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Add missing files

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fixes

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fix tests

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Add tests

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update nightly bundle

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Improvements

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Add logs

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fix test

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Fix tests

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update nightly bundle

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update clusterroles

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update test

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update test

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

* Update nightly bundle

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
tolusha added a commit that referenced this pull request Mar 12, 2021
* Che operator should be able to install DevWorkspace operator (#689)

* Che Operator should be able to install the Devworkspace che operator (#707)

Signed-off-by: Anatolii Bazko <abazko@redhat.com>

Co-authored-by: Sergii Kabashniuk <skabashn@redhat.com>
Co-authored-by: Lukas Krejci <lkrejci@redhat.com>
Co-authored-by: Anatolii Bazko <abazko@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants