Open llhuii opened 3 years ago
--force
patch有以下策略https://kubernetes.io/zh/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/:
[ { "op" : "replace" , "path" : "/users/0/email" , "value" : "alice@wonderland.org" }, ]
{ "a":"z", "c": { "f": null } }
strategic: strategic merge patch
前两者参考https://erosb.github.io/post/json-patch-vs-merge-patch/
// 待更新
参考链接https://blog.atomist.com/kubernetes-apply-replace-patch/
--force
使用了先delete再create方法patch有以下策略https://kubernetes.io/zh/docs/tasks/manage-kubernetes-objects/update-api-object-kubectl-patch/:
strategic: strategic merge patch
前两者参考https://erosb.github.io/post/json-patch-vs-merge-patch/
// 待更新