change more info on node stopped returning log lines

pull/1137/head v5.4.5
iwilltry42 2 years ago
parent 10452764e1
commit 80889fa6ae
No known key found for this signature in database
GPG Key ID: FD4E78FBAD6B1550
  1. 5
      pkg/client/node.go
  2. 2
      pkg/runtimes/runtime.go

@ -811,6 +811,11 @@ func NodeWaitForLogMessage(ctx context.Context, runtime runtimes.Runtime, node *
break
}
}
running, status, err := runtime.GetNodeStatus(ctx, node)
if err == nil {
return fmt.Errorf("%v: node %s is running=%v in status=%s", errMsg, node.Name, running, status)
}
return errMsg
}

@ -55,7 +55,7 @@ type Runtime interface {
RenameNode(context.Context, *k3d.Node, string) error
GetNodesByLabel(context.Context, map[string]string) ([]*k3d.Node, error)
GetNode(context.Context, *k3d.Node) (*k3d.Node, error)
GetNodeStatus(context.Context, *k3d.Node) (bool, string, error)
GetNodeStatus(context.Context, *k3d.Node) (bool, string, error) // returns (running, status, error)
GetNodesInNetwork(context.Context, string) ([]*k3d.Node, error)
CreateNetworkIfNotPresent(context.Context, *k3d.ClusterNetwork) (*k3d.ClusterNetwork, bool, error) // @param context, name - @return NETWORK, EXISTS, ERROR
GetKubeconfig(context.Context, *k3d.Node) (io.ReadCloser, error)

Loading…
Cancel
Save