Skip to content

Commit

Permalink
Fix: pass WaitOptions forward in cluster.CreateAndWaitForReadiness
Browse files Browse the repository at this point in the history
Co-authored-by: Petr Babic <108874234+pbabic-redhat@users.noreply.github.com>
Signed-off-by: Josh Gwosdz <jgwosdz@redhat.com>
  • Loading branch information
erdii and pbabic-redhat committed Aug 31, 2023
1 parent 51510ee commit 150927f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func (c *Cluster) CreateAndWaitForReadiness(
object.GetNamespace(), object.GetName(), err)

Check warning on line 246 in dev/cluster.go

View check run for this annotation

Codecov / codecov/patch

dev/cluster.go#L241-L246

Added lines #L241 - L246 were not covered by tests
}

if err := c.Waiter.WaitForReadiness(ctx, object); err != nil {
if err := c.Waiter.WaitForReadiness(ctx, object, opts...); err != nil {

Check warning on line 249 in dev/cluster.go

View check run for this annotation

Codecov / codecov/patch

dev/cluster.go#L249

Added line #L249 was not covered by tests
var unknownTypeErr *UnknownTypeError
if goerrors.As(err, &unknownTypeErr) {
// A lot of types don't require waiting for readiness,
Expand Down

0 comments on commit 150927f

Please sign in to comment.