Skip to content

Commit

Permalink
🌱 Extend docs for patch.NewHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
guettli committed Jul 13, 2023
1 parent 6acff21 commit 18ad465
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/patch/patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ type Helper struct {
isConditionsSetter bool
}

// NewHelper returns an initialized Helper.
// NewHelper returns an initialized Helper. Use NewHelper before changing
// obj. After changing obj use Helper.Patch to persist your changes.
func NewHelper(obj client.Object, crClient client.Client) (*Helper, error) {
// Return early if the object is nil.
if util.IsNil(obj) {
Expand Down

0 comments on commit 18ad465

Please sign in to comment.