We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6cfedd5 commit 7b71c03Copy full SHA for 7b71c03
internal/k8s/kubernetes.go
@@ -501,6 +501,8 @@ func IsNonEvictible(p *v1.Pod) bool {
501
// a cordoned node since they tolerate the node.kubernetes.io/unschedulable taint.
502
func HasWildcardToleration(p *v1.Pod) bool {
503
for _, t := range p.Spec.Tolerations {
504
+ fmt.Println(p.Name, t.Key == "" && t.Operator == v1.TolerationOpExists)
505
+ fmt.Println(t)
506
if t.Key == "" && t.Operator == v1.TolerationOpExists {
507
return true
508
}
0 commit comments