1
0
mirror of https://github.com/rancher/rke.git synced 2025-08-31 22:46:25 +00:00

Support node taint configuration

**Problem:**
We can not set node taints in RKE node config.

**Solution:**
Sync taints from config in `SyncLabelsAndTaints` function
This commit is contained in:
orangedeng
2019-08-01 22:18:20 +08:00
committed by Alena Prokharchyk
parent 0a92b0604f
commit 0ef3c0849a
2 changed files with 77 additions and 0 deletions

View File

@@ -363,6 +363,9 @@ func (c *Cluster) SyncLabelsAndTaints(ctx context.Context, currentCluster *Clust
}
}
// sync node taints. Add or remove taints from hosts
syncTaints(ctx, currentCluster, c)
if len(c.ControlPlaneHosts) > 0 {
log.Infof(ctx, "[sync] Syncing nodes Labels and Taints")
k8sClient, err := k8s.NewClient(c.LocalKubeConfigPath, c.K8sWrapTransport)