1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-25 06:33:56 +00:00

refactor the build state

remove extra cert generation for etcd in reconcile

fix reconcile and etcd add and remove cluster state with rke remove

fix add/remove issues

Fix the up command

Fix default paths for kubeconfig and rkestate
This commit is contained in:
galal-hussein
2018-11-03 03:45:23 +02:00
committed by Alena Prokharchyk
parent 90fd13db65
commit 8b8870311b
14 changed files with 168 additions and 321 deletions

View File

@@ -139,7 +139,7 @@ func (c *Cluster) SetUpHosts(ctx context.Context, rotateCerts bool) error {
return err
}
if err := pki.DeployAdminConfig(ctx, c.Certificates[pki.KubeAdminCertName].Config, c.LocalKubeConfigPath); err != nil {
if err := rebuildLocalAdminConfig(ctx, c); err != nil {
return err
}
log.Infof(ctx, "[certificates] Successfully deployed kubernetes certificates to Cluster nodes")