################################################################################
#  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: flinkstatesnapshots.flink.apache.org
spec:
  group: flink.apache.org
  names:
    kind: FlinkStateSnapshot
    plural: flinkstatesnapshots
    shortNames:
    - flinksnp
    singular: flinkstatesnapshot
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - description: Final path of the snapshot.
      jsonPath: .status.path
      name: Path
      priority: 0
      type: string
    - description: Timestamp when the snapshot was last created/failed.
      jsonPath: .status.resultTimestamp
      name: Result Timestamp
      priority: 0
      type: string
    - description: Current state of the snapshot.
      jsonPath: .status.state
      name: Snapshot State
      priority: 0
      type: string
    name: v1beta1
    schema:
      openAPIV3Schema:
        properties:
          spec:
            properties:
              backoffLimit:
                type: integer
              checkpoint:
                type: object
              jobReference:
                properties:
                  kind:
                    enum:
                    - FlinkDeployment
                    - FlinkSessionJob
                    type: string
                  name:
                    type: string
                type: object
              savepoint:
                properties:
                  alreadyExists:
                    type: boolean
                  disposeOnDelete:
                    type: boolean
                  formatType:
                    enum:
                    - CANONICAL
                    - NATIVE
                    - UNKNOWN
                    type: string
                  path:
                    type: string
                type: object
            type: object
          status:
            properties:
              error:
                type: string
              failures:
                type: integer
              path:
                type: string
              resultTimestamp:
                type: string
              state:
                enum:
                - ABANDONED
                - COMPLETED
                - FAILED
                - IN_PROGRESS
                - TRIGGER_PENDING
                type: string
              triggerId:
                type: string
              triggerTimestamp:
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
