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

Make etcd provisioning a public API

This commit is contained in:
Darren Shepherd
2018-03-31 03:53:43 -07:00
parent 149f866c47
commit d2c58fb8e6
4 changed files with 70 additions and 26 deletions

View File

@@ -62,7 +62,7 @@ const (
AWSCloudProvider = "aws"
)
func (c *Cluster) DeployControlPlane(ctx context.Context) error {
func (c *Cluster) DeployETCD(ctx context.Context) error {
// Deploy Etcd Plane
etcdProcessHostMap := c.getEtcdProcessHostMap(nil)
if len(c.Services.Etcd.ExternalURLs) > 0 {
@@ -73,6 +73,15 @@ func (c *Cluster) DeployControlPlane(ctx context.Context) error {
}
}
return nil
}
func (c *Cluster) DeployControlPlane(ctx context.Context) error {
// Deploy Etcd Plane
if err := c.DeployETCD(ctx); err != nil {
return err
}
// Deploy Control plane
processMap := map[string]v3.Process{
services.SidekickContainerName: c.BuildSidecarProcess(),