Skip to content

Commit 100354a

Browse files
authored
Merge pull request #3375 from tisonkun/patch-1
✨ Add CreateOrPatch function in alias.go
2 parents b99b269 + b17aca2 commit 100354a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

alias.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,14 @@ var (
111111
// including all CRD resources.
112112
NewManager = manager.New
113113

114+
// CreateOrPatch creates or patches the given object obj in the Kubernetes
115+
// cluster. The object's desired state should be reconciled with the existing
116+
// state using the passed in ReconcileFn. obj must be a struct pointer so that
117+
// obj can be patched with the content returned by the Server.
118+
//
119+
// It returns the executed operation and an error.
120+
CreateOrPatch = controllerutil.CreateOrPatch
121+
114122
// CreateOrUpdate creates or updates the given object obj in the Kubernetes
115123
// cluster. The object's desired state should be reconciled with the existing
116124
// state using the passed in ReconcileFn. obj must be a struct pointer so that

0 commit comments

Comments
 (0)