Skip to content

Commit

Permalink
api: Add shortName for volumereplication CR
Browse files Browse the repository at this point in the history
With this change we can get volumereplication with small name eg.
'kubectl get vr'

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
  • Loading branch information
iamniting committed May 4, 2021
1 parent 3f68e17 commit b677d23
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/v1alpha1/volumereplication_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ type VolumeReplicationStatus struct {
// +kubebuilder:printcolumn:JSONPath=".spec.replicationState",name=desiredState,type=string
// +kubebuilder:printcolumn:JSONPath=".status.state",name=currentState,type=string
// +kubebuilder:printcolumn:JSONPath=".status.message",name=message,type=string
// +kubebuilder:resource:shortName=vr

// VolumeReplication is the Schema for the volumereplications API
type VolumeReplication struct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ spec:
kind: VolumeReplication
listKind: VolumeReplicationList
plural: volumereplications
shortNames:
- vr
singular: volumereplication
scope: Namespaced
versions:
Expand Down

0 comments on commit b677d23

Please sign in to comment.