Skip to content

Setting max/default ActiveDeadlineSeconds on the deployer pod #2402

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

Merged
merged 3 commits into from
May 21, 2015

Conversation

abhgupta
Copy link
Member

No description provided.

@derekwaynecarr
Copy link
Member

What controls how long a LifecycleHook can run? My understanding is that that can also cause a new pod to be created.

@abhgupta
Copy link
Member Author

@derekwaynecarr Good catch! I am now setting the same value on the deployment hook pod as well. These would apply to the deployment strategies that we provide. Users can still go ahead and provide their own deployer pod image and we'd have no control over anything they do in there. But for the deployment strategies that we provide, we have added the attribute.

@@ -143,7 +146,8 @@ func buildContainer(hook *deployapi.ExecNewPodHook, deployment *kapi.Replication
Resources: resources,
},
},
RestartPolicy: kapi.RestartPolicyNever,
ActiveDeadlineSeconds: &maxDeploymentDurationSeconds,
Copy link
Member

Choose a reason for hiding this comment

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

test that verifies this?

Copy link
Member Author

Choose a reason for hiding this comment

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

Added

@abhgupta
Copy link
Member Author

Also, I'd like to keep these commits separate.

@abhgupta
Copy link
Member Author

@derekwaynecarr Please review/merge

@derekwaynecarr
Copy link
Member

[merge]

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_requests_origin/2047/) (Image: devenv-fedora_1591)

@openshift-bot
Copy link
Contributor

Evaluated for origin up to 20cf8b9

@openshift-bot
Copy link
Contributor

[Test]ing while waiting on the merge queue

@openshift-bot
Copy link
Contributor

continuous-integration/openshift-jenkins/test SUCCESS (https://ci.openshift.redhat.com/jenkins/job/test_pull_requests_origin/2327/)

openshift-bot pushed a commit that referenced this pull request May 21, 2015
@openshift-bot openshift-bot merged commit 2d2424f into openshift:master May 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants