# Generated by Fabric8 CRDGenerator, manual edits might get overwritten!
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: flinksessionjobs.flink.apache.org
spec:
  group: flink.apache.org
  names:
    kind: FlinkSessionJob
    plural: flinksessionjobs
    shortNames:
    - sessionjob
    singular: flinksessionjob
  scope: Namespaced
  versions:
  - name: v1beta1
    schema:
      openAPIV3Schema:
        properties:
          spec:
            properties:
              deploymentName:
                type: string
              job:
                properties:
                  jarURI:
                    type: string
                  parallelism:
                    type: integer
                  entryClass:
                    type: string
                  args:
                    items:
                      type: string
                    type: array
                  state:
                    enum:
                    - running
                    - suspended
                    type: string
                  savepointTriggerNonce:
                    type: integer
                  initialSavepointPath:
                    type: string
                  upgradeMode:
                    enum:
                    - savepoint
                    - last-state
                    - stateless
                    type: string
                  allowNonRestoredState:
                    type: boolean
                type: object
              restartNonce:
                type: integer
              flinkConfiguration:
                additionalProperties:
                  type: string
                type: object
            type: object
          status:
            properties:
              reconciliationStatus:
                properties:
                  reconciliationTimestamp:
                    type: integer
                  lastReconciledSpec:
                    type: string
                  lastStableSpec:
                    type: string
                  state:
                    enum:
                    - DEPLOYED
                    - UPGRADING
                    - ROLLING_BACK
                    - ROLLED_BACK
                    type: string
                type: object
              jobStatus:
                properties:
                  jobName:
                    type: string
                  jobId:
                    type: string
                  state:
                    type: string
                  startTime:
                    type: string
                  updateTime:
                    type: string
                  savepointInfo:
                    properties:
                      lastSavepoint:
                        properties:
                          timeStamp:
                            type: integer
                          location:
                            type: string
                        type: object
                      triggerId:
                        type: string
                      triggerTimestamp:
                        type: integer
                      savepointHistory:
                        items:
                          properties:
                            timeStamp:
                              type: integer
                            location:
                              type: string
                          type: object
                        type: array
                    type: object
                type: object
              error:
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
