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

🌱 kcp: include node list error in KCP and control plane machine conditions #4421

Merged

Conversation

sbueringer
Copy link
Member

What this PR does / why we need it:

Not entirely sure that is what was intended by the issue.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #4234

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Apr 1, 2021
@k8s-ci-robot k8s-ci-robot requested review from detiber and justinsb April 1, 2021 09:44
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Apr 1, 2021
@sbueringer sbueringer force-pushed the pr-kcp-include-node-list-err branch from 09c7169 to 35f5617 Compare April 1, 2021 09:58
@k8s-ci-robot k8s-ci-robot 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 Apr 1, 2021
@mrajashree
Copy link
Contributor

LGTM (👋 first time reviewer here)

Copy link
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.

I don't have strong opinions here, but I'm not sure that surfacing a plain client-go error could provide actionable informations to the users. however,
/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Apr 2, 2021
@sbueringer
Copy link
Member Author

@fabriziopandini I'm fine with another solution or just closing the issue without a change. Just thought that was what issue #4234 wanted to change.

@detiber
Copy link
Member

detiber commented Apr 2, 2021

I don't have strong opinions here, but I'm not sure that surfacing a plain client-go error could provide actionable informations to the users.

I'm fine with another solution or just closing the issue without a change. Just thought that was what issue #4234 wanted to change.

I think it helps add some context to why the operation failed, but agree with @fabriziopandini that I'm not sure it provides actionable information for the user. I'm also not sure that we can provide actionable information for the user (since there are numerous reasons why we might not be able to list the nodes).

I'm a +1 on this change since it does provide additional information to the user, and we can always investigate ways to provide more actionable information down the road.

@CecileRobertMichon
Copy link
Contributor

I think it helps add some context to why the operation failed

+1 from me

we can always iterate and make the error more actionable if we find a good way to do that.

Given the multiple +1s and lgtms
/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: CecileRobertMichon

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 Apr 2, 2021
@k8s-ci-robot k8s-ci-robot merged commit 77093e2 into kubernetes-sigs:master Apr 2, 2021
@k8s-ci-robot k8s-ci-robot added this to the v0.4 milestone Apr 2, 2021
@sbueringer sbueringer deleted the pr-kcp-include-node-list-err branch April 2, 2021 17:12
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/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.

Error message suppressed when failing to get control plane nodes
6 participants