From 150927f890e90fdb2bc2957a3b7df0369163a11d Mon Sep 17 00:00:00 2001 From: Josh Gwosdz Date: Thu, 31 Aug 2023 13:06:59 +0200 Subject: [PATCH] Fix: pass WaitOptions forward in cluster.CreateAndWaitForReadiness Co-authored-by: Petr Babic <108874234+pbabic-redhat@users.noreply.github.com> Signed-off-by: Josh Gwosdz --- dev/cluster.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/cluster.go b/dev/cluster.go index d574251..ba6d63a 100644 --- a/dev/cluster.go +++ b/dev/cluster.go @@ -246,7 +246,7 @@ func (c *Cluster) CreateAndWaitForReadiness( object.GetNamespace(), object.GetName(), err) } - if err := c.Waiter.WaitForReadiness(ctx, object); err != nil { + if err := c.Waiter.WaitForReadiness(ctx, object, opts...); err != nil { var unknownTypeErr *UnknownTypeError if goerrors.As(err, &unknownTypeErr) { // A lot of types don't require waiting for readiness,