From 9805e2b67f132b6a283c81329ebeac5f6156c001 Mon Sep 17 00:00:00 2001 From: Scott Kidder Date: Thu, 28 Apr 2022 16:03:36 -0700 Subject: [PATCH 1/2] Add status object schema to CRD. --- deploy/crd.yaml | 96 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) diff --git a/deploy/crd.yaml b/deploy/crd.yaml index 75cbf276..eaf1486d 100644 --- a/deploy/crd.yaml +++ b/deploy/crd.yaml @@ -25,6 +25,102 @@ spec: openAPIV3Schema: type: object properties: + status: + type: object + properties: + phase: + type: string + reason: + type: string + failedDeployHash: + type: string + rollbackHash: + type: string + deployHash: + type: string + retryCount: + type: integer + startedAt: + type: string + lastUpdatedAt: + type: string + savepointTriggerId: + type: string + savepointPath: + type: string + clusterStatus: + type: object + properties: + clusterOverviewURL: + type: string + numberOfTaskManagers: + type: integer + healthyTaskManagers: + type: integer + numberOfTaskSlots: + type: integer + availableTaskSlots: + type: integer + health: + type: string + jobStatus: + type: object + properties: + jobOverviewURL: + type: string + jobID: + type: string + health: + type: string + state: + type: string + jarName: + type: string + parallelism: + type: integer + entryClass: + type: string + programArgs: + type: string + allowNonRestoredState: + type: boolean + startTime: + type: string + jobRestartCount: + type: integer + completedCheckpointCount: + type: integer + failedCheckpointCount: + type: integer + restorePath: + type: string + restoreTime: + type: string + lastFailingTime: + type: string + lastCheckpoint: + type: string + lastCheckpointTime: + type: string + runningTasks: + type: integer + totalTasks: + type: integer + lastSeenError: + type: object + properties: + appError: + type: string + method: + type: string + errorCode: + type: string + isRetryable: + type: boolean + isFailFast: + type: boolean + maxRetries: + type: integer spec: type: object properties: From 515763d4ee5b70736be8736bc6c6408cb1241df7 Mon Sep 17 00:00:00 2001 From: Scott Kidder Date: Mon, 25 Jul 2022 15:32:13 -0700 Subject: [PATCH 2/2] Allow lastFailingTime and lastCheckpointTime to be null. --- deploy/crd.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/deploy/crd.yaml b/deploy/crd.yaml index eaf1486d..be33f56b 100644 --- a/deploy/crd.yaml +++ b/deploy/crd.yaml @@ -98,10 +98,12 @@ spec: type: string lastFailingTime: type: string + nullable: true lastCheckpoint: type: string lastCheckpointTime: type: string + nullable: true runningTasks: type: integer totalTasks: