From 86a2e129f2fea53fecec05f301b39e2d5a266889 Mon Sep 17 00:00:00 2001 From: Chunyi Lyu Date: Wed, 9 Mar 2022 16:38:04 +0000 Subject: [PATCH] Add rmq cluster to 'rabbitmq' category --- api/v1beta1/rabbitmqcluster_types.go | 2 +- config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml | 3 ++- config/rbac/role.yaml | 1 - 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/v1beta1/rabbitmqcluster_types.go b/api/v1beta1/rabbitmqcluster_types.go index 94b1616fa..f0bf4679b 100644 --- a/api/v1beta1/rabbitmqcluster_types.go +++ b/api/v1beta1/rabbitmqcluster_types.go @@ -25,7 +25,7 @@ import ( // +kubebuilder:printcolumn:name="AllReplicasReady",type="string",JSONPath=".status.conditions[?(@.type == 'AllReplicasReady')].status" // +kubebuilder:printcolumn:name="ReconcileSuccess",type="string",JSONPath=".status.conditions[?(@.type == 'ReconcileSuccess')].status" // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" -// +kubebuilder:resource:shortName={"rmq"},categories=all +// +kubebuilder:resource:shortName={"rmq"},categories=all;rabbitmq // RabbitmqCluster is the Schema for the RabbitmqCluster API. Each instance of this object // corresponds to a single RabbitMQ cluster. type RabbitmqCluster struct { diff --git a/config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml b/config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml index f837a797b..a93b6c110 100644 --- a/config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml +++ b/config/crd/bases/rabbitmq.com_rabbitmqclusters.yaml @@ -10,7 +10,7 @@ apiVersion: apiextensions.k8s.io/v1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.7.0 + controller-gen.kubebuilder.io/version: v0.8.0 creationTimestamp: null name: rabbitmqclusters.rabbitmq.com spec: @@ -18,6 +18,7 @@ spec: names: categories: - all + - rabbitmq kind: RabbitmqCluster listKind: RabbitmqClusterList plural: rabbitmqclusters diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index 4912a533f..20f3608fa 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -6,7 +6,6 @@ # # This product may include a number of subcomponents with separate copyright notices and license terms. Your use of these subcomponents is subject to the terms and conditions of the subcomponent's license, as noted in the LICENSE file. - --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole