Browse Source

fix a runtime core panic (#3627)

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
pull/3644/head
Hussein Galal 3 years ago committed by GitHub
parent
commit
a939decf01
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      pkg/cluster/managed.go

4
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
}

Loading…
Cancel
Save