mirror of
https://github.com/rancher/rke.git
synced 2025-08-26 18:38:48 +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.CertificatesBundle = c.Certificates
|
||||||
clusterState.DesiredState.RancherKubernetesEngineConfig = &c.RancherKubernetesEngineConfig
|
|
||||||
return nil
|
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 {
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user