Skip to content

Commit 8d9b8d5

Browse files
committed
pkg: envtest: komega: fix UpdateStatus godoc
1 parent 188b486 commit 8d9b8d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/envtest/komega/default.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func Update(obj client.Object, f func(), opts ...client.UpdateOption) func() err
6161
// UpdateStatus returns a function that fetches a resource, applies the provided update function and then updates the resource's status.
6262
// It can be used with gomega.Eventually() like this:
6363
// deployment := appsv1.Deployment{ ... }
64-
// gomega.Eventually(k.Update(&deployment, func (o client.Object) {
64+
// gomega.Eventually(k.UpdateStatus(&deployment, func (o client.Object) {
6565
// deployment.Status.AvailableReplicas = 1
6666
// return &deployment
6767
// })).To(gomega.Scucceed())

0 commit comments

Comments
 (0)