Creating a DevWorkspace with memoryRequest > memoryLimit incorrectly results in WorkspaceEngineFailure #20751
Labels
area/devworkspace-operator
kind/bug
Outline of a bug - must adhere to the bug report template.
severity/P1
Has a major impact to usage or development of the system.
sprint/current
Describe the bug
When deploying a DevWorkspace with a container where
memoryRequest
is greater thanmemoryLimit
results aWorkspaceEngineFailure
instead of aBadRequestFailure
.Che version
other (please specify in additional context)
Steps to reproduce
devworkspace-controller
namespace: https://gist.github.com/dkwon17/13c85b162874b9bf34abc50d576aa494FailedStart
condition'sreason
field isWorkspaceEngineFailure
(see screenshot above)Expected behavior
The
reason
field should beBadRequest
, since amemoryRequest
value greater than thememoryLimit
is invalid.Runtime
CodeReady Container
Screenshots
No response
Installation method
other (please specify in additional context)
Environment
macOS
Eclipse Che Logs
No response
Additional context
The
FailedStart
condition'sreason
field is set thanks to this PR: devfile/devworkspace-operator#647.This issue was created to be a followup for the work done that PR, to improve the way failure reasons are determined.
The text was updated successfully, but these errors were encountered: