Skip to content

Commit

Permalink
add log for untolerated taint
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvindthiru committed Oct 21, 2024
1 parent 986fe6e commit 9af3c1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/scheduler/framework/plugins/tainttoleration/filtering.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"

corev1 "k8s.io/api/core/v1"
"k8s.io/klog/v2"

clusterv1beta1 "go.goms.io/fleet/apis/cluster/v1beta1"
placementv1beta1 "go.goms.io/fleet/apis/placement/v1beta1"
Expand All @@ -26,6 +27,8 @@ func (p *Plugin) Filter(
if !isUntolerated {
return nil
}
policyRef := klog.KObj(policy)
klog.V(2).InfoS("Cluster is unschedulable, because taint cannot be tolerated", "clusterSchedulingPolicySnapshot", policyRef, "taint", taint)
return framework.NewNonErrorStatus(framework.ClusterUnschedulable, p.Name(), fmt.Sprintf(reasonFmt, taint))
}

Expand Down

0 comments on commit 9af3c1d

Please sign in to comment.