Closed AbdelrhmanHamouda closed 1 year ago
Could this be duplicate of https://github.com/fabric8io/kubernetes-client/issues/5337 ?
@rohanKanojia True, thank you for sharing this. After reading through the issue, it is clear that it is the same point.
Describe the bug
Hello,
In my code I have this
job = client.batch().v1().jobs().inNamespace(namespace).resource(job).forceConflicts().serverSideApply();
And in my test, I use junt5 and use the
@EnableKubernetesMockClient(https = false, crud = true)
When I run the test, I see the following message from the mock server and the test fails
I didn't have force at the start, but even when I added it, it is still not working.
Side note: I tested this with a small minikube cluster and ServerSideApply works without an issue.
Fabric8 Kubernetes Client version
6.7.2
Steps to reproduce
as mentioned in the description
Expected behavior
For the MockClint to accept the request and return 2xx
Runtime
other (please specify in additional context)
Kubernetes API Server version
other (please specify in additional context)
Environment
macOS
Fabric8 Kubernetes Client Logs
Additional context
I am upgrading from an older version of the client where
CreateOrReplace()
was used and working