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
Simplify volume zone checker codes #84611
Simplify volume zone checker codes #84611
Conversation
/sig scheduling |
38caa04
to
fd6983c
Compare
/retest |
/assign @k82cn |
/kind cleanup |
@k82cn PTAL thanks |
ping @alculquicondor @wgliang for review |
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.
/lgtm
@cwdsuzhou Thanks.
name: "unbound volume empty storage class", | ||
Pod: createPodWithVolume("pod_1", "vol_1", "PVC_EmptySC"), | ||
Node: testNode, | ||
wantStatus: framework.NewStatus(framework.Error, |
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.
this format seems wrong, please revert
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.
@alculquicondor I have go fmt
the codes, it is not wrong.
see line334 and 340 also have the similar format
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.
oh I see, you put a new line
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.
/lgtm
ping @k82cn for approve |
/assign @ravisantoshgudimetla |
ping @ravisantoshgudimetla for approval |
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.
Thanks for the clean up @cwdsuzhou
/lgtm
I think, this can wait till code freeze is lifted though :) |
Thanks |
/approve Thank you @cwdsuzhou |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cwdsuzhou, ravisantoshgudimetla 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 |
/retest Review the full test history for this PR. Silence the bot with an |
2 similar comments
/retest Review the full test history for this PR. Silence the bot with an |
/retest Review the full test history for this PR. Silence the bot with an |
/test pull-kubernetes-e2e-gce |
/retest Review the full test history for this PR. Silence the bot with an |
/retest |
/retest Review the full test history for this PR. Silence the bot with an |
What type of PR is this?
/kind feature
What this PR does / why we need it:
currently, volume zone checker codes use too many
if ... else
, we'd better simplify it and improve the readability.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: