You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I call BatchV1Api.deleteNamespacedJob(), it throws an java.lang.IllegalStateException. It succesfully makes a REST call to the Kubernetes server, gets a response, and tries to parse the response json to a V1Status object. This fails. When I modified the client to use V1Job instead of V1Status, then it works.
The exception gets thrown because status field in V1Status is a String, but in response json it's an object:
When I call
BatchV1Api.deleteNamespacedJob()
, it throws anjava.lang.IllegalStateException
. It succesfully makes a REST call to the Kubernetes server, gets a response, and tries to parse the response json to aV1Status
object. This fails. When I modified the client to useV1Job
instead ofV1Status
, then it works.The exception gets thrown because
status
field inV1Status
is aString
, but in response json it's an object:It's quite possible there are also other differences between
V1Status
andV1Job
but I didn't bother to investigate further.The text was updated successfully, but these errors were encountered: