{
  "properties": {
    "apiVersion": {
      "type": "string"
    },
    "kind": {
      "type": "string"
    },
    "metadata": {
      "type": "object"
    },
    "spec": {
      "properties": {
        "cmfRestClassRef": {
          "properties": {
            "name": {
              "minLength": 1,
              "type": "string"
            },
            "namespace": {
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "flinkConfiguration": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "flinkEnvironment": {
          "type": "string"
        },
        "flinkVersion": {
          "type": "string"
        },
        "image": {
          "type": "string"
        },
        "imagePullPolicy": {
          "type": "string"
        },
        "ingress": {
          "properties": {
            "annotations": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "className": {
              "type": "string"
            },
            "labels": {
              "additionalProperties": {
                "type": "string"
              },
              "type": "object"
            },
            "template": {
              "type": "string"
            },
            "tls": {
              "items": {
                "properties": {
                  "hosts": {
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  },
                  "secretName": {
                    "type": "string"
                  }
                },
                "type": "object",
                "additionalProperties": false
              },
              "type": "array"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "job": {
          "properties": {
            "allowNonRestoredState": {
              "type": "boolean"
            },
            "args": {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "checkpointTriggerNonce": {
              "type": "integer"
            },
            "entryClass": {
              "type": "string"
            },
            "initialSavepointPath": {
              "type": "string"
            },
            "jarURI": {
              "type": "string"
            },
            "parallelism": {
              "type": "integer"
            },
            "savepointRedeployNonce": {
              "type": "integer"
            },
            "savepointTriggerNonce": {
              "type": "integer"
            },
            "state": {
              "enum": [
                "running",
                "stopped",
                "suspended"
              ],
              "type": "string"
            },
            "upgradeMode": {
              "enum": [
                "last-state",
                "savepoint",
                "stateless"
              ],
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "jobManager": {
          "properties": {
            "podTemplate": {
              "x-kubernetes-preserve-unknown-fields": true
            },
            "replicas": {
              "type": "integer"
            },
            "resource": {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "string"
                  }
                ],
                "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                "x-kubernetes-int-or-string": true
              },
              "type": "object"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "logConfiguration": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "mode": {
          "enum": [
            "native",
            "standalone"
          ],
          "type": "string"
        },
        "podTemplate": {
          "x-kubernetes-preserve-unknown-fields": true
        },
        "restartNonce": {
          "type": "integer"
        },
        "serviceAccount": {
          "type": "string"
        },
        "taskManager": {
          "properties": {
            "podTemplate": {
              "x-kubernetes-preserve-unknown-fields": true
            },
            "replicas": {
              "type": "integer"
            },
            "resource": {
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "integer"
                  },
                  {
                    "type": "string"
                  }
                ],
                "pattern": "^(\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))(([KMGTPE]i)|[numkMGTPE]|([eE](\\+|-)?(([0-9]+(\\.[0-9]*)?)|(\\.[0-9]+))))?$",
                "x-kubernetes-int-or-string": true
              },
              "type": "object"
            }
          },
          "type": "object",
          "additionalProperties": false
        }
      },
      "required": [
        "flinkEnvironment"
      ],
      "type": "object",
      "additionalProperties": false
    },
    "status": {
      "properties": {
        "cfkInternalState": {
          "type": "string"
        },
        "clusterInfo": {
          "additionalProperties": {
            "type": "string"
          },
          "type": "object"
        },
        "cmfSync": {
          "properties": {
            "errorMessage": {
              "type": "string"
            },
            "lastSyncTime": {
              "type": "string"
            },
            "status": {
              "default": "Unknown",
              "enum": [
                "Unknown",
                "Created",
                "Failed",
                "Deleted"
              ],
              "type": "string"
            }
          },
          "required": [
            "errorMessage",
            "lastSyncTime"
          ],
          "type": "object",
          "additionalProperties": false
        },
        "conditions": {
          "items": {
            "properties": {
              "lastProbeTime": {
                "format": "date-time",
                "type": "string"
              },
              "lastTransitionTime": {
                "format": "date-time",
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "reason": {
                "type": "string"
              },
              "status": {
                "type": "string"
              },
              "type": {
                "type": "string"
              }
            },
            "type": "object",
            "additionalProperties": false
          },
          "type": "array"
        },
        "error": {
          "type": "string"
        },
        "jobManagerDeploymentStatus": {
          "type": "string"
        },
        "jobStatus": {
          "properties": {
            "checkpointInfo": {
              "properties": {
                "formatType": {
                  "type": "string"
                },
                "lastCheckpoint": {
                  "properties": {
                    "formatType": {
                      "type": "string"
                    },
                    "timeStamp": {
                      "type": "integer"
                    },
                    "triggerNonce": {
                      "type": "integer"
                    },
                    "triggerType": {
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "lastPeriodicCheckpointTimestamp": {
                  "type": "integer"
                },
                "triggerId": {
                  "type": "string"
                },
                "triggerTimestamp": {
                  "type": "integer"
                },
                "triggerType": {
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "jobId": {
              "type": "string"
            },
            "jobName": {
              "type": "string"
            },
            "savepointInfo": {
              "properties": {
                "formatType": {
                  "type": "string"
                },
                "lastPeriodicSavepointTimestamp": {
                  "type": "integer"
                },
                "lastSavepoint": {
                  "properties": {
                    "formatType": {
                      "type": "string"
                    },
                    "location": {
                      "type": "string"
                    },
                    "timeStamp": {
                      "type": "integer"
                    },
                    "triggerNonce": {
                      "type": "integer"
                    },
                    "triggerType": {
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "additionalProperties": false
                },
                "savepointHistory": {
                  "items": {
                    "properties": {
                      "formatType": {
                        "type": "string"
                      },
                      "location": {
                        "type": "string"
                      },
                      "timeStamp": {
                        "type": "integer"
                      },
                      "triggerNonce": {
                        "type": "integer"
                      },
                      "triggerType": {
                        "type": "string"
                      }
                    },
                    "type": "object",
                    "additionalProperties": false
                  },
                  "type": "array"
                },
                "triggerId": {
                  "type": "string"
                },
                "triggerTimestamp": {
                  "type": "integer"
                },
                "triggerType": {
                  "type": "string"
                }
              },
              "type": "object",
              "additionalProperties": false
            },
            "startTime": {
              "type": "string"
            },
            "state": {
              "type": "string"
            },
            "updateTime": {
              "type": "string"
            },
            "upgradeSavepointPath": {
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "lifecycleState": {
          "type": "string"
        },
        "observedGeneration": {
          "format": "int64",
          "type": "integer"
        },
        "reconciliationStatus": {
          "properties": {
            "lastReconciledSpec": {
              "type": "string"
            },
            "lastStableSpec": {
              "type": "string"
            },
            "reconciliationTimestamp": {
              "type": "integer"
            },
            "state": {
              "type": "string"
            }
          },
          "type": "object",
          "additionalProperties": false
        },
        "taskManager": {
          "properties": {
            "labelSelector": {
              "type": "string"
            },
            "replicas": {
              "type": "integer"
            }
          },
          "type": "object",
          "additionalProperties": false
        }
      },
      "type": "object",
      "additionalProperties": false
    }
  },
  "type": "object"
}
