
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.4.1
  creationTimestamp: null
  name: backups.cloud.pingcap.com
spec:
  group: cloud.pingcap.com
  names:
    kind: Backup
    listKind: BackupList
    plural: backups
    singular: backup
  scope: Namespaced
  versions:
  - additionalPrinterColumns:
    - jsonPath: .spec.clusterName
      name: Cluster
      type: string
    - jsonPath: .status.phase
      name: PHASE
      type: string
    - jsonPath: .metadata.creationTimestamp
      name: AGE
      type: date
    name: v1
    schema:
      openAPIV3Schema:
        description: Backup is the Schema for the backups 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: BackupSpec defines the desired state of Backup
            properties:
              clusterName:
                description: ClusterName is the target cluster name, target cluster
                  must exist in the same namespace as backup
                type: string
              commitTS:
                description: CommitTs is the commit ts of the backup, snapshot ts
                  for snapshot backup or start ts for log backup. Format supports
                  TSO or datetime, e.g. '400036290571534337', '2018-05-11 01:42:23'.
                  Default is current timestamp.
                type: string
              logStop:
                description: LogStop indicates that will stop the log backup.
                type: boolean
              logTruncateUntil:
                description: LogTruncateUntil is log backup truncate until timestamp.
                  Format supports TSO or datetime, e.g. '400036290571534337', '2018-05-11
                  01:42:23'.
                type: string
              mode:
                description: Mode is the backup mode, such as snapshot backup or log
                  backup.
                type: string
              options:
                description: Options is the parameters list of br, like --backupts=xxx
                items:
                  type: string
                type: array
              storage:
                description: Storage is the target storage address, use s3 uri. like
                  gs://xxxx
                type: string
            required:
            - clusterName
            type: object
          status:
            description: BackupStatus defines the observed state of Backup
            properties:
              backupPath:
                description: BackupPath is the location of the backup.
                type: string
              backupSize:
                description: BackupSize is the physical storage size taken by the
                  backup assets
                format: int64
                type: integer
              backupTS:
                description: BackupTS is the snapshot timestamp for snapshot backup
                  or start timestamp for log backup
                type: string
              bucketName:
                description: BucketName is the object store path of this backup
                type: string
              fromProvider:
                description: FromProvider encodes the provider specific status of
                  the backup, e.g. target shoot name of the backup
                nullable: true
                type: object
                x-kubernetes-embedded-resource: true
                x-kubernetes-preserve-unknown-fields: true
              logCheckpointTs:
                description: LogCheckpointTs is the ts of log backup process
                type: string
              logTruncateUntil:
                description: LogTruncateUntil is log backup truncate until timestamp
                  which will be the same as Spec.LogTruncateUntil when truncate is
                  complete
                type: string
              phase:
                description: Phase denotes current backup progress
                type: string
            required:
            - phase
            type: object
        required:
        - spec
        type: object
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
