1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-26 10:28:41 +00:00

Fix desired state in rke rotate

This commit is contained in:
galal-hussein 2019-04-04 00:25:24 +02:00 committed by Alena Prokharchyk
parent 6341dadc2f
commit 3bc6b0a18f
2 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,6 @@ func RotateRKECertificates(ctx context.Context, c *Cluster, flags ExternalFlags,
} }
} }
clusterState.DesiredState.CertificatesBundle = c.Certificates clusterState.DesiredState.CertificatesBundle = c.Certificates
clusterState.DesiredState.RancherKubernetesEngineConfig = &c.RancherKubernetesEngineConfig
return nil return nil
} }

View File

@ -213,6 +213,7 @@ func rotateRKECertificates(ctx context.Context, kubeCluster *cluster.Cluster, fl
if err := cluster.RotateRKECertificates(ctx, currentCluster, flags, rkeFullState); err != nil { if err := cluster.RotateRKECertificates(ctx, currentCluster, flags, rkeFullState); err != nil {
return nil, err return nil, err
} }
rkeFullState.DesiredState.RancherKubernetesEngineConfig = &kubeCluster.RancherKubernetesEngineConfig
return rkeFullState, nil return rkeFullState, nil
} }