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
Client only support patching full resource objects at the moment. I tried
client.services().inNamespace(namespace).withName(resource.getMetadata().getName()).patch((Service)resource)
where we are finding a json diff between server and updated yaml using zjsonpatch and sending patch request to server.
I think it would be nice if we supported patch like this:
kubectl patch deployment patch-demo --patch 'spec:\n template:\n spec:\n containers:\n - name: patch-demo-ctr-2\n image: redis'
This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!
Hi Fabric8io Team,
Client only support patching full resource objects at the moment. I tried
client.services().inNamespace(namespace).withName(resource.getMetadata().getName()).patch((Service)resource)
I could see we have this handlePatch method:
kubernetes-client/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/base/OperationSupport.java
Line 308 in 2403476
where we are finding a json diff between server and updated yaml using zjsonpatch and sending patch request to server.
I think it would be nice if we supported patch like this:
kubectl patch deployment patch-demo --patch 'spec:\n template:\n spec:\n containers:\n - name: patch-demo-ctr-2\n image: redis'
Official K8sClient has methods to support Strategic Merge Patch and JSON Patch.
https://github.com/kubernetes-client/java/blob/master/examples/examples-release-11/src/main/java/io/kubernetes/client/examples/PatchExample.java
Is there something similar present in Fabric8Io Client like above?
Thanks,
Swarda
The text was updated successfully, but these errors were encountered: