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:
committed by
Alena Prokharchyk
parent
0a92b0604f
commit
0ef3c0849a
@@ -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)
|
||||
|
Reference in New Issue
Block a user