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

[release-1.28] Remove duplicate pflag.Parse calls #2467

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

stephenfin
Copy link
Member

What this PR does / why we need it:

This is a partial backport of #2325, namely the fixes for issues introduced by #2324. This will fix #2464.

Which issue this PR fixes(if applicable):

Fixes #2464

Special notes for reviewers:

Release note:

NONE

This is already handled by the earlier call to the (confusingly named)
'InitFlags' function provided by 'k8s.io/component-base/cli/flag' [1].

[1] https://github.com/kubernetes/component-base/blob/v0.28.1/cli/flag/flags.go#L51-L59

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
(cherry picked from commit d0fc449)
This is already handled by the earlier call to the (confusingly named)
'InitFlags' function provided by 'k8s.io/component-base/cli/flag' [1].
We need to move the handling for the '--version' flag to after this to
ensure we parse the flags first.

[1] https://github.com/kubernetes/component-base/blob/v0.28.1/cli/flag/flags.go#L51-L59

Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
(cherry picked from commit de63646)
@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 6, 2023
@k8s-ci-robot k8s-ci-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Nov 6, 2023
@stephenfin
Copy link
Member Author

Note that the commits referenced don't actually exist on the remote and they only exist locally because garbage collector must not have run yet. Even with that caveat, I assume we still want to do things this way rather than cherry-pick the whole squashed change which includes feature'ish changes (the removal of glog handling code)?

@stephenfin
Copy link
Member Author

/cc @mdulko

@k8s-ci-robot
Copy link
Contributor

@stephenfin: GitHub didn't allow me to request PR reviews from the following users: mdulko.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

/cc @mdulko

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.

@mdulko
Copy link

mdulko commented Nov 6, 2023

@stephenfin Hello, I think you tagged wrong person and you meant @dulek, funny enough I'm from Gdansk, Poland too.

@stephenfin
Copy link
Member Author

@mdulko Indeed I did. Apologies! 😄

@dulek
Copy link
Contributor

dulek commented Nov 6, 2023

Cheers @mdulko, I knew we'll meet one day. ;)

@dulek
Copy link
Contributor

dulek commented Nov 6, 2023

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dulek

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 Nov 6, 2023
@jichenjc
Copy link
Contributor

jichenjc commented Nov 7, 2023

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 7, 2023
@k8s-ci-robot k8s-ci-robot merged commit 92619e4 into kubernetes:release-1.28 Nov 7, 2023
5 checks passed
@stephenfin stephenfin deleted the issues/2464 branch November 7, 2023 14:28
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. release-note-none Denotes a PR that doesn't merit a release note. 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.

None yet

5 participants