From 4be538df0a6f5e5588272f93fa9a9e2b02a45f44 Mon Sep 17 00:00:00 2001 From: Maciej Szulik Date: Wed, 26 Apr 2017 12:09:35 +0200 Subject: Update proposal to match current job spec --- contributors/design-proposals/job.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/contributors/design-proposals/job.md b/contributors/design-proposals/job.md index 160b38dd..31fb0e3f 100644 --- a/contributors/design-proposals/job.md +++ b/contributors/design-proposals/job.md @@ -79,8 +79,12 @@ type JobSpec struct { // job should be run with. Defaults to 1. Completions *int + // Optional duration in seconds relative to the startTime that the job may be active + // before the system tries to terminate it; value must be positive integer + ActiveDeadlineSeconds *int + // Selector is a label query over pods running a job. - Selector map[string]string + Selector LabelSelector // Template is the object that describes the pod that will be created when // executing a job. @@ -109,12 +113,12 @@ type JobStatus struct { // Active is the number of actively running pods. Active int - // Successful is the number of pods successfully completed their job. - Successful int + // Succeeded is the number of pods successfully completed their job. + Succeeded int - // Unsuccessful is the number of pods failures, this applies only to jobs + // Failed is the number of pods failures, this applies only to jobs // created with RestartPolicyNever, otherwise this value will always be 0. - Unsuccessful int + Failed int } type JobConditionType string -- cgit v1.2.3