From a939decf0180733cd61de7feaaa1a984845f77d0 Mon Sep 17 00:00:00 2001 From: Hussein Galal Date: Tue, 13 Jul 2021 23:33:07 +0200 Subject: [PATCH] fix a runtime core panic (#3627) Signed-off-by: galal-hussein --- pkg/cluster/managed.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 }