Marked time field in status nullable (#769)

This commit is contained in:
Yinan Li 2020-01-13 16:17:19 -08:00 committed by GitHub
parent f610b1d4cf
commit 5a1e3eaddf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 28 deletions

View File

@ -57,26 +57,14 @@ spec:
type: object
deps:
properties:
downloadTimeout:
format: int32
minimum: 1
type: integer
files:
items:
type: string
type: array
filesDownloadDir:
type: string
jars:
items:
type: string
type: array
jarsDownloadDir:
type: string
maxSimultaneousDownloads:
format: int32
minimum: 1
type: integer
pyFiles:
items:
type: string
@ -2908,8 +2896,6 @@ spec:
items:
type: string
type: array
initContainerImage:
type: string
mainApplicationFile:
type: string
mainClass:
@ -3577,11 +3563,13 @@ spec:
properties:
lastRun:
format: date-time
nullable: true
type: string
lastRunName:
type: string
nextRun:
format: date-time
nullable: true
type: string
pastFailedRunNames:
items:

View File

@ -43,26 +43,14 @@ spec:
type: object
deps:
properties:
downloadTimeout:
format: int32
minimum: 1
type: integer
files:
items:
type: string
type: array
filesDownloadDir:
type: string
jars:
items:
type: string
type: array
jarsDownloadDir:
type: string
maxSimultaneousDownloads:
format: int32
minimum: 1
type: integer
pyFiles:
items:
type: string
@ -2894,8 +2882,6 @@ spec:
items:
type: string
type: array
initContainerImage:
type: string
mainApplicationFile:
type: string
mainClass:
@ -3591,6 +3577,7 @@ spec:
type: object
lastSubmissionAttemptTime:
format: date-time
nullable: true
type: string
sparkApplicationId:
type: string
@ -3601,6 +3588,7 @@ spec:
type: string
terminationTime:
format: date-time
nullable: true
type: string
required:
- driverInfo

View File

@ -136,8 +136,10 @@ const (
type ScheduledSparkApplicationStatus struct {
// LastRun is the time when the last run of the application started.
// +nullable
LastRun metav1.Time `json:"lastRun,omitempty"`
// NextRun is the time when the next run of the application will start.
// +nullable
NextRun metav1.Time `json:"nextRun,omitempty"`
// LastRunName is the name of the SparkApplication for the most recent run of the application.
LastRunName string `json:"lastRunName,omitempty"`
@ -326,8 +328,10 @@ type SparkApplicationStatus struct {
// SubmissionID is a unique ID of the current submission of the application.
SubmissionID string `json:"submissionID,omitempty"`
// LastSubmissionAttemptTime is the time for the last application submission attempt.
// +nullable
LastSubmissionAttemptTime metav1.Time `json:"lastSubmissionAttemptTime,omitempty"`
// CompletionTime is the time when the application runs to completion if it does.
// +nullable
TerminationTime metav1.Time `json:"terminationTime,omitempty"`
// DriverInfo has information about the driver.
DriverInfo DriverInfo `json:"driverInfo"`