Skip to content

Commit

Permalink
api: Add printcolumn for volumereplicationclass CR
Browse files Browse the repository at this point in the history
This will print columns while doing 'kubectl get vrc'

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
  • Loading branch information
iamniting authored and Madhu-1 committed May 19, 2021
1 parent 5b3bb7c commit 4a9f87e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions api/v1alpha1/volumereplicationclass_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ type VolumeReplicationClassStatus struct {
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,shortName=vrc
// +kubebuilder:printcolumn:JSONPath=".spec.provisioner",name=provisioner,type=string

// VolumeReplicationClass is the Schema for the volumereplicationclasses API
type VolumeReplicationClass struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ spec:
singular: volumereplicationclass
scope: Cluster
versions:
- name: v1alpha1
- additionalPrinterColumns:
- jsonPath: .spec.provisioner
name: provisioner
type: string
name: v1alpha1
schema:
openAPIV3Schema:
description: VolumeReplicationClass is the Schema for the volumereplicationclasses
Expand Down

0 comments on commit 4a9f87e

Please sign in to comment.