Introduce .status.lastSuccessfulTime field for CronJob

This commit is contained in:
Maciej Szulik 2021-02-10 12:49:30 +01:00
parent fe15e4dae8
commit 22b3a9cd21
No known key found for this signature in database
GPG Key ID: F15E55D276FA84C4
2 changed files with 8 additions and 0 deletions

View File

@ -364,4 +364,8 @@ type CronJobStatus struct {
// Information when was the last time the job was successfully scheduled.
// +optional
LastScheduleTime *metav1.Time
// Information when was the last time the job successfully completed.
// +optional
LastSuccessfulTime *metav1.Time
}

View File

@ -162,4 +162,8 @@ type CronJobStatus struct {
// Information when was the last time the job was successfully scheduled.
// +optional
LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,4,opt,name=lastScheduleTime"`
// Information when was the last time the job successfully completed.
// +optional
LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime,omitempty" protobuf:"bytes,5,opt,name=lastSuccessfulTime"`
}