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

Leaves kill job to GC #156

Closed
wants to merge 3 commits into from
Closed

Conversation

hzxuzhonghu
Copy link
Collaborator

This allows users to investigate the task result.

@@ -26,6 +26,7 @@ type finishedState struct {
}

func (ps *finishedState) Execute(action vkv1.Action) error {
// In finished state, e.g. Completed, always kill the whole job.
return KillJob(ps.job, nil)
// In finished state, e.g. Completed,Terminated, Failed
Copy link
Contributor

@SrinivasChilveri SrinivasChilveri May 14, 2019

Choose a reason for hiding this comment

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

does it mean we will be updating the admission webhook as per ttl controller. otherwise GC will not comeinto picture naaa?? am i missing something else?
or we are just leaving it to run so that user can delete after analysing/seeing his app logs etc

Use a mutating admission webhook to set this field dynamically at resource creation time. Cluster administrators can use this to enforce a TTL policy for finished resources.
Use a mutating admission webhook to set this field dynamically after the resource has finished, and choose different TTL values based on resource status, labels, etc.

@hzxuzhonghu
Copy link
Collaborator Author

ping @k82cn

@volcano-sh-bot volcano-sh-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 27, 2019
@volcano-sh-bot
Copy link
Contributor

@hzxuzhonghu: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants