-
Notifications
You must be signed in to change notification settings - Fork 40k
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
pkg/util should contain no code #15634
Comments
Then what left for |
util should be a directory that holds other directories and nothing else. On Fri, Oct 16, 2015 at 8:33 AM, Harry Zhang notifications@github.com
|
I can help with this |
Actually, most of the files shares this problem, another example:
If we refactor it to How to give them a proper package name in these cases? @thockin Maybe, |
Are there any other rate or flow-control related util packages? Why not lump these all together into pkg/util/flow (or something short like While in there, move the fakes (e.g. On Tue, Oct 27, 2015 at 12:40 AM, Harry Zhang notifications@github.com
|
pkg/util/flag/tristate.go, type Tristate - BoolFlag is a bad name for it. On Tue, Oct 27, 2015 at 12:53 AM, Harry Zhang notifications@github.com
|
On Thu, Oct 29, 2015 at 1:00 AM, Harry Zhang notifications@github.com wrote:
As discussed elsewhere - good :)
This is borderline useless - no comments and no tests. I shake my
We can probably remove the kube-proxy call to this lib, which leaves
ok
I'd just leave it called "bool_flag.go" unless you also want to fix it
ok
ok
ok
ok
ugg, I hate this lib. Fine.
ok
how about
ok
strings
this should go with flags
This should just be moved alongside the only caller of it.
ok
testing but yes
should be flow/testing/fake_rate_limiter.go - put test utils under
why timeutil and not time ? There's a Fake here that should be in a testing sub-pkg, too.
ok |
Thanks, Tim, I was once planning to post a new design here. |
I think that was my first Kube commit, so I claim newbish.
|
@thockin Two questions:
|
|
Automatic merge from submit-queue Add flow control pkg minor fix ref #15634 Refactor pkg names in back off related files
Automatic merge from submit-queue Refactor util clock into it's own pkg Continue my work ref #15634
Automatic merge from submit-queue Refactor uuid into its own pkg util/uuid Continuing my work ref #15634 Anyone can review this if he/she wants.
Automatic merge from submit-queue Refactoring runner resource container linedelimiter to it's own pkg Continuing my work ref #15634 Anyone is ok to review this fix.
Automatic merge from submit-queue Merge string flag into util flag Continuing my work on #15634 This refactoring is expected to be completely finished and then I will add a verify scripts in `hack`
still not be cleant up completely... |
Automatic merge from submit-queue (batch tested with PRs 48481, 48256) Refactor: pkg/util into sub-pkgs **What this PR does / why we need it**: - move code in pkg/util into sub-pkgs - delete some unused funcs **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #15634 **Special notes for your reviewer**: This is the final work of #15634. It will close that issue. /cc @thockin **Release note**: ```release-note NONE ```
we should move everything into sub-pkgs.
The text was updated successfully, but these errors were encountered: