diff --git a/pkg/cluster/managed.go b/pkg/cluster/managed.go index 4d6571cebe..0c5e3519b7 100644 --- a/pkg/cluster/managed.go +++ b/pkg/cluster/managed.go @@ -182,7 +182,9 @@ func (c *Cluster) deleteNodePasswdSecret(ctx context.Context) { logrus.Infof("waiting for node name to be set") continue } - if c.runtime == nil { + // the core factory may not yet be initialized so we + // want to wait until it is so not to evoke a panic. + if c.runtime.Core == nil { logrus.Infof("runtime is not yet initialized") continue }