-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Adds support for startup taints and extends support for status taints #6132
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
Adds support for startup taints and extends support for status taints #6132
Conversation
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.
Some minor comments and missing renaming of variables.
cluster-autoscaler/cloudprovider/oci/nodepools/consts/annotations.go
Outdated
Show resolved
Hide resolved
// FilterOutNodesWithIgnoredTaints override the condition status of the given nodes to mark them as NotReady when they have | ||
// filtered taints. | ||
func FilterOutNodesWithIgnoredTaints(ignoredTaints TaintKeySet, allNodes, readyNodes []*apiv1.Node) ([]*apiv1.Node, []*apiv1.Node) { | ||
func FilterOutNodesWithIgnoredTaints(taintConfig TaintConfig, allNodes, readyNodes []*apiv1.Node) ([]*apiv1.Node, []*apiv1.Node) { |
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.
FilterOutNodesWithStartupTaints
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.
Should be alright now
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: atwamahmoud, BigDarkClown The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…port Adds support for startup taints and extends support for status taints
…port Adds support for startup taints and extends support for status taints
What type of PR is this?
/kind bug
/kind cleanup
What this PR does / why we need it:
Following up on PR #5659,
startup-taint
flag is added and combined withignore-taint
flag so both will have the same effectstartup-taint.cluster-autoscaler.kubernetes.io/
is added to be similar toignore-taint.cluster-autoscaler.kubernetes.io/
and behaves the samestatus-taint
flag is added and passed to autoscaling optionsstatus-taint.cluster-autoscaler.kubernetes.io/
is added to ignore nodes with taints starting with it when scaling up.TaintConfig
to have prefixes list instead of relying on constant hardcoded valuesWhich issue(s) this PR fixes:
Allows status-taints to be specified by the users in addition to supporting taints with prefix
status-taint.cluster-autoscaler.kubernetes.io/
Does this PR introduce a user-facing change?