# 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: v1alpha1
    schema:
      openAPIV3Schema:
        properties:
          spec:
            properties:
              clusterId:
                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
                type: object
            type: object
          status:
            properties:
              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
                    type: object
                type: object
              reconciliationStatus:
                properties:
                  success:
                    type: boolean
                  error:
                    type: string
                  lastReconciledSpec:
                    properties:
                      clusterId:
                        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
                        type: object
                    type: object
                type: object
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
