
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.4.1
  creationTimestamp: null
  name: dumplings.cloud.pingcap.com
spec:
  group: cloud.pingcap.com
  names:
    kind: Dumpling
    listKind: DumplingList
    plural: dumplings
    singular: dumpling
  scope: Namespaced
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        description: Dumpling is the Schema for the dumplings 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: DumplingSpec defines the desired state of Dumpling
            properties:
              bucketPath:
                description: BucketPath is the target bucket address with path,  use
                  s3 uri
                type: string
              clusterName:
                description: ClusterName is the target cluster name, target cluster
                  must exist in the same namespace as dumpling
                type: string
              options:
                description: Options is the parameters list of dumpling
                items:
                  type: string
                type: array
              password:
                type: string
              region:
                description: region for s3 bucket
                type: string
              s3Accesskey:
                type: string
              s3Secretkey:
                type: string
              tableFilter:
                description: TableFilter means Table filter expression for 'db.table'
                  matching. BR supports this from v4.0.3.
                items:
                  type: string
                type: array
              user:
                description: info of the tidb cluster
                type: string
            required:
            - bucketPath
            - clusterName
            - password
            - s3Accesskey
            - s3Secretkey
            - user
            type: object
          status:
            description: DumplingStatus defines the observed state of Dumpling
            properties:
              backupPath:
                description: BackupPath is the location of the dumpling.
                type: string
              backupSize:
                description: BackupSize is the data size of the backup.
                format: int64
                type: integer
              backupSizeReadable:
                description: BackupSizeReadable is the data size of the backup. the
                  difference with BackupSize is that its format is human readable
                type: string
              message:
                description: Message is the error message of the Dumpling.
                type: string
              phase:
                description: Phase is lifecycle phase of the Dumpling
                enum:
                - Running
                - Failed
                - Succeed
                - CreatingNodeGroup
                - CreatedNodeGroup
                type: string
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
