1
0
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:
moelsayed
2017-11-15 04:54:26 +02:00
parent 43eb1c2da0
commit 1427df6b34
17 changed files with 523 additions and 79 deletions

View File

@@ -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,