-
Notifications
You must be signed in to change notification settings - Fork 578
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
K8s Task launcher to use task launcher account properties #4546
K8s Task launcher to use task launcher account properties #4546
Conversation
- Introduce Platform task launcher properties to include K8s task launcher properties - Construct the task launcher using this explicit property - Update test Resolves spring-cloud#4186
4486a91
to
24ba63e
Compare
@@ -0,0 +1,28 @@ | |||
/* | |||
* Copyright 2017-2019 the original author or authors. |
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.
2021
LGTM
|
Thanks @cppwfs . While the above covers the regression part, we need to be testing with properties such as backoffLimit, restartPolicy that are part of platform account properties. |
KubernetesDeployerProperties deployerProperties = new KubernetesDeployerProperties(); | ||
deployerProperties.getLimits().setMemory("5555Mi"); | ||
KubernetesTaskLauncherProperties taskLauncherProperties = new KubernetesTaskLauncherProperties(); | ||
taskLauncherProperties.setBackoffLimit(5); |
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.
Where do we test for the backofflimit?
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.
Good catch. We aren't testing backoffLimit in this test case rather the next one does. I kept this test as it used to be (except adding the new properties arg)
LGTM |
Rebased, Squashed, Merged |
Resolves #4186