Skip to content

Commit

Permalink
Merge pull request #9001 from guettli/patch-NewHelper-docs
Browse files Browse the repository at this point in the history
🌱 Extend docs for patch.NewHelper
  • Loading branch information
k8s-ci-robot committed Jul 13, 2023
2 parents 6acff21 + 18ad465 commit 0cbde4a
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 0cbde4a

Please sign in to comment.