Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add log for untolerated taint #927

Merged
merged 1 commit into from
Oct 21, 2024
Merged

Conversation

Arvindthiru
Copy link
Contributor

Description of your changes

Fixes #

I have:

  • Run make reviewable to ensure this PR is ready for review.

How has this code been tested

Special notes for your reviewer

@Arvindthiru Arvindthiru merged commit 899c925 into Azure:main Oct 21, 2024
11 checks passed
@@ -26,6 +27,8 @@ func (p *Plugin) Filter(
if !isUntolerated {
return nil
}
policyRef := klog.KObj(policy)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not reused, why create this var?

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at the other plugins, I don't see logs there, is there any reason? Should we log more in each plug-in?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants