mirror of
https://github.com/rancher/rke.git
synced 2025-04-28 03:31:24 +00:00
Fix desired state in rke rotate
This commit is contained in:
parent
6341dadc2f
commit
3bc6b0a18f
@ -200,7 +200,6 @@ func RotateRKECertificates(ctx context.Context, c *Cluster, flags ExternalFlags,
|
||||
}
|
||||
}
|
||||
clusterState.DesiredState.CertificatesBundle = c.Certificates
|
||||
clusterState.DesiredState.RancherKubernetesEngineConfig = &c.RancherKubernetesEngineConfig
|
||||
return nil
|
||||
}
|
||||
|
||||
|
@ -213,6 +213,7 @@ func rotateRKECertificates(ctx context.Context, kubeCluster *cluster.Cluster, fl
|
||||
if err := cluster.RotateRKECertificates(ctx, currentCluster, flags, rkeFullState); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
rkeFullState.DesiredState.RancherKubernetesEngineConfig = &kubeCluster.RancherKubernetesEngineConfig
|
||||
return rkeFullState, nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user