# Packages
Code generated by counterfeiter.
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Patch updates k8s objects by subsequently calling k8s client `Patch()` and `Status().Patch()` The `modify` lambda is expected to mutate the `obj` but does not take the object as an argument as the object should be visible in the parent scope Example:
var pod *corev1.Pod
patchErr = k8s.Patch(ctx, fakeClient, pod, func() { pod.Spec.RestartPolicy = corev1.RestartPolicyOnFailure pod.Status.Message = "hello" })
Note that this function should be used when current user has permissions to patch both object's spec and status, e.g.
PatchResource updates k8s objects by calling k8s client `Patch`.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author