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

feat(CRD): add custom column for openebs CRD's #925

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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
60 changes: 60 additions & 0 deletions pkg/install/v1alpha1/openebs_crds.go
Expand Up @@ -134,6 +134,30 @@ spec:
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- csp
additionalPrinterColumns:
- JSONPath: .status.capacity.used
name: Allocated
description: The amount of storage space within the pool that has been physically allocated
type: string
- JSONPath: .status.capacity.free
name: Free
description: The amount of free space available in the pool
type: string
- JSONPath: .status.capacity.total
name: Capacity
description: Total size of the storage pool
type: string
- JSONPath: .status.phase
name: Status
description: Identifies the current health of the pool
type: string
- JSONPath: .spec.poolSpec.poolType
name: Type
description: The type of the storage pool
type: string
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
Expand All @@ -157,6 +181,14 @@ spec:
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- cstorvolume
additionalPrinterColumns:
- JSONPath: .status.phase
name: Status
description: Identifies the current health of the target
type: string
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
Expand All @@ -180,6 +212,22 @@ spec:
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- cvr
additionalPrinterColumns:
- JSONPath: .status.capacity.used
name: Used
description: The amount of space that is "logically" consumed by this dataset
type: string
- JSONPath: .status.capacity.totalAllocated
name: Allocated
description: The amount of disk space consumed by a dataset and all its descendents
type: string
- JSONPath: .status.phase
name: Status
description: Identifies the current health of the replicas
type: string
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
---
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
Expand All @@ -203,6 +251,18 @@ spec:
# shortNames allow shorter string to match your resource on the CLI
shortNames:
- disk
additionalPrinterColumns:
- JSONPath: .spec.capacity.storage
name: Size
description: Identifies the disk size(in Bytes)
type: string
- JSONPath: .status.state
name: Status
description: Identifies the current health of the disk
type: string
- JSONPath: .metadata.creationTimestamp
name: Age
type: date
---
`

Expand Down