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
Update cobra dependency to v1.1.1 #95571
Conversation
@eddiezane: GitHub didn't allow me to request PR reviews from the following users: marckhouzam. Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs. In response to this:
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. |
Notes for reviewers: I've followed this guide on updating. I'm not sure if the |
/assign @liggitt |
go.mod
Outdated
@@ -109,7 +109,7 @@ require ( | |||
google.golang.org/grpc v1.27.0 | |||
gopkg.in/gcfg.v1 v1.2.0 | |||
gopkg.in/square/go-jose.v2 v2.2.2 | |||
gopkg.in/yaml.v2 v2.2.8 | |||
gopkg.in/yaml.v2 v2.3.0 |
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.
running hack/lint-dependencies.sh
will indicate this needs to be updated and vendor updated
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.
looks like this version changed the default line width, so we may need to explicitly set the previous default of 80 in our yaml serializers
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 is the related change go-yaml/yaml#571 but I'm not sure where to start digging in on our end outside of seeing what the tests do.
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.
And there are the failures. I'll dig in.
131832c
to
e3fa720
Compare
6ac6688
to
9e81dea
Compare
Cobra v1.1.1 brings improvements to autocompletion needed for ongoing kubectl work. Signed-off-by: Eddie Zaneski <eddiezane@gmail.com>
9e81dea
to
9b65bd8
Compare
@liggitt - rebased and ready to go /remove-sig api-machinery |
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
/approve
looks like this is ready to 🚢 @liggitt (needs root OWNER approval) |
Good point Dims, worth |
@liggitt per Slack here's the list of new entries to
|
Thanks for gathering that. MPL and CC0 are not on the allowed list of CNCF licenses, and I don't see the following in https://github.com/cncf/foundation/tree/master/license-exceptions:
|
This was a fun one. It looks like all of these are pulled in via: github.com/spf13/cobra -> github.com/spf13/viper -> github.com/bketelsen/crypt -> github.com/hashicorp/consul/api Seeing as this version of cobra is already in etcd I imagine we'll need to get these on the exception list. Do you know what the path for that is? |
I don't... @cblecker, do you know? |
cc @kubernetes/licensing |
@liggitt @eddiezane So what really matters is the LICENSES file that get added, not transitive, so for this PR those are
Given the both the packages have licenses that are covered by https://github.com/cncf/foundation/blob/master/allowed-third-party-license-policy.md#approved-licenses-for-allowlist
We should be good. Also, process-wise, the exception-list in CNCF lags what we release. basically we get to ask for exceptions as and when we need it. The CNCF GB approves/updates the exception list. We ping @swinslow when we need to ask questions. Typically @nikhita and myself have engaged Steve. Thanks, |
/approve |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, eddiezane, liggitt, soltysh 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 |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This PR bumps the vendored version of cobra to v1.1.1.
This version includes some changes to shell completion necessary for ongoing kubectl work.
Which issue(s) this PR fixes:
Refs kubernetes/kubectl#882
Special notes for your reviewer:
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.:
/cc @marckhouzam @brianpursley @knight42