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

remove evil global state shared by all schedulers #5351

Merged
merged 1 commit into from
Mar 13, 2015

Conversation

lavalamp
Copy link
Member

Running e2e now. (needed for #5336)

@bgrant0607
Copy link
Member

cc @davidopp @mikedanese @abhgupta

@lavalamp
Copy link
Member Author

After a ridiculous amount of effort, I finished running e2e and it appears to have passed.

@@ -46,20 +60,26 @@ type AlgorithmProviderConfig struct {
PriorityFunctionKeys util.StringSet
}

// Registers a fit predicate with the algorithm registry. Returns the name,
// with which the predicate was registered.
// RegisterFitPredicate registers a fit predicate with the algorithm
Copy link
Member

Choose a reason for hiding this comment

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

Random question: Do we have a standard about whether you re-state the function name in the comment? Personally I don't like this style (I'd prefer "Registers a fit predicate..." as it was before) but I guess we don't have a standard practice.

Copy link
Member

Choose a reason for hiding this comment

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

Its a godoc convention. From the blog, a godoc "comment is a complete sentence that begins with the name of the element it describes." govet issues a warning if you don't do this I believe.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's godoc style to repeat the function name verbatim, for whatever reason. :/

@davidopp
Copy link
Member

LGTM

Personally I think factories are pretty evil too :-). I'm not sure whether this PR is a big net improvement. But if you think it is worth the somewhat extra complexity it's OK with me.

@lavalamp
Copy link
Member Author

Yeah I don't love this either but these Lister variables have to get made at scheduler creation time and not when the module in initialized.

@satnam6502
Copy link
Contributor

@davidopp it would be great to label things with satus-lgtm -- I use that to scan the PRs to work out which ones may be mergeable. Thanks.

@satnam6502 satnam6502 added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Mar 13, 2015
satnam6502 added a commit that referenced this pull request Mar 13, 2015
remove evil global state shared by all schedulers
@satnam6502 satnam6502 merged commit 52bf7af into kubernetes:master Mar 13, 2015
@davidopp
Copy link
Member

Satnam: The reason I didn't label it LGTM was that I was waiting for Daniel to confirm he thought adding this layer of indirection was worthwhile (sorry my comment with the LGTM wasn't clear).

@lavalamp
Copy link
Member Author

Thanks for merging, my #5446 builds on top of this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm "Looks good to me", indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants