Skip to content

Commit 827bfa5

Browse files
committed
Short names for RabbitmqCluster resource
Provides short names 'rmq' and 'rmqc' as short version of rabbitmqcluster. The short hand 'rc' is already taken by native object ReplicationController.
1 parent 83d50c7 commit 827bfa5

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

api/v1beta1/rabbitmqcluster_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const (
3737
// +kubebuilder:subresource:status
3838
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"
3939
// +kubebuilder:printcolumn:name="Status",type="string",JSONPath=".status.clusterStatus"
40+
// +kubebuilder:resource:shortName={"rmq","rmqc"}
4041
type RabbitmqCluster struct {
4142
metav1.TypeMeta `json:",inline"`
4243
metav1.ObjectMeta `json:"metadata,omitempty"`

config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ spec:
1919
kind: RabbitmqCluster
2020
listKind: RabbitmqClusterList
2121
plural: rabbitmqclusters
22+
shortNames:
23+
- rmq
24+
- rmqc
2225
singular: rabbitmqcluster
2326
scope: Namespaced
2427
versions:

0 commit comments

Comments
 (0)