Unverified Commit b44fb756 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #64986 from ashleyschuett/fix/kubeadmmastertaints

Automatic merge from submit-queue. Fixed taints being applied to master if NoTaintMaster is true **What this PR does / why we need it**: This PR fixes removing the master taint when `noTaintMaster` is true. It will append all current taints to the `taints` variable unless it is a master taint, and then assign `taints` back to the `node.Spec.Taints` property. The function currently will add the master taint to the `taints` variable for as many taints as the master has. It will also remove any taints that are on the master. ```release-note Fixed NoTaintMaster to remove master taint and keep all other applied taints. ```
parents b092939e b1c75eb0
...@@ -115,7 +115,7 @@ func delTaintIfExists(n *v1.Node, t v1.Taint) { ...@@ -115,7 +115,7 @@ func delTaintIfExists(n *v1.Node, t v1.Taint) {
if taint == t { if taint == t {
continue continue
} }
taints = append(taints, t) taints = append(taints, taint)
} }
n.Spec.Taints = taints n.Spec.Taints = taints
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment