From f3bfb4890a8c70ac7e8c8baa1f375a98ca6e8db2 Mon Sep 17 00:00:00 2001 From: Yeh-lei Wu Date: Mon, 1 Apr 2019 21:59:37 +0800 Subject: [PATCH] Add additionalPrintColumns for TidbCluster CRD (#361) Signed-off-by: Aylei --- manifests/crd.yaml | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/manifests/crd.yaml b/manifests/crd.yaml index 52de1732bbe..3573d2268a7 100644 --- a/manifests/crd.yaml +++ b/manifests/crd.yaml @@ -20,6 +20,51 @@ spec: # 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: