I've read a couple of online resources and pages to try to understand the actual differences between patch
, apply
and replace
. My current understanding is:
apply
will declaratively perform the needed updates to the specified resource, if that's not possible it will fail.replace
will basically remove the resource and recreate it with updated spec even if the specs are the same.patch
, will perform partial runtime update on the specified resource, withpatch
You can provide only diff to the existing spec and it will work fine.
Assuming the above are correct (if they are not please feel free to correct), if I have the full spec of the running resource, is there any actual benefit of running patch
over replace
or apply
? I'm especially curious about replace
vs patch
benefits because I'm trying to understand if I need patch
at all.
Thanks.