################################################################################
#  Licensed to the Apache Software Foundation (ASF) under one
#  or more contributor license agreements.  See the NOTICE file
#  distributed with this work for additional information
#  regarding copyright ownership.  The ASF licenses this file
#  to you under the Apache License, Version 2.0 (the
#  "License"); you may not use this file except in compliance
#  with the License.  You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
#  Unless required by applicable law or agreed to in writing, software
#  distributed under the License is distributed on an "AS IS" BASIS,
#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
#  See the License for the specific language governing permissions and
# limitations under the License.
################################################################################
# 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:
  - additionalPrinterColumns:
    - description: Last observed state of the job.
      jsonPath: .status.jobStatus.state
      name: Job Status
      priority: 0
      type: string
    - description: "Lifecycle state of the Flink resource (including being rolled\
        \ back, failed etc.)."
      jsonPath: .status.lifecycleState
      name: Lifecycle State
      priority: 0
      type: string
    name: v1beta1
    schema:
      openAPIV3Schema:
        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
              restartNonce:
                type: integer
            type: object
          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
                      lastPeriodicCheckpointTimestamp:
                        type: integer
                      triggerId:
                        type: string
                      triggerTimestamp:
                        type: integer
                      triggerType:
                        enum:
                        - MANUAL
                        - PERIODIC
                        - UNKNOWN
                        - UPGRADE
                        type: string
                    type: object
                  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
                      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
                        type: array
                      triggerId:
                        type: string
                      triggerTimestamp:
                        type: integer
                      triggerType:
                        enum:
                        - MANUAL
                        - PERIODIC
                        - UNKNOWN
                        - UPGRADE
                        type: string
                    type: object
                  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
              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
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
