1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-02 15:34:36 +00:00

Log error message on failure to get legacy cluster state from k8s

This commit is contained in:
Alex Seymour
2019-06-12 17:19:22 +02:00
committed by Alena Prokharchyk
parent 3575d8ae6a
commit ad415059cb

View File

@@ -89,7 +89,7 @@ func ClusterInit(ctx context.Context, rkeConfig *v3.RancherKubernetesEngineConfi
if strings.Contains(err.Error(), "aborting upgrade") {
return err
}
log.Warnf(ctx, "[state] can't fetch legacy cluster state from Kubernetes")
log.Warnf(ctx, "[state] can't fetch legacy cluster state from Kubernetes: %v", err)
}
// check if certificate rotate or normal init
if kubeCluster.RancherKubernetesEngineConfig.RotateCertificates != nil {