Skip to content

🐛 Change KCP upgrade to use machinelist for scaling decision#4376

Merged
k8s-ci-robot merged 1 commit into
kubernetes-sigs:masterfrom
Nordix:fix-kcp-scale-in-resource-status-check
Mar 26, 2021
Merged

🐛 Change KCP upgrade to use machinelist for scaling decision#4376
k8s-ci-robot merged 1 commit into
kubernetes-sigs:masterfrom
Nordix:fix-kcp-scale-in-resource-status-check

Conversation

@jan-est
Copy link
Copy Markdown
Contributor

@jan-est jan-est commented Mar 25, 2021

status.Nodes is not the resource status. Method which is populating this field is using the cached client,
which is not ideal when taking decision about scale up or down. This PR change KCP to use list of machines in the controlPlane object for making scaling decision.

Fix issue commented here #4293 (comment)

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Mar 25, 2021
@k8s-ci-robot
Copy link
Copy Markdown
Contributor

Hi @jan-est. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Mar 25, 2021
@fabriziopandini
Copy link
Copy Markdown
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 25, 2021
Copy link
Copy Markdown
Member

@fabriziopandini fabriziopandini left a comment

Choose a reason for hiding this comment

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

/lgtm

Comment thread controlplane/kubeadm/controllers/upgrade.go Outdated
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 25, 2021
@jan-est jan-est force-pushed the fix-kcp-scale-in-resource-status-check branch from e20b848 to e4903cd Compare March 26, 2021 07:06
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 26, 2021
@jan-est jan-est force-pushed the fix-kcp-scale-in-resource-status-check branch from e4903cd to d927fd1 Compare March 26, 2021 07:08
status.Nodes is not the resource status. Method which is populating this field is using the cached client,
which is not ideal when taking decision about scale up or down.
This PR change KCP to use list of machines in the controlPlane object for making scaling decision.
@jan-est jan-est force-pushed the fix-kcp-scale-in-resource-status-check branch from d927fd1 to c437b3b Compare March 26, 2021 07:32
@fabriziopandini
Copy link
Copy Markdown
Member

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 26, 2021
@k8s-ci-robot
Copy link
Copy Markdown
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

Details 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 Mar 26, 2021
@k8s-ci-robot k8s-ci-robot merged commit 3de1188 into kubernetes-sigs:master Mar 26, 2021
@k8s-ci-robot k8s-ci-robot added this to the v0.4 milestone Mar 26, 2021
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. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. 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.

3 participants