Skip to content

Commit

Permalink
pkg: envtest: komega: fix UpdateStatus godoc
Browse files Browse the repository at this point in the history
  • Loading branch information
damdo committed Apr 8, 2022
1 parent 188b486 commit 8d9b8d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/envtest/komega/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func Update(obj client.Object, f func(), opts ...client.UpdateOption) func() err
// UpdateStatus returns a function that fetches a resource, applies the provided update function and then updates the resource's status.
// It can be used with gomega.Eventually() like this:
// deployment := appsv1.Deployment{ ... }
// gomega.Eventually(k.Update(&deployment, func (o client.Object) {
// gomega.Eventually(k.UpdateStatus(&deployment, func (o client.Object) {
// deployment.Status.AvailableReplicas = 1
// return &deployment
// })).To(gomega.Scucceed())
Expand Down

0 comments on commit 8d9b8d5

Please sign in to comment.