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: detect nativeUserMode will be enabled so don't wait for keycloak #1502

Merged
merged 3 commits into from
Aug 5, 2021

Conversation

sparkoo
Copy link
Member

@sparkoo sparkoo commented Aug 2, 2021

Signed-off-by: Michal Vala [email protected]

What does this PR do?

nativeUserMode will be enabled by default on openshift with devworkspaces by eclipse-che/che-operator#978. We need to reflect this in chectl so it does not wait for keycloak deployment.

Because auth.nativeUserMode is dynamicaly changed by che-operator, we don't know the value at the moment of listing the tasks. Current implementation gets and checks the current value in Keycloak deploy task. If we're deploying in nativeUserMode: true, the task is skipped (see the screenshot).

Screenshot/screencast of this PR

Looks like this now:
20210805_070840_590x299_scrot

What issues does this PR fix or reference?

eclipse-che/che#20203

How to test this PR?

  1. deploy with ./bin/run server:deploy --platform=openshift --installer=operator --workspace-engine=dev-workspace --che-operator-image=quay.io/mvala/che-operator:gh20203-nativeUserModeEnable
  2. chectl should complete process successfully

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.

@sparkoo
Copy link
Member Author

sparkoo commented Aug 2, 2021

/retest

1 similar comment
@sparkoo
Copy link
Member Author

sparkoo commented Aug 3, 2021

/retest

@tolusha
Copy link
Collaborator

tolusha commented Aug 3, 2021

Minikube E2E / e2e update tests (pull_request) is expected to fail (eclipse-che/che#20235)

src/tasks/che.ts Outdated Show resolved Hide resolved
@tolusha
Copy link
Collaborator

tolusha commented Aug 5, 2021

@sparkoo
Copy link
Member Author

sparkoo commented Aug 5, 2021

@sparkoo sparkoo force-pushed the gh20203-nativeUserModeDefault branch from 47281e8 to 8abdd4c Compare August 5, 2021 08:31
Co-authored-by: Anatolii Bazko <[email protected]>
Signed-off-by: Michal Vala <[email protected]>
@sparkoo sparkoo force-pushed the gh20203-nativeUserModeDefault branch from 8abdd4c to 0c66367 Compare August 5, 2021 08:35
@sparkoo
Copy link
Member Author

sparkoo commented Aug 5, 2021

rebased so PR checks are happy

@sparkoo
Copy link
Member Author

sparkoo commented Aug 5, 2021

@tolusha CI seems happy. can you please rereview ?

@sparkoo sparkoo requested a review from tolusha August 5, 2021 10:20
@openshift-ci
Copy link

openshift-ci bot commented Aug 5, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: sparkoo, 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
Collaborator

tolusha commented Aug 5, 2021

Minikube E2E / e2e update tests is expected to fail

Pls merge.

@sparkoo sparkoo merged commit 6f0eb19 into che-incubator:main Aug 5, 2021
@sparkoo sparkoo deleted the gh20203-nativeUserModeDefault branch August 5, 2021 11:20
@che-bot che-bot added this to the 7.35 milestone Aug 5, 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.

3 participants