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
Move /pkg/kubectl/cmd/{command} to staging #80876
Conversation
/test pull-kubernetes-kubemark-e2e-gce-big |
/assign @liggitt |
viewing the diff is killing my chrome tab :P
…On Thu, Aug 1, 2019 at 4:18 PM Sean Sullivan ***@***.***> wrote:
/assign @liggitt <https://github.com/liggitt>
/cc @BenTheElder <https://github.com/BenTheElder>
/cc @dims <https://github.com/dims>
/cc @nikhita <https://github.com/nikhita>
/uncc @adohe <https://github.com/adohe>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#80876?email_source=notifications&email_token=AAHADK454T3QQVEQCFGZHFDQCNVMRA5CNFSM4IIXOH22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3MEPNQ#issuecomment-517490614>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHADK5HQ2AIVGJLG2LCE63QCNVMRANCNFSM4IIXOH2Q>
.
|
/approve |
73aca4a
to
4e64aaf
Compare
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
/retest |
flags.StringVar(&profileName, "profile", "none", "Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)") | ||
flags.StringVar(&profileOutput, "profile-output", "profile.pprof", "Name of the file to write the profile to") | ||
} | ||
|
||
func initProfiling() error { | ||
func InitProfiling() 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.
not sure how I feel about exporting this modifying global package vars. would something like this be better?
type ProfileOptions struct {
ProfileName string
ProfileOutput string
}
func (p *ProfileOptions) AddFlags(flags *pflag.FlagSet) {
... bind to p.ProfileName, p.ProfileOutput ...
}
func (p *ProfileOptions) Init() error {
... switch on p.ProfileName ...
}
func (p *ProfileOptions) Flush() error {
... switch on p.ProfileName, flush to p.ProfileOutput ...
}
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 that options struct could be under k8s.io/kubectl/pkg/util/profiling
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.
I'll take this as a follow up since this PR is a rebase magnet
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.
I'll follow up on this in the next PR if that is OK.
@@ -54,7 +54,7 @@ import ( | |||
) | |||
|
|||
var ( | |||
fakeSchema = sptest.Fake{Path: filepath.Join("..", "..", "..", "..", "api", "openapi-spec", "swagger.json")} |
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.
was fakeSchema pointing at the real static schema before?
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.
Yes. There are several instances of this in the tests.
/lgtm please open a follow up resolving #80876 (comment) |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BenTheElder, dims, liggitt, seans3 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 |
@@ -643,6 +645,8 @@ rules: | |||
- repository: client-go | |||
branch: release-12.0 | |||
- repository: code-generator | |||
branch: release-1.15 | |||
- repository: component-base |
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 doesn't really need to be added to 1.15 anymore. It leads to an extra unneeded sync but is a no-op so I'll clean up redundant rules in a follow-up. Example - kubernetes/kubectl@f16387a
Move /pkg/kubectl/cmd/{command} to staging Kubernetes-commit: 81f021b
pkg/kubectl/cmd/{command}
to staging, except forauth
,convert
, andget
which still have kubernetes dependencies.pkg/kubectl
codebase to staging/kind cleanup
/sig cli
/area kubectl
/area code-organization
/priority important-soon