Skip to content

Commit

Permalink
logged
Browse files Browse the repository at this point in the history
  • Loading branch information
NeerajNagure committed Jun 19, 2024
1 parent 6373a53 commit f857bd9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/kwokctl/cmd/create/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ func runE(ctx context.Context, flags *flagpole) error {
cleanUp := func() {}
if exist {
logger.Info("Cluster already exists")
logger.Log(log.LevelInfo, "inside 2 WaitReady")
if ready, err := rt.Ready(ctx); err == nil && ready {
logger.Info("Cluster is already ready")
return nil
Expand Down
1 change: 1 addition & 0 deletions pkg/kwokctl/runtime/binary/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,7 @@ func (c *Cluster) WaitReady(ctx context.Context, timeout time.Duration) error {
)
logger := log.FromContext(ctx)
waitErr = wait.Poll(ctx, func(ctx context.Context) (bool, error) {
logger.Log(log.LevelInfo, "inside 3 WaitReady")
ready, err = c.Ready(ctx)
if err != nil {
logger.Debug("Cluster is not ready",
Expand Down
1 change: 1 addition & 0 deletions pkg/kwokctl/runtime/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ func (c *Cluster) WaitReady(ctx context.Context, timeout time.Duration) error {
logger := log.FromContext(ctx)
waitErr = wait.Poll(ctx, func(ctx context.Context) (bool, error) {
ready, err = c.Ready(ctx)
logger.Log(log.LevelInfo, "inside 1 WaitReady")
if err != nil {
logger.Debug("Cluster is not ready",
"err", err,
Expand Down

0 comments on commit f857bd9

Please sign in to comment.