-
Notifications
You must be signed in to change notification settings - Fork 200
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
cp env util from kubernetes/kubernetes #194
Conversation
Refactor env into sub pkg
…rnetes into util-env
When this PR is merged, I will send a PR in k/k to update the vendor directory. |
/assign @apelisse |
And does #9 list all the pkgs that should be moved to utils repo ? I'd like to help to move them to here. |
/assign @thockin Tim, WDYT? of this new API |
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'm curious how much this is used? This is also so "simple" that it doesn't add a lot of value.
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 borderline pointless, but not obviously so. How many callers of this are there?
env/env.go
Outdated
|
||
// GetEnvAsFloat64OrFallback returns the env variable (parsed as float64) for | ||
// the given key and falls back to the given defaultValue if not set | ||
func GetEnvAsFloat64OrFallback(key string, defaultValue float64) (float64, 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.
I would drop "64" - we're not going to add multiple flavors, I think. :)
b42bde6
to
0a5333d
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.
I'd totally forgotten we still had Flocker support.
Thanks! /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: pigletfly, thockin 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:
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:
None