mirror of
https://github.com/rancher/rke.git
synced 2025-08-31 14:36:32 +00:00
Add cluster upgrade
Restructer k8s Move getClusterCerts from SetUpAuthintication to GetClusterState Update cluster.yaml
This commit is contained in:
@@ -16,10 +16,7 @@ func SetUpAuthentication(kubeCluster, currentCluster *Cluster) error {
|
||||
if kubeCluster.Authentication.Strategy == X509AuthenticationProvider {
|
||||
var err error
|
||||
if currentCluster != nil {
|
||||
kubeCluster.Certificates, err = getClusterCerts(kubeCluster.KubeClient)
|
||||
if err != nil {
|
||||
return fmt.Errorf("Failed to Get Kubernetes certificates: %v", err)
|
||||
}
|
||||
kubeCluster.Certificates = currentCluster.Certificates
|
||||
} else {
|
||||
kubeCluster.Certificates, err = pki.StartCertificatesGeneration(
|
||||
kubeCluster.ControlPlaneHosts,
|
||||
|
Reference in New Issue
Block a user