summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Szulik <maszulik@redhat.com>2017-04-26 12:09:35 +0200
committerMaciej Szulik <maszulik@redhat.com>2017-04-26 12:09:35 +0200
commit4be538df0a6f5e5588272f93fa9a9e2b02a45f44 (patch)
tree321203afb9727b655aff900160bb9dffcae383f5
parentc359e8b3653056f3b37da3d1c4d6ff3805d3a401 (diff)
Update proposal to match current job spec
-rw-r--r--contributors/design-proposals/job.md14
1 files 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