Skip to content

Commit 389d009

Browse files
committed
Update client.Options.FieldOwner documentation
1 parent 2b11491 commit 389d009

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

pkg/client/client.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,13 @@ type Options struct {
5353
// DryRun instructs the client to only perform dry run requests.
5454
DryRun *bool
5555

56-
// FieldOwner, if provided, instructs the client to be wrapped with WithFieldOwner function
56+
// FieldOwner, if provided, sets the default field manager for all write operations
57+
// (Create, Update, Patch, Apply) performed by this client. The field manager is used by
58+
// the server for Server-Side Apply to track field ownership.
59+
// For more details, see: https://kubernetes.io/docs/reference/using-api/server-side-apply/#field-management
60+
//
61+
// This default can be overridden for a specific call by passing a [FieldOwner] option
62+
// to the method.
5763
FieldOwner string
5864
}
5965

0 commit comments

Comments
 (0)