PATCH isn't working through the Che Server kubernetes api #18863
Labels
area/che-server
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.
Describe the bug
When trying to PATCH a devworkspace through the regular kubernetes api everything works successfully, but if you try and PATCH the same devworkspace through the Che Server kubernetes api you get:
Che version
Steps to reproduce
First, make sure Che and the devworkspace operator are installed on the same cluster
Then create a namespace called sample and run
oc project sample
so that the below devworkspace will be created thereNext,
oc create -f https://raw.githubusercontent.com/devfile/devworkspace-operator/master/samples/theia-nodejs.yaml
Next, proxy kubernetes api to port 8080
Then, make a request to the kubernetes api regularly:
And see that the devworkspace
theia-nodejs
has been correctly stopped.Then, try and make the same request to the Che Server kubernetes API:
and see that you end up getting:
Expected behavior
You should not get an error when using PATCH against the che server kubernetes api and the devworkspace should be patched then returned
Runtime
kubectl version
)oc version
)minikube version
andkubectl version
)minishift version
andoc version
)docker version
andkubectl version
)Openshift 4.6.6
Screenshots
Installation method
chectl version
commandchectl server:deploy -p crc
Environment
Eclipse Che Logs
Additional context
This is related to: #18858. In order to stop/start a DevWorkspace you need to use PATCH
The text was updated successfully, but these errors were encountered: