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

feat: set CHE_NAMESPACE and CHE_CRD_OBJECT_NAME env vars #1248

Merged
merged 2 commits into from
Dec 15, 2021

Conversation

dkwon17
Copy link
Contributor

@dkwon17 dkwon17 commented Dec 12, 2021

Signed-off-by: David Kwon dakwon@redhat.com

What does this PR do?

Sets CHE_NAMESPACE and CHE_CRD_OBJECT_NAME vars for the che-dashboard deployment.
This is done to use to use the ServerConfigApi from che-dashboard.

The second commit adds the server.workspacesDefaultPlugins field in the Che CR. For example:

  server:
    workspacesDefaultPlugins:
      - editor: 'eclipse/che-theia/latest'
        plugins: ['https://eclipse-che.github.io/che-plugin-registry/main/v3/plugins/containers/buildah/latest/devfile.yaml']

What issues does this PR fix or reference?

eclipse-che/che#20090

How to test this PR?

To deploy:
Can be tested by following these steps: https://github.com/eclipse-che/che-operator#deploy-che-operator-with-chectl-using---installer-olm-flag

I have tested this PR on CRC with this catalog image: quay.io/dkwon17/eclipse-che-openshift-opm-catalog:next.

Example:

chectl server:deploy --installer=olm --platform=openshift --catalog-source-yaml ./mycatalog.yaml --olm-channel=next --package-manifest-name=eclipse-che-preview-openshift

To test:
1. Checking the che-dashboard pod's environment variables:
image

2. Checking the CheCluster CR for the new field:
image

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.

@tolusha
Copy link
Contributor

tolusha commented Dec 12, 2021

I don't think adding anything regarding workspces into a CheCluster CR is a good idea.

@dkwon17
Copy link
Contributor Author

dkwon17 commented Dec 13, 2021

Could we reconsider? This was the workflow proposed in the issue: eclipse-che/che#20090 (comment)

@dkwon17
Copy link
Contributor Author

dkwon17 commented Dec 13, 2021

Also, why are fields regarding workspaces in the Che CR not a good idea? I think I am missing some context.

@ibuziuk
Copy link
Member

ibuziuk commented Dec 13, 2021

I don't think adding anything regarding workspces into a CheCluster CR is a good idea.

@tolusha could you please clarify why do you think that this is a bad idea?
We have discussed the design proposal with devex team cc: @l0rd

… dashboard

Signed-off-by: David Kwon <dakwon@redhat.com>
Signed-off-by: David Kwon <dakwon@redhat.com>
@dkwon17
Copy link
Contributor Author

dkwon17 commented Dec 14, 2021

Thank you for the feedback @tolusha , I made some changes

@openshift-ci
Copy link

openshift-ci bot commented Dec 15, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: dkwon17, ibuziuk, tolusha

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
Copy link
Contributor

tolusha commented Dec 15, 2021

/retest

1 similar comment
@ibuziuk
Copy link
Member

ibuziuk commented Dec 15, 2021

/retest

@openshift-ci
Copy link

openshift-ci bot commented Dec 15, 2021

@dkwon17: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/v9-devworkspace-happy-path 051d7bd link true /test v9-devworkspace-happy-path

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@tolusha
Copy link
Contributor

tolusha commented Dec 15, 2021

pls merge

@dkwon17 dkwon17 merged commit 1637ead into eclipse-che:main Dec 15, 2021
@che-bot che-bot added this to the 7.41 milestone Dec 15, 2021
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.

4 participants