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
Fix golint failures on handlers/negotiation #73094
Conversation
/release-note-none |
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.
/priority important-longterm
/lgtm
/assign @cheftako |
@liggitt Could you take a look at this? |
@@ -133,7 +133,7 @@ type EndpointRestrictions interface { | |||
AllowsStreamSchema(schema string) bool | |||
} | |||
|
|||
var DefaultEndpointRestrictions = emptyEndpointRestrictions{} |
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.
document rather than unexporting
k8s.io/apiserver is a library... we don't know where that is used |
OK, let me revert it. |
DefaultEndpointRestrictions is only used in the module, so this renames it to defaultEndpointRestrictions.
fe532e1
to
302ec98
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: liggitt, oomichi 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 |
@liggitt Thanks for your review again :-) |
/test pull-kubernetes-e2e-gce |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
This fixes golint failures on k8s.io/apiserver/pkg/endpoints/handlers/negotiation/negotiate.go.
DefaultEndpointRestrictions is only used in the module, so this renames it to defaultEndpointRestrictions.
Special notes for your reviewer:
ref: #68026
Does this PR introduce a user-facing change?: