apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: # name must match the spec fields below, and be in the form: . name: tidbclusters.pingcap.com spec: # group name to use for REST API: /apis// group: pingcap.com # list of versions supported by this CustomResourceDefinition version: v1alpha1 # either Namespaced or Cluster scope: Namespaced names: # plural name to be used in the URL: /apis/// plural: tidbclusters # singular name to be used as an alias on the CLI and for display singular: tidbcluster # kind is normally the CamelCased singular type. Your resource manifests use this. kind: TidbCluster # shortNames allow shorter string to match your resource on the CLI shortNames: - tc additionalPrinterColumns: - name: PD type: string description: The image for PD cluster JSONPath: .spec.pd.image - name: Storage type: string description: The storage size specified for PD node JSONPath: .spec.pd.requests.storage - name: Ready type: integer description: The ready replicas number of PD cluster JSONPath: .status.pd.statefulSet.readyReplicas - name: Desire type: integer description: The desired replicas number of PD cluster JSONPath: .spec.pd.replicas - name: TiKV type: string description: The image for TiKV cluster JSONPath: .spec.tikv.image - name: Storage type: string description: The storage size specified for TiKV node JSONPath: .spec.tikv.requests.storage - name: Ready type: integer description: The ready replicas number of TiKV cluster JSONPath: .status.tikv.statefulSet.readyReplicas - name: Desire type: integer description: The desired replicas number of TiKV cluster JSONPath: .spec.tikv.replicas - name: TiDB type: string description: The image for TiDB cluster JSONPath: .spec.tidb.image - name: Ready type: integer description: The ready replicas number of TiDB cluster JSONPath: .status.tidb.statefulSet.readyReplicas - name: Desire type: integer description: The desired replicas number of TiDB cluster JSONPath: .spec.tidb.replicas validation: # openAPIV3Schema is the schema for validating custom objects. openAPIV3Schema: properties: spec: properties: pd: properties: limits: properties: cpu: type: string requests: properties: cpu: type: string tikv: properties: limits: properties: cpu: type: string requests: properties: cpu: type: string tidb: properties: limits: properties: cpu: type: string requests: properties: cpu: type: string