{
  "properties": {
    "spec": {
      "properties": {
        "deploymentName": {
          "type": "string"
        },
        "flinkConfiguration": {
          "x-kubernetes-preserve-unknown-fields": true
        },
        "job": {
          "properties": {
            "allowNonRestoredState": {
              "type": "boolean"
            },
            "args": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "autoscalerResetNonce": {
              "type": "integer"
            },
            "checkpointTriggerNonce": {
              "type": "integer"
            },
            "entryClass": {
              "type": "string"
            },
            "initialSavepointPath": {
              "type": "string"
            },
            "jarURI": {
              "type": "string"
            },
            "parallelism": {
              "type": "integer"
            },
            "savepointRedeployNonce": {
              "type": "integer"
            },
            "savepointTriggerNonce": {
              "type": "integer"
            },
            "state": {
              "enum": [
                "running",
                "suspended"
              ],
              "type": "string"
            },
            "upgradeMode": {
              "enum": [
                "last-state",
                "savepoint",
                "stateless"
              ],
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "restartNonce": {
          "type": "integer"
        }
      },
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "properties": {
        "error": {
          "type": "string"
        },
        "jobStatus": {
          "properties": {
            "checkpointInfo": {
              "properties": {
                "formatType": {
                  "enum": [
                    "FULL",
                    "INCREMENTAL",
                    "UNKNOWN"
                  ],
                  "type": "string"
                },
                "lastCheckpoint": {
                  "properties": {
                    "formatType": {
                      "enum": [
                        "FULL",
                        "INCREMENTAL",
                        "UNKNOWN"
                      ],
                      "type": "string"
                    },
                    "timeStamp": {
                      "type": "integer"
                    },
                    "triggerNonce": {
                      "type": "integer"
                    },
                    "triggerType": {
                      "enum": [
                        "MANUAL",
                        "PERIODIC",
                        "UNKNOWN",
                        "UPGRADE"
                      ],
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "lastPeriodicCheckpointTimestamp": {
                  "type": "integer"
                },
                "triggerId": {
                  "type": "string"
                },
                "triggerTimestamp": {
                  "type": "integer"
                },
                "triggerType": {
                  "enum": [
                    "MANUAL",
                    "PERIODIC",
                    "UNKNOWN",
                    "UPGRADE"
                  ],
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "jobId": {
              "type": "string"
            },
            "jobName": {
              "type": "string"
            },
            "savepointInfo": {
              "properties": {
                "formatType": {
                  "enum": [
                    "CANONICAL",
                    "NATIVE",
                    "UNKNOWN"
                  ],
                  "type": "string"
                },
                "lastPeriodicSavepointTimestamp": {
                  "type": "integer"
                },
                "lastSavepoint": {
                  "properties": {
                    "formatType": {
                      "enum": [
                        "CANONICAL",
                        "NATIVE",
                        "UNKNOWN"
                      ],
                      "type": "string"
                    },
                    "location": {
                      "type": "string"
                    },
                    "timeStamp": {
                      "type": "integer"
                    },
                    "triggerNonce": {
                      "type": "integer"
                    },
                    "triggerType": {
                      "enum": [
                        "MANUAL",
                        "PERIODIC",
                        "UNKNOWN",
                        "UPGRADE"
                      ],
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "savepointHistory": {
                  "items": {
                    "properties": {
                      "formatType": {
                        "enum": [
                          "CANONICAL",
                          "NATIVE",
                          "UNKNOWN"
                        ],
                        "type": "string"
                      },
                      "location": {
                        "type": "string"
                      },
                      "timeStamp": {
                        "type": "integer"
                      },
                      "triggerNonce": {
                        "type": "integer"
                      },
                      "triggerType": {
                        "enum": [
                          "MANUAL",
                          "PERIODIC",
                          "UNKNOWN",
                          "UPGRADE"
                        ],
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "type": "array"
                },
                "triggerId": {
                  "type": "string"
                },
                "triggerTimestamp": {
                  "type": "integer"
                },
                "triggerType": {
                  "enum": [
                    "MANUAL",
                    "PERIODIC",
                    "UNKNOWN",
                    "UPGRADE"
                  ],
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "startTime": {
              "type": "string"
            },
            "state": {
              "enum": [
                "CANCELED",
                "CANCELLING",
                "CREATED",
                "FAILED",
                "FAILING",
                "FINISHED",
                "INITIALIZING",
                "RECONCILING",
                "RESTARTING",
                "RUNNING",
                "SUSPENDED"
              ],
              "type": "string"
            },
            "updateTime": {
              "type": "string"
            },
            "upgradeSavepointPath": {
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "lifecycleState": {
          "enum": [
            "CREATED",
            "DELETED",
            "DELETING",
            "DEPLOYED",
            "FAILED",
            "ROLLED_BACK",
            "ROLLING_BACK",
            "STABLE",
            "SUSPENDED",
            "UPGRADING"
          ],
          "type": "string"
        },
        "observedGeneration": {
          "type": "integer"
        },
        "reconciliationStatus": {
          "properties": {
            "lastReconciledSpec": {
              "type": "string"
            },
            "lastStableSpec": {
              "type": "string"
            },
            "reconciliationTimestamp": {
              "type": "integer"
            },
            "state": {
              "enum": [
                "DEPLOYED",
                "ROLLED_BACK",
                "ROLLING_BACK",
                "UPGRADING"
              ],
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
