
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  annotations:
    controller-gen.kubebuilder.io/version: v0.7.0
  creationTimestamp: null
  name: clusterconfigs.ops.tidbcloud.com
spec:
  group: ops.tidbcloud.com
  names:
    kind: ClusterConfig
    listKind: ClusterConfigList
    plural: clusterconfigs
    singular: clusterconfig
  scope: Cluster
  versions:
  - name: v1alpha1
    schema:
      openAPIV3Schema:
        description: ClusterConfig is the Schema for the clusterconfigs 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: ClusterConfigSpec defines the desired state of ClusterConfig
            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
                  overlays:
                    description: Overlays are the override configurations of component
                    items:
                      properties:
                        config:
                          description: Config is the override configurations
                          type: string
                        instanceType:
                          description: InstanceType means only use overlay configurations
                            when instance type matched
                          type: string
                      type: object
                    type: array
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                required:
                - baseImage
                - config
                type: object
              configMeta:
                description: ConfigMeta contains metadata information of configurations
                properties:
                  configVersion:
                    description: ConfigVersion is configuration version, version will
                      auto-increment to aviod old version overrides new version configuration
                    format: int64
                    type: integer
                  gitCommitID:
                    description: GitCommitID is git commit ID of cluster configuration
                    type: string
                required:
                - configVersion
                - gitCommitID
                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
                  overlays:
                    description: Overlays are the override configurations of component
                    items:
                      properties:
                        config:
                          description: Config is the override configurations
                          type: string
                        instanceType:
                          description: InstanceType means only use overlay configurations
                            when instance type matched
                          type: string
                      type: object
                    type: array
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                required:
                - baseImage
                - config
                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
                  overlays:
                    description: Overlays are the override configurations of component
                    items:
                      properties:
                        config:
                          description: Config is the override configurations
                          type: string
                        instanceType:
                          description: InstanceType means only use overlay configurations
                            when instance type matched
                          type: string
                      type: object
                    type: array
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                required:
                - baseImage
                - config
                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
                  overlays:
                    description: Overlays are the override configurations of component
                    items:
                      properties:
                        config:
                          description: Config is the override configurations
                          type: string
                        instanceType:
                          description: InstanceType means only use overlay configurations
                            when instance type matched
                          type: string
                      type: object
                    type: array
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                required:
                - baseImage
                - config
                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
                  overlays:
                    description: Overlays are the override configurations of component
                    items:
                      properties:
                        config:
                          description: Config is the override configurations
                          type: string
                        instanceType:
                          description: InstanceType means only use overlay configurations
                            when instance type matched
                          type: string
                      type: object
                    type: array
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                required:
                - baseImage
                - config
                type: object
              tiflashLearner:
                description: TiFlashLearenr contains all default and overlay configurations
                  of tiflash learner https://docs.pingcap.com/tidb/dev/tiflash-configuration#configure-the-tiflash-learnertoml-file
                properties:
                  baseImage:
                    description: BaseImage of the component
                    type: string
                  config:
                    description: Config is the default configuration of component
                    type: string
                  overlays:
                    description: Overlays are the override configurations of component
                    items:
                      properties:
                        config:
                          description: Config is the override configurations
                          type: string
                        instanceType:
                          description: InstanceType means only use overlay configurations
                            when instance type matched
                          type: string
                      type: object
                    type: array
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                required:
                - baseImage
                - config
                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
                  overlays:
                    description: Overlays are the override configurations of component
                    items:
                      properties:
                        config:
                          description: Config is the override configurations
                          type: string
                        instanceType:
                          description: InstanceType means only use overlay configurations
                            when instance type matched
                          type: string
                      type: object
                    type: array
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                required:
                - baseImage
                - config
                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
                  overlays:
                    description: Overlays are the override configurations of component
                    items:
                      properties:
                        config:
                          description: Config is the override configurations
                          type: string
                        instanceType:
                          description: InstanceType means only use overlay configurations
                            when instance type matched
                          type: string
                      type: object
                    type: array
                  tag:
                    description: Tag is component image tag, if not specipy, will
                      use global version value.
                    type: string
                required:
                - baseImage
                - config
                type: object
              updatePolicy:
                type: string
              version:
                description: TiDB cluster version
                type: string
            required:
            - version
            type: object
          status:
            description: ClusterConfigStatus defines the observed state of ClusterConfig
            type: object
        type: object
    served: true
    storage: true
status:
  acceptedNames:
    kind: ""
    plural: ""
  conditions: []
  storedVersions: []
