mirror of
https://github.com/rancher/rke.git
synced 2025-09-01 15:06:23 +00:00
Update workers only option
Disable port check
This commit is contained in:
@@ -41,6 +41,7 @@ type Cluster struct {
|
||||
PrivateRegistriesMap map[string]v3.PrivateRegistry
|
||||
K8sWrapTransport k8s.WrapTransport
|
||||
UseKubectlDeploy bool
|
||||
UpdateWorkersOnly bool
|
||||
}
|
||||
|
||||
const (
|
||||
@@ -61,7 +62,7 @@ func (c *Cluster) DeployControlPlane(ctx context.Context) error {
|
||||
if len(c.Services.Etcd.ExternalURLs) > 0 {
|
||||
log.Infof(ctx, "[etcd] External etcd connection string has been specified, skipping etcd plane")
|
||||
} else {
|
||||
if err := services.RunEtcdPlane(ctx, c.EtcdHosts, etcdProcessHostMap, c.LocalConnDialerFactory, c.PrivateRegistriesMap); err != nil {
|
||||
if err := services.RunEtcdPlane(ctx, c.EtcdHosts, etcdProcessHostMap, c.LocalConnDialerFactory, c.PrivateRegistriesMap, c.UpdateWorkersOnly); err != nil {
|
||||
return fmt.Errorf("[etcd] Failed to bring up Etcd Plane: %v", err)
|
||||
}
|
||||
}
|
||||
@@ -76,7 +77,7 @@ func (c *Cluster) DeployControlPlane(ctx context.Context) error {
|
||||
if err := services.RunControlPlane(ctx, c.ControlPlaneHosts,
|
||||
c.LocalConnDialerFactory,
|
||||
c.PrivateRegistriesMap,
|
||||
processMap); err != nil {
|
||||
processMap, c.UpdateWorkersOnly); err != nil {
|
||||
return fmt.Errorf("[controlPlane] Failed to bring up Control Plane: %v", err)
|
||||
}
|
||||
|
||||
@@ -101,6 +102,7 @@ func (c *Cluster) DeployWorkerPlane(ctx context.Context) error {
|
||||
processMap,
|
||||
kubeletProcessHostMap,
|
||||
c.Certificates,
|
||||
c.UpdateWorkersOnly,
|
||||
); err != nil {
|
||||
return fmt.Errorf("[workerPlane] Failed to bring up Worker Plane: %v", err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user