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

Add NotReady taint to the new cluster #2427

Merged
merged 1 commit into from Aug 27, 2022

Conversation

chaunceyjiang
Copy link
Member

Signed-off-by: chaunceyjiang chaunceyjiang@gmail.com

What type of PR is this?
/kind feature

What this PR does / why we need it:

There should be a taint during the period before the state of the newly added cluster becomes ready

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@karmada-bot karmada-bot added the kind/feature Categorizes issue or PR as related to a new feature. label Aug 25, 2022
@karmada-bot karmada-bot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Aug 25, 2022
@RainbowMango
Copy link
Member

RainbowMango commented Aug 25, 2022

Does it help #2301?

[edit]: Just see your comments at #2301 (comment).

@chaunceyjiang
Copy link
Member Author

chaunceyjiang commented Aug 25, 2022

我认为有这样一种情况

当新加入的集群变Ready之前,NotReady 这个污点还没有来的及添加,集群就变成了Ready。

这样就会造成有一段时间集群状态不是Ready的,但是却没有污点。

简而言之,刚加入的集群它不是ready的,就应该带有NotReady污点

@chaunceyjiang
Copy link
Member Author

Does it help #2301?

[edit]: Just see your comments at #2301 (comment).

Yes

@karmada-bot karmada-bot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Aug 25, 2022
@chaunceyjiang chaunceyjiang force-pushed the join_taint branch 2 times, most recently from 63dc705 to adb7993 Compare August 25, 2022 11:10
@chaunceyjiang
Copy link
Member Author

What do you think? @RainbowMango @Garrybest

@XiShanYongYe-Chang
Copy link
Member

Hi @chaunceyjiang, maybe we needn't this modification, please see here.

@chaunceyjiang
Copy link
Member Author

Hi @chaunceyjiang, maybe we needn't this modification, please see here.

I don't think so, please see #2301 (comment)

@chaunceyjiang
Copy link
Member Author

I think when currentReadyCondition is nil,that mean the cluster status controller is not working yet, and we do not know the status of this cluster. Therefore, this cluster should be have a taint. If it is not tainted, it means that this cluster is normal, because the scheduler does not care about the cluster status, only about the cluster taint

Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
Copy link
Member

@XiShanYongYe-Chang XiShanYongYe-Chang left a comment

Choose a reason for hiding this comment

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

Thanks, NotReady will be an appropriate taint.
/lgtm

@karmada-bot karmada-bot added the lgtm Indicates that a PR is ready to be merged. label Aug 26, 2022
@RainbowMango
Copy link
Member

@Garrybest @likakuli Could you please take a look?

@RainbowMango RainbowMango added this to the v1.3 milestone Aug 27, 2022
Copy link
Member

@RainbowMango RainbowMango left a comment

Choose a reason for hiding this comment

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

/approve

@karmada-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: RainbowMango

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@karmada-bot karmada-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 27, 2022
@karmada-bot karmada-bot merged commit c769381 into karmada-io:master Aug 27, 2022
@chaunceyjiang chaunceyjiang deleted the join_taint branch September 1, 2022 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/feature Categorizes issue or PR as related to a new feature. lgtm Indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants