Adds additional documentation for job status

This commit is contained in:
Somtochi Onyekwere
2020-02-07 09:32:35 +01:00
parent c70e3e93bd
commit 49751e33e9
5 changed files with 10 additions and 4 deletions

View File

@@ -155,6 +155,7 @@ type JobSpec struct {
type JobStatus struct {
// The latest available observations of an object's current state.
// When a job fails, one of the conditions will have type == "Failed".
// +optional
Conditions []JobCondition
@@ -167,6 +168,7 @@ type JobStatus struct {
// Represents time when the job was completed. It is not guaranteed to
// be set in happens-before order across separate operations.
// It is represented in RFC3339 form and is in UTC.
// The completion time is only set when the job finishes successfully.
// +optional
CompletionTime *metav1.Time