Skip to content

Commit 305b585

Browse files
committed
Revert deprecation of client.Apply
Signed-off-by: Stefan Büringer buringerst@vmware.com
1 parent e5878c9 commit 305b585

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/client/patch.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ import (
2828
var (
2929
// Apply uses server-side apply to patch the given object.
3030
//
31-
// Deprecated: Use client.Client.Apply() instead.
31+
// This should now only be used to patch sub resources, e.g. with client.Client.Status().Patch().
32+
// Use client.Client.Apply() instead of client.Client.Patch(..., client.Apply, ...)
33+
// This will be deprecated once the Apply method has been added for sub resources.
34+
// See the following issue for more details: https://github.com/kubernetes-sigs/controller-runtime/issues/3183
3235
Apply Patch = applyPatch{}
3336

3437
// Merge uses the raw object as a merge patch, without modifications.

0 commit comments

Comments
 (0)