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

Incorporate Cobra #1834

Merged
merged 1 commit into from
Nov 11, 2022
Merged

Conversation

rexagod
Copy link
Member

@rexagod rexagod commented Sep 14, 2022

s/pflags/cobra/g:

  • Use spf13/cobra to handle all flags and sub-commands.
  • Remove all spf13/pflag usage, and fallback to the in-build flag package if, and when needed.
  • Add completion support.

Signed-off-by: Pranshu Srivastava rexagod@gmail.com

How does this change affect the cardinality of KSM: No change.

Which issue(s) this PR fixes: Partially targets #1791 (intentially leaving out the fixes keyword here, since this issue to targeted by multiple PRs: #1791 (comment)).

@k8s-ci-robot k8s-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Sep 14, 2022
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 14, 2022
@rexagod rexagod mentioned this pull request Sep 14, 2022
@rexagod rexagod force-pushed the 1791-1-incorporate-cobra branch 2 times, most recently from f9673d2 to 84d45b9 Compare September 14, 2022 22:43
@rexagod rexagod marked this pull request as ready for review September 15, 2022 16:15
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 15, 2022
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 14, 2022
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 6, 2022
@rexagod rexagod force-pushed the 1791-1-incorporate-cobra branch 3 times, most recently from 3c3fff4 to 8ab4cc7 Compare November 6, 2022 22:36
@rexagod
Copy link
Member Author

rexagod commented Nov 6, 2022

Ready for review.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 7, 2022
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 8, 2022
go.mod Outdated Show resolved Hide resolved
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 8, 2022
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 8, 2022
@rexagod rexagod force-pushed the 1791-1-incorporate-cobra branch 2 times, most recently from e00aa16 to a04e30e Compare November 8, 2022 15:49
@rexagod rexagod mentioned this pull request Nov 8, 2022
@mrueg
Copy link
Member

mrueg commented Nov 8, 2022

Thanks a lot for your work on this @rexagod!
/lgtm
/hold
for @dgrisonnet @fpetkovski @logicalhan to review.

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 8, 2022
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Nov 8, 2022
s/pflags/cobra/g:
* Use spf13/cobra to handle all flags and sub-commands.
* Remove all spf13/pflag usage, and fallback to the in-build flag
  package if, and when needed.
* Add completion support.

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
@k8s-ci-robot k8s-ci-robot removed lgtm "Looks good to me", indicates that a PR is ready to be merged. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Nov 10, 2022
@mrueg
Copy link
Member

mrueg commented Nov 10, 2022

/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 10, 2022
Copy link
Contributor

@fpetkovski fpetkovski left a comment

Choose a reason for hiding this comment

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

/lgtm
/hold

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fpetkovski, mrueg, rexagod

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

@mrueg
Copy link
Member

mrueg commented Nov 11, 2022

/unhold
since we got two reviews here. :)

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 11, 2022
@k8s-ci-robot k8s-ci-robot merged commit e27fb87 into kubernetes:master Nov 11, 2022
@rexagod rexagod mentioned this pull request Nov 16, 2022
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/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants