
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.4.1
  creationTimestamp: null
  name: restores.cloud.pingcap.com
spec:
  group: cloud.pingcap.com
  names:
    kind: Restore
    listKind: RestoreList
    plural: restores
    singular: restore
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - jsonPath: .spec.clusterName
      name: Cluster
      type: string
    - jsonPath: .spec.from.backup
      name: From
      type: string
    - jsonPath: .status.phase
      name: PHASE
      type: string
    - jsonPath: .metadata.creationTimestamp
      name: AGE
      type: date
    name: v1
    schema:
      openAPIV3Schema:
        description: Restore is the Schema for the restores API
        properties:
          apiVersion:
            description: 'APIVersion defines the versioned schema of this representation
              of an object. Servers should convert recognized schemas to the latest
              internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
            type: string
          kind:
            description: 'Kind is a string value representing the REST resource this
              object represents. Servers may infer this from the endpoint the client
              submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
            type: string
          metadata:
            type: object
          spec:
            description: RestoreSpec defines the desired state of Restore
            properties:
              clusterName:
                description: ClusterName specifies the name of the target cluster
                  where data is restored to, the cluster must exist in the same namespace
                  with Restore
                type: string
              from:
                description: From specified where the backup data locates
                properties:
                  PiTRRestoredTS:
                    description: PiTRRestoredTS is the PiTR restored ts. it is used
                      when LogBackup is specified
                    type: string
                  backup:
                    description: Backup is the name of the target Backup object, if
                      this field is specified, the backup data will be retrieved from
                      the Backup job. The Backup must exist in the same namespace
                      if specified.
                    type: string
                  logBackup:
                    description: LogBackup represents to execute PiTR it is the name
                      of Backup object with Log mode its usage is same as Backup field
                    type: string
                required:
                - backup
                type: object
            required:
            - clusterName
            - from
            type: object
          status:
            description: RestoreStatus defines the observed state of Restore
            properties:
              phase:
                description: Phase denotes the current restore progress
                type: string
              progresses:
                items:
                  properties:
                    lastTransitionTime:
                      description: LastTransitionTime is the update time
                      format: date-time
                      nullable: true
                      type: string
                    progress:
                      description: Progress is the restore progress percentage value
                      format: int32
                      type: integer
                    step:
                      description: Step is the step name of progress
                      type: string
                  type: object
                type: array
            required:
            - phase
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
