Skip to content

Commit

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

Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
  • Loading branch information
iamniting committed May 19, 2021
1 parent bfef28f commit adadc1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion api/v1alpha1/volumereplicationclass_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type VolumeReplicationClassStatus struct {

// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster
// +kubebuilder:resource:scope=Cluster,shortName=vrc

// 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 @@ -13,6 +13,8 @@ spec:
kind: VolumeReplicationClass
listKind: VolumeReplicationClassList
plural: volumereplicationclasses
shortNames:
- vrc
singular: volumereplicationclass
scope: Cluster
versions:
Expand Down

0 comments on commit adadc1c

Please sign in to comment.