-
Notifications
You must be signed in to change notification settings - Fork 992
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
Match specific tolerations to prevent Diffs #978
Conversation
0f02bb8
to
2a80b9d
Compare
rebased |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good! I did some manual testing and ran the full set of acceptance tests on it, and everything passed. I just left one suggestion.
kubernetes/structures_pod.go
Outdated
"node.kubernetes.io/not-ready": "", | ||
"node.kubernetes.io/unreachable": "", | ||
"node.kubernetes.io/out-of-disk": "", | ||
"node.kubernetes.io/memory-pressure": "", | ||
"node.kubernetes.io/disk-pressure": "", | ||
"node.kubernetes.io/network-unavailable": "", | ||
"node.kubernetes.io/unschedulable": "", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of hard-coding these names, how would you feel about pulling the values from the Kubernetes API library? They're defined as constants here:
For example:
v1.TaintNodeNotReady: "",
v1.TaintNodeUnreachable: "",
Then any future naming changes will be pulled in automatically through that library. I also noticed that file contains one that was missing from the PR: TaintNodePIDPressure
. (Probably because it wasn't listed on their docs page).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, will change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this contribution!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Description
Acceptance tests
References
Closes #955
Community Note