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

🐛 KubeadmControlPlane should use a live client when listing machines #3759

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

vincepri
Copy link
Member

@vincepri vincepri commented Oct 7, 2020

This changes the client used to get the machines in a cluster, instead
of using a cached client which could lag behind when the cluster is
under stress or when there are network issues, it uses a live client
reader which causes the request to go directly to the API server.

/assign @sedefsavas @fabriziopandini
/milestone v0.3.11

This changes the client used to get the machines in a cluster, instead
of using a cached client which could lag behind when the cluster is
under stress or when there are network issues, it uses a live client
reader which causes the request to go directly to the API server.

Signed-off-by: Vince Prignano <[email protected]>
@k8s-ci-robot k8s-ci-robot added this to the v0.3.11 milestone Oct 7, 2020
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 7, 2020
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 7, 2020
@sedefsavas
Copy link

How about not using cache for the most part in KCP since the decision of scaling up and down depends on the state the controller see, even in reconcileDelete?

@vincepri
Copy link
Member Author

vincepri commented Oct 7, 2020

@sedefsavas Not super sure what you mean, using an uncached client shouldn't be the normal behavior, only critical pieces should make use of it, we might end up overloading the API server

@sedefsavas
Copy link

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Oct 7, 2020
@vincepri
Copy link
Member Author

vincepri commented Oct 7, 2020

/test pull-cluster-api-verify

@fabriziopandini
Copy link
Member

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fabriziopandini

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Oct 7, 2020
@k8s-ci-robot k8s-ci-robot merged commit a82cfd9 into kubernetes-sigs:master Oct 7, 2020
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants