mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-08-03 13:09:40 +00:00
fix a runtime core panic (#3627)
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user