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:
@@ -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(),
|
||||
|
Reference in New Issue
Block a user