-
Notifications
You must be signed in to change notification settings - Fork 407
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
pool-coordinator implementation of yurthub #1073
pool-coordinator implementation of yurthub #1073
Conversation
@Congrool: GitHub didn't allow me to assign the following users: your_reviewer. Note that only openyurtio members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: Congrool The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
The implementation currently has not been tested. |
435527d
to
f1c3f6f
Compare
values := make([][]byte, 0, len(getResp.Kvs)) | ||
for _, kv := range getResp.Kvs { | ||
values = append(values, kv.Value) | ||
} |
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.
Line 275~277 should be as following:
for i, kv := range getResp.Kvs {
values[i] = append(values[i], kv.Value...)
}
if time.Now().After(renewTime.Add(defaultPoolCacheStaleDuration)) { | ||
coordinator.Lock() | ||
defer coordinator.Unlock() | ||
coordinator.isPoolCacheSynced = false |
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.
coordinator.isPoolCacheSynced = true?
fixes #778 , need to link it |
TODO List:
Test:
|
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
947dc5d
to
4d9e05c
Compare
@Congrool I will merge this pull request for integration test, and you can complete works in the todo list when making integration test. |
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
…er of this client is healthy Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
…esources Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
…ool when pool coordinator becomes ready Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
Signed-off-by: Congrool <[email protected]>
4d9e05c
to
9306fa0
Compare
OK, please go ahead @rambohe-ch |
* pool-coordinator implementation of yurthub Signed-off-by: Congrool <[email protected]>
What type of PR is this?
/kind feature
What this PR does / why we need it:
Yurthub portion of pool-coordinator implementation, which includes the following functions:
Which issue(s) this PR fixes:
Fixes #778
Special notes for your reviewer:
Does this PR introduce a user-facing change?
other Note