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

fix: workspaces must not fail on metrics roles creation when APi is disabled or unauthorized #93

Merged
merged 3 commits into from
Sep 2, 2021

Conversation

mshaposhnik
Copy link
Contributor

@mshaposhnik mshaposhnik commented Sep 1, 2021

What does this PR do?

Workspace namespace is not prepared properly and startup is broken if metrics.k8s.io API is not enabled on the cluster or Che SA cannot create appropriate roles due to lack of permissions.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

https://issues.redhat.com/browse/CRW-2202

eclipse-che/che#19869

How to test this PR?

Run minishift 3.11 with metrica API disabled. User is unable to start any workspaces;
Chenge image to mshaposh/che-server:nightly. Workspaces run ok.

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.

@mshaposhnik mshaposhnik changed the title Fix metrics Fix metrics roles creation when APi is disabled or unauthorized Sep 1, 2021
@mshaposhnik mshaposhnik requested review from sparkoo and removed request for nickboldt, sleshchenko and amisevsk September 1, 2021 12:50
Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Sep 1, 2021

❌ E2E Happy path tests failed ❗

See Details

Test product:

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

Eclipse Che QE channel: https://mattermost.eclipse.org/eclipse/channels/eclipse-che-qe

@mshaposhnik mshaposhnik changed the title Fix metrics roles creation when APi is disabled or unauthorized fix: workspaces must not fail on metrics roles creation when APi is disabled or unauthorized Sep 2, 2021
@mshaposhnik mshaposhnik merged commit c273bd4 into eclipse-che:main Sep 2, 2021
@mshaposhnik mshaposhnik deleted the fix_metrics branch September 2, 2021 06:58
@che-bot che-bot added this to the 7.36 milestone Sep 2, 2021
mshaposhnik added a commit to mshaposhnik/che-server that referenced this pull request Sep 3, 2021
…isabled or unauthorized (eclipse-che#93)

Signed-off-by: Max Shaposhnik <mshaposh@redhat.com>
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