-
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
Simplify restartPolicy: change to string #3607
Comments
The assumption was that the various policies would soon grow parameters, @dchen1107 - will we grow params here? E.g. max number of restarts or On Mon, Jan 19, 2015 at 2:57 AM, abonas notifications@github.com wrote:
|
@thockin : My answer is no, we will not expand these policies. |
I'd be happy to have this simplified in v1beta3. |
Really? You know the 800 knobs that we have internally - none of them are I'd be happy to see this simplify to a string like the other *Policy On Fri, Jan 23, 2015 at 5:23 PM, Brian Grant notifications@github.com
|
Really. |
Ok, I will clean up this one next week. And we can add knobs later if someone come up with real good reasons. |
I'd like to get this into v1beta3 asap. |
Fixed kubernetes#3607 and spiritually support kubernetes#5475
This patch adds the support of the new restartPolicy format: kubernetes/kubernetes#3607 Until we're sure that everyone updated their kubernetes instance (probably until v1.0 is officially released) it's better to handle both. Signed-off-by: Federico Simoncelli <fsimonce@redhat.com>
Fixed #3607 and spiritually support kubernetes#5475
In the pods in both v1 and v3 api, the restart policy looks like this:
"restartPolicy": {
"always": {}
}
Why is this a hash inside hash? Shouldn't it be a simple key "restartPolicy" with string value one of: RestartPolicyAlways, RestartPolicyOnFailure, RestartPolicyNever ?
The text was updated successfully, but these errors were encountered: