mirror of
https://github.com/rancher/rke.git
synced 2025-09-03 16:04:26 +00:00
Log error message on failure to get legacy cluster state from k8s
This commit is contained in:
committed by
Alena Prokharchyk
parent
3575d8ae6a
commit
ad415059cb
@@ -89,7 +89,7 @@ func ClusterInit(ctx context.Context, rkeConfig *v3.RancherKubernetesEngineConfi
|
|||||||
if strings.Contains(err.Error(), "aborting upgrade") {
|
if strings.Contains(err.Error(), "aborting upgrade") {
|
||||||
return err
|
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
|
// check if certificate rotate or normal init
|
||||||
if kubeCluster.RancherKubernetesEngineConfig.RotateCertificates != nil {
|
if kubeCluster.RancherKubernetesEngineConfig.RotateCertificates != nil {
|
||||||
|
Reference in New Issue
Block a user