Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add additionalPrintColumns for TidbCluster CRD #361

Merged
merged 1 commit into from
Apr 1, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions manifests/crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Normally this would be "Desired".

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:
Expand Down