itaysk / kubectl-neat

Clean up Kubernetes yaml and json output to make it readable
Apache License 2.0
1.67k stars 100 forks source link

Pod tolerations field is not removed #12

Open itaysk opened 4 years ago

itaysk commented 4 years ago

a "neat" pod still has the tolerations field intact. need to investigate why this is not recognized as a default, or think if it make sense to manually clean as part of NeatPod.

itaysk commented 4 years ago

it's being added by a built-in admission controller: https://github.com/kubernetes/kubernetes/tree/master/plugin/pkg/admission/defaulttolerationseconds

itaysk commented 4 years ago

might be a good idea to look at admission controllers systematically, if there's a way to "default" their actions. if not, make sure at least the default ones are covered.