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

Use BadRequest as failure reason when we can't get containers #680

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

amisevsk
Copy link
Collaborator

What does this PR do?

Treat failures to extract containers/initContainers from a DevWorkspace as a BadRequest failure, as this will typically be due to an issue in the DevWorkspace itself.

What issues does this PR fix or reference?

Fixes eclipse-che/che#20751

Note this issue is also fixed by devfile/api#685, which will cause workspace start to fail earlier and with a better message.

Is it tested? How?

N/A

PR Checklist

  • E2E tests pass (when PR is ready, comment /test v8-devworkspace-operator-e2e, v8-che-happy-path to trigger)
    • v8-devworkspace-operator-e2e: DevWorkspace e2e test
    • v8-che-happy-path: Happy path for verification integration with Che

Treat failures to extract containers/initContainers from a DevWorkspace
as a BadRequest failure, as this will typically be due to an issue in
the DevWorkspace itself.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
@openshift-ci
Copy link

openshift-ci bot commented Nov 22, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amisevsk

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

The pull request process is described 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

@amisevsk
Copy link
Collaborator Author

/test v8-devworkspace-operator-e2e

@amisevsk amisevsk merged commit ab44c7e into devfile:main Nov 23, 2021
@amisevsk amisevsk deleted the fix-metrics-reason branch November 23, 2021 05:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Creating a DevWorkspace with memoryRequest > memoryLimit incorrectly results in WorkspaceEngineFailure
2 participants