Skip to content

Commit 983d767

Browse files
authored
Merge pull request #345 from rabbitmq/short-names
Short name 'rmq' for RabbitmqCluster resource
2 parents 6ad5541 + 2e8ceeb commit 983d767

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-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"}
4041
type RabbitmqCluster struct {
4142
metav1.TypeMeta `json:",inline"`
4243
metav1.ObjectMeta `json:"metadata,omitempty"`

config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ spec:
1919
kind: RabbitmqCluster
2020
listKind: RabbitmqClusterList
2121
plural: rabbitmqclusters
22+
shortNames:
23+
- rmq
2224
singular: rabbitmqcluster
2325
scope: Namespaced
2426
versions:

0 commit comments

Comments
 (0)