mirror of
https://github.com/TECHNOFAB11/zfs-localpv.git
synced 2025-12-12 06:20:11 +01:00
feat(print): removing unnecessary printer columns
Signed-off-by: Pawan <pawan@mayadata.io>
This commit is contained in:
parent
57ef10cb71
commit
d47ec3ba01
3 changed files with 3 additions and 28 deletions
|
|
@ -36,23 +36,12 @@ spec:
|
||||||
description: Status of the volume
|
description: Status of the volume
|
||||||
name: Status
|
name: Status
|
||||||
type: string
|
type: string
|
||||||
- JSONPath: .spec.volblocksize
|
|
||||||
description: volblocksize of volume
|
|
||||||
name: volblocksize
|
|
||||||
type: string
|
|
||||||
- JSONPath: .spec.recordsize
|
|
||||||
description: recordsize of created zfs dataset
|
|
||||||
name: recordsize
|
|
||||||
type: string
|
|
||||||
- JSONPath: .spec.fsType
|
- JSONPath: .spec.fsType
|
||||||
description: filesystem created on the volume
|
description: filesystem created on the volume
|
||||||
name: Filesystem
|
name: Filesystem
|
||||||
type: string
|
type: string
|
||||||
- JSONPath: .status.creationTime
|
|
||||||
description: Timestamp when the volume has been created.
|
|
||||||
name: CreationTime
|
|
||||||
type: date
|
|
||||||
- JSONPath: .metadata.creationTimestamp
|
- JSONPath: .metadata.creationTimestamp
|
||||||
|
description: Age of the volume
|
||||||
name: Age
|
name: Age
|
||||||
type: date
|
type: date
|
||||||
group: zfs.openebs.io
|
group: zfs.openebs.io
|
||||||
|
|
|
||||||
|
|
@ -57,23 +57,12 @@ spec:
|
||||||
description: Status of the volume
|
description: Status of the volume
|
||||||
name: Status
|
name: Status
|
||||||
type: string
|
type: string
|
||||||
- JSONPath: .spec.volblocksize
|
|
||||||
description: volblocksize of volume
|
|
||||||
name: volblocksize
|
|
||||||
type: string
|
|
||||||
- JSONPath: .spec.recordsize
|
|
||||||
description: recordsize of created zfs dataset
|
|
||||||
name: recordsize
|
|
||||||
type: string
|
|
||||||
- JSONPath: .spec.fsType
|
- JSONPath: .spec.fsType
|
||||||
description: filesystem created on the volume
|
description: filesystem created on the volume
|
||||||
name: Filesystem
|
name: Filesystem
|
||||||
type: string
|
type: string
|
||||||
- JSONPath: .status.creationTime
|
|
||||||
description: Timestamp when the volume has been created.
|
|
||||||
name: CreationTime
|
|
||||||
type: date
|
|
||||||
- JSONPath: .metadata.creationTimestamp
|
- JSONPath: .metadata.creationTimestamp
|
||||||
|
description: Age of the volume
|
||||||
name: Age
|
name: Age
|
||||||
type: date
|
type: date
|
||||||
group: zfs.openebs.io
|
group: zfs.openebs.io
|
||||||
|
|
|
||||||
|
|
@ -31,11 +31,8 @@ import (
|
||||||
// +kubebuilder:printcolumn:name="Node",type=string,JSONPath=`.spec.ownerNodeID`,description="Node where the volume is created"
|
// +kubebuilder:printcolumn:name="Node",type=string,JSONPath=`.spec.ownerNodeID`,description="Node where the volume is created"
|
||||||
// +kubebuilder:printcolumn:name="Size",type=string,JSONPath=`.spec.capacity`,description="Size of the volume"
|
// +kubebuilder:printcolumn:name="Size",type=string,JSONPath=`.spec.capacity`,description="Size of the volume"
|
||||||
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.state`,description="Status of the volume"
|
// +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.state`,description="Status of the volume"
|
||||||
// +kubebuilder:printcolumn:name="volblocksize",type=string,JSONPath=`.spec.volblocksize`,description="volblocksize of volume"
|
|
||||||
// +kubebuilder:printcolumn:name="recordsize",type=string,JSONPath=`.spec.recordsize`,description="recordsize of created zfs dataset"
|
|
||||||
// +kubebuilder:printcolumn:name="Filesystem",type=string,JSONPath=`.spec.fsType`,description="filesystem created on the volume"
|
// +kubebuilder:printcolumn:name="Filesystem",type=string,JSONPath=`.spec.fsType`,description="filesystem created on the volume"
|
||||||
// +kubebuilder:printcolumn:name="CreationTime",type=date,JSONPath=`.status.creationTime`,description="Timestamp when the volume has been created."
|
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`,description="Age of the volume"
|
||||||
// +kubebuilder:printcolumn:name="Age",type=date,JSONPath=`.metadata.creationTimestamp`
|
|
||||||
type ZFSVolume struct {
|
type ZFSVolume struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty"`
|
metav1.ObjectMeta `json:"metadata,omitempty"`
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue