mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-12-03 12:40:47 +00:00
Automatic merge from submit-queue Refactoring reorganize taints function in kubectl to expose operations **What this PR does / why we need it**: This adds some UX functionality when specifying taints using kubectl. For example: ``` ./kubectl.sh taint nodes XYZ dedicated1=abca2:NoSchedule node "XYZ" tainted ./kubectl.sh taint nodes XYZ dedicated1=abca1:NoSchedule --overwrite=True node "XYZ overwritten ./kubectl.sh taint nodes XYZ dedicated1- node "XYZ" untainted ./kubectl.sh taint nodes XYZ dedicated=abca1:NoSchedule dedicated1- node "XYZ" modified ``` **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #43167 **Release note**: ``` Fixed the output of kubectl taint node command with minor improvements. ```