---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.16.3
  name: configrevisions.cloud.pingcap.com
spec:
  conversion:
    strategy: None
  group: cloud.pingcap.com
  names:
    kind: ConfigRevision
    listKind: ConfigRevisionList
    plural: configrevisions
    singular: configrevision
  scope: Cluster
  versions:
  - name: v1
    schema:
      openAPIV3Schema:
        description: ConfigRevision is the Schema for the configrevisions 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: ConfigRevisionSpec defines the desired state of ConfigRevision
            properties:
              backup:
                description: Backup contains all configurations about backup job
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              lightning:
                description: Lightning contains all configurations about a lightning
                  job
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              pd:
                description: PD contains all default and overlay configurations of
                  pd server
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              restore:
                description: Restore contains all configurations about restore job
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              ticdc:
                description: TiCDC contains all configurations about a ticdc cluster
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              tidb:
                description: TiDB contains all default and overlay configurations
                  of tidb server
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              tiflash:
                description: TiFlash contains all default and overlay configurations
                  of tiflash server
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              tiflashLearner:
                description: TiFlashLearner contains all default and overlay configurations
                  of tiflash learner
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              tiflowExecutor:
                description: TiflowExecutor contains all configurations about the
                  tiflow exector
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              tiflowMaster:
                description: TiflowMater contains all configurations about the tiflow
                  master
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              tikv:
                description: TiKV contains all default and overlay configurations
                  of tikv server
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              tiproxy:
                description: TiProxy contains all default and overlay configurations
                  of tiproxy server
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                type: object
              version:
                description: TiDB cluster version
                type: string
            required:
            - version
            type: object
          status:
            description: ConfigRevisionStatus defines the observed state of ConfigRevision
            type: object
        type: object
    served: true
    storage: true
    subresources:
      status: {}
