From 7063274e0c2aca800412d2bf77ab9a3ed719673a Mon Sep 17 00:00:00 2001 From: Chunyi Lyu Date: Tue, 27 Apr 2021 17:29:37 +0100 Subject: [PATCH 1/3] Bump API version to v1beta1 --- Makefile | 2 +- PROJECT | 16 +- api/{v1alpha2 => v1beta1}/binding_types.go | 2 +- .../binding_types_test.go | 2 +- api/{v1alpha2 => v1beta1}/binding_webhook.go | 4 +- .../binding_webhook_test.go | 2 +- api/{v1alpha2 => v1beta1}/conditions.go | 2 +- api/{v1alpha2 => v1beta1}/conditions_test.go | 2 +- api/{v1alpha2 => v1beta1}/exchange_types.go | 2 +- .../exchange_types_test.go | 2 +- api/{v1alpha2 => v1beta1}/exchange_webhook.go | 4 +- .../exchange_webhook_test.go | 2 +- .../groupversion_info.go | 6 +- api/{v1alpha2 => v1beta1}/permission_types.go | 2 +- .../permission_types_test.go | 2 +- .../permission_webhook.go | 4 +- .../permission_webhook_test.go | 2 +- api/{v1alpha2 => v1beta1}/policy_types.go | 2 +- .../policy_types_test.go | 2 +- api/{v1alpha2 => v1beta1}/policy_webhook.go | 4 +- .../policy_webhook_test.go | 2 +- api/{v1alpha2 => v1beta1}/queue_types.go | 2 +- api/{v1alpha2 => v1beta1}/queue_types_test.go | 2 +- api/{v1alpha2 => v1beta1}/queue_webhook.go | 4 +- .../queue_webhook_test.go | 2 +- .../schemareplication_types.go | 2 +- .../schemareplication_types_test.go | 2 +- .../schemareplication_webhook.go | 4 +- .../schemareplication_webhook_test.go | 2 +- api/{v1alpha2 => v1beta1}/suite_test.go | 4 +- api/{v1alpha2 => v1beta1}/user_types.go | 2 +- api/{v1alpha2 => v1beta1}/user_types_test.go | 2 +- api/{v1alpha2 => v1beta1}/user_webhook.go | 4 +- .../user_webhook_test.go | 2 +- api/{v1alpha2 => v1beta1}/vhost_types.go | 2 +- api/{v1alpha2 => v1beta1}/vhost_types_test.go | 2 +- api/{v1alpha2 => v1beta1}/vhost_webhook.go | 4 +- .../vhost_webhook_test.go | 2 +- .../zz_generated.deepcopy.go | 2 +- config/crd/bases/rabbitmq.com_bindings.yaml | 2 +- config/crd/bases/rabbitmq.com_exchanges.yaml | 2 +- .../crd/bases/rabbitmq.com_permissions.yaml | 2 +- config/crd/bases/rabbitmq.com_policies.yaml | 2 +- config/crd/bases/rabbitmq.com_queues.yaml | 2 +- .../rabbitmq.com_schemareplications.yaml | 2 +- config/crd/bases/rabbitmq.com_users.yaml | 2 +- config/crd/bases/rabbitmq.com_vhosts.yaml | 2 +- config/webhook/manifests.yaml | 32 +- controllers/binding_controller.go | 2 +- controllers/binding_controller_test.go | 2 +- controllers/exchange_controller.go | 2 +- controllers/exchange_controller_test.go | 2 +- controllers/permission_controller.go | 2 +- controllers/permission_controller_test.go | 2 +- controllers/policy_controller.go | 2 +- controllers/policy_controller_test.go | 2 +- controllers/queue_controller.go | 2 +- controllers/queue_controller_test.go | 2 +- controllers/schemareplication_controller.go | 2 +- .../schemareplication_controller_test.go | 2 +- controllers/suite_test.go | 2 +- controllers/user_controller.go | 2 +- controllers/user_controller_test.go | 2 +- controllers/vhost_controller.go | 2 +- controllers/vhost_controller_test.go | 2 +- docs/api/rabbitmq.com.ref.asciidoc | 318 +++++++++--------- docs/examples/bindings/binding.yaml | 2 +- docs/examples/exchanges/direct-exchange.yaml | 2 +- docs/examples/exchanges/fanout-exchange.yaml | 2 +- docs/examples/permissions/permission.yaml | 2 +- docs/examples/policies/lazy-queue-policy.yaml | 2 +- docs/examples/policies/policy.yaml | 2 +- docs/examples/queues/lazy-queue.yaml | 4 +- docs/examples/queues/quorum-queue.yaml | 2 +- docs/examples/users/publish-consume-user.yaml | 4 +- docs/examples/users/user.yaml | 2 +- docs/examples/users/userPreDefinedCreds.yaml | 2 +- docs/examples/vhosts/vhost.yaml | 2 +- hack/update-codegen.sh | 12 +- internal/binding.go | 2 +- internal/binding_test.go | 2 +- internal/cluster_reference.go | 2 +- internal/cluster_reference_test.go | 2 +- internal/exchange_settings.go | 2 +- internal/exchange_settings_test.go | 2 +- internal/permissions.go | 2 +- internal/permissions_test.go | 2 +- internal/policy.go | 2 +- internal/policy_test.go | 2 +- internal/queue_settings.go | 2 +- internal/queue_settings_test.go | 2 +- internal/user_settings.go | 2 +- internal/user_settings_test.go | 2 +- internal/vhost_settings.go | 2 +- internal/vhost_settings_test.go | 2 +- main.go | 2 +- system_tests/binding_system_test.go | 2 +- system_tests/deletion_system_test.go | 2 +- system_tests/exchange_system_test.go | 2 +- system_tests/permissions_system_test.go | 2 +- system_tests/policy_system_test.go | 2 +- system_tests/queue_system_test.go | 2 +- .../schema_replication_system_test.go | 2 +- system_tests/suite_test.go | 2 +- system_tests/tls_system_test.go | 2 +- system_tests/user_system_test.go | 2 +- system_tests/vhost_system_test.go | 2 +- 107 files changed, 305 insertions(+), 305 deletions(-) rename api/{v1alpha2 => v1beta1}/binding_types.go (99%) rename api/{v1alpha2 => v1beta1}/binding_types_test.go (99%) rename api/{v1alpha2 => v1beta1}/binding_webhook.go (92%) rename api/{v1alpha2 => v1beta1}/binding_webhook_test.go (99%) rename api/{v1alpha2 => v1beta1}/conditions.go (98%) rename api/{v1alpha2 => v1beta1}/conditions_test.go (98%) rename api/{v1alpha2 => v1beta1}/exchange_types.go (99%) rename api/{v1alpha2 => v1beta1}/exchange_types_test.go (99%) rename api/{v1alpha2 => v1beta1}/exchange_webhook.go (92%) rename api/{v1alpha2 => v1beta1}/exchange_webhook_test.go (99%) rename api/{v1alpha2 => v1beta1}/groupversion_info.go (92%) rename api/{v1alpha2 => v1beta1}/permission_types.go (99%) rename api/{v1alpha2 => v1beta1}/permission_types_test.go (99%) rename api/{v1alpha2 => v1beta1}/permission_webhook.go (88%) rename api/{v1alpha2 => v1beta1}/permission_webhook_test.go (99%) rename api/{v1alpha2 => v1beta1}/policy_types.go (99%) rename api/{v1alpha2 => v1beta1}/policy_types_test.go (99%) rename api/{v1alpha2 => v1beta1}/policy_webhook.go (89%) rename api/{v1alpha2 => v1beta1}/policy_webhook_test.go (99%) rename api/{v1alpha2 => v1beta1}/queue_types.go (99%) rename api/{v1alpha2 => v1beta1}/queue_types_test.go (99%) rename api/{v1alpha2 => v1beta1}/queue_webhook.go (91%) rename api/{v1alpha2 => v1beta1}/queue_webhook_test.go (99%) rename api/{v1alpha2 => v1beta1}/schemareplication_types.go (99%) rename api/{v1alpha2 => v1beta1}/schemareplication_types_test.go (98%) rename api/{v1alpha2 => v1beta1}/schemareplication_webhook.go (85%) rename api/{v1alpha2 => v1beta1}/schemareplication_webhook_test.go (98%) rename api/{v1alpha2 => v1beta1}/suite_test.go (97%) rename api/{v1alpha2 => v1beta1}/user_types.go (99%) rename api/{v1alpha2 => v1beta1}/user_types_test.go (99%) rename api/{v1alpha2 => v1beta1}/user_webhook.go (86%) rename api/{v1alpha2 => v1beta1}/user_webhook_test.go (98%) rename api/{v1alpha2 => v1beta1}/vhost_types.go (99%) rename api/{v1alpha2 => v1beta1}/vhost_types_test.go (99%) rename api/{v1alpha2 => v1beta1}/vhost_webhook.go (88%) rename api/{v1alpha2 => v1beta1}/vhost_webhook_test.go (98%) rename api/{v1alpha2 => v1beta1}/zz_generated.deepcopy.go (99%) diff --git a/Makefile b/Makefile index 2c385567..b4c3803e 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,7 @@ manifests: install-tools # Generate API reference documentation api-reference: crd-ref-docs \ - --source-path ./api/v1alpha2 \ + --source-path ./api/v1beta1 \ --config ./docs/api/autogen/config.yaml \ --templates-dir ./docs/api/autogen/templates \ --output-path ./docs/api/rabbitmq.com.ref.asciidoc \ diff --git a/PROJECT b/PROJECT index be243df5..3a77cb92 100644 --- a/PROJECT +++ b/PROJECT @@ -3,26 +3,26 @@ repo: github.com/rabbitmq/messaging-topology-operator resources: - group: rabbitmq.com kind: Queue - version: v1alpha2 + version: v1beta1 - group: rabbitmq.com kind: Exchange - version: v1alpha2 + version: v1beta1 - group: rabbitmq.com kind: Binding - version: v1alpha2 + version: v1beta1 - group: rabbitmq.com kind: User - version: v1alpha2 + version: v1beta1 - group: rabbitmq.com kind: Vhost - version: v1alpha2 + version: v1beta1 - group: rabbitmq.com kind: Policy - version: v1alpha2 + version: v1beta1 - group: rabbitmq.com kind: Permission - version: v1alpha2 + version: v1beta1 - group: rabbitmq.com kind: SchemaReplication - version: v1alpha2 + version: v1beta1 version: "2" diff --git a/api/v1alpha2/binding_types.go b/api/v1beta1/binding_types.go similarity index 99% rename from api/v1alpha2/binding_types.go rename to api/v1beta1/binding_types.go index d93e8157..15d83edd 100644 --- a/api/v1alpha2/binding_types.go +++ b/api/v1beta1/binding_types.go @@ -7,7 +7,7 @@ This product is licensed to you under the Mozilla Public License 2.0 license (th 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. */ -package v1alpha2 +package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/api/v1alpha2/binding_types_test.go b/api/v1beta1/binding_types_test.go similarity index 99% rename from api/v1alpha2/binding_types_test.go rename to api/v1beta1/binding_types_test.go index 3fcb2f18..84175f06 100644 --- a/api/v1alpha2/binding_types_test.go +++ b/api/v1beta1/binding_types_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "context" diff --git a/api/v1alpha2/binding_webhook.go b/api/v1beta1/binding_webhook.go similarity index 92% rename from api/v1alpha2/binding_webhook.go rename to api/v1beta1/binding_webhook.go index 68de3b77..67ce1fbc 100644 --- a/api/v1alpha2/binding_webhook.go +++ b/api/v1beta1/binding_webhook.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "fmt" @@ -16,7 +16,7 @@ func (b *Binding) SetupWebhookWithManager(mgr ctrl.Manager) error { Complete() } -// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1alpha2-binding,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=bindings,versions=v1alpha2,name=vbinding.kb.io,sideEffects=none,admissionReviewVersions=v1 +// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta1-binding,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=bindings,versions=v1beta1,name=vbinding.kb.io,sideEffects=none,admissionReviewVersions=v1 var _ webhook.Validator = &Binding{} diff --git a/api/v1alpha2/binding_webhook_test.go b/api/v1beta1/binding_webhook_test.go similarity index 99% rename from api/v1alpha2/binding_webhook_test.go rename to api/v1beta1/binding_webhook_test.go index a570e72a..d81104c9 100644 --- a/api/v1alpha2/binding_webhook_test.go +++ b/api/v1beta1/binding_webhook_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( . "github.com/onsi/ginkgo" diff --git a/api/v1alpha2/conditions.go b/api/v1beta1/conditions.go similarity index 98% rename from api/v1alpha2/conditions.go rename to api/v1beta1/conditions.go index da620b8f..e28980d5 100644 --- a/api/v1alpha2/conditions.go +++ b/api/v1beta1/conditions.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( corev1 "k8s.io/api/core/v1" diff --git a/api/v1alpha2/conditions_test.go b/api/v1beta1/conditions_test.go similarity index 98% rename from api/v1alpha2/conditions_test.go rename to api/v1beta1/conditions_test.go index a5a0dde4..4f799c18 100644 --- a/api/v1alpha2/conditions_test.go +++ b/api/v1beta1/conditions_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( . "github.com/onsi/ginkgo" diff --git a/api/v1alpha2/exchange_types.go b/api/v1beta1/exchange_types.go similarity index 99% rename from api/v1alpha2/exchange_types.go rename to api/v1beta1/exchange_types.go index 1aa2eaed..6565201c 100644 --- a/api/v1alpha2/exchange_types.go +++ b/api/v1beta1/exchange_types.go @@ -7,7 +7,7 @@ This product is licensed to you under the Mozilla Public License 2.0 license (th 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. */ -package v1alpha2 +package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/api/v1alpha2/exchange_types_test.go b/api/v1beta1/exchange_types_test.go similarity index 99% rename from api/v1alpha2/exchange_types_test.go rename to api/v1beta1/exchange_types_test.go index 5b12a2bc..d59387cc 100644 --- a/api/v1alpha2/exchange_types_test.go +++ b/api/v1beta1/exchange_types_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "context" diff --git a/api/v1alpha2/exchange_webhook.go b/api/v1beta1/exchange_webhook.go similarity index 92% rename from api/v1alpha2/exchange_webhook.go rename to api/v1beta1/exchange_webhook.go index 07dd5a1e..c07a3e3d 100644 --- a/api/v1alpha2/exchange_webhook.go +++ b/api/v1beta1/exchange_webhook.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "fmt" @@ -15,7 +15,7 @@ func (r *Exchange) SetupWebhookWithManager(mgr ctrl.Manager) error { Complete() } -// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1alpha2-exchange,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=exchanges,versions=v1alpha2,name=vexchange.kb.io,sideEffects=none,admissionReviewVersions=v1 +// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta1-exchange,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=exchanges,versions=v1beta1,name=vexchange.kb.io,sideEffects=none,admissionReviewVersions=v1 var _ webhook.Validator = &Exchange{} diff --git a/api/v1alpha2/exchange_webhook_test.go b/api/v1beta1/exchange_webhook_test.go similarity index 99% rename from api/v1alpha2/exchange_webhook_test.go rename to api/v1beta1/exchange_webhook_test.go index ee2c8069..19ac45a6 100644 --- a/api/v1alpha2/exchange_webhook_test.go +++ b/api/v1beta1/exchange_webhook_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( . "github.com/onsi/ginkgo" diff --git a/api/v1alpha2/groupversion_info.go b/api/v1beta1/groupversion_info.go similarity index 92% rename from api/v1alpha2/groupversion_info.go rename to api/v1beta1/groupversion_info.go index 02353cd7..88edce75 100644 --- a/api/v1alpha2/groupversion_info.go +++ b/api/v1beta1/groupversion_info.go @@ -7,10 +7,10 @@ This product is licensed to you under the Mozilla Public License 2.0 license (th 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. */ -// Package v1alpha2 contains API Schema definitions for the rabbitmq.com v1alpha2 API group +// Package v1beta1 contains API Schema definitions for the rabbitmq.com v1beta1 API group // +kubebuilder:object:generate=true // +groupName=rabbitmq.com -package v1alpha2 +package v1beta1 import ( "k8s.io/apimachinery/pkg/runtime/schema" @@ -19,7 +19,7 @@ import ( var ( // GroupVersion is group version used to register these objects - GroupVersion = schema.GroupVersion{Group: "rabbitmq.com", Version: "v1alpha2"} + GroupVersion = schema.GroupVersion{Group: "rabbitmq.com", Version: "v1beta1"} // SchemeGroupVersion is group version used to register these objects // added for generated clientset diff --git a/api/v1alpha2/permission_types.go b/api/v1beta1/permission_types.go similarity index 99% rename from api/v1alpha2/permission_types.go rename to api/v1beta1/permission_types.go index 9bae1720..0c179a7d 100644 --- a/api/v1alpha2/permission_types.go +++ b/api/v1beta1/permission_types.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/api/v1alpha2/permission_types_test.go b/api/v1beta1/permission_types_test.go similarity index 99% rename from api/v1alpha2/permission_types_test.go rename to api/v1beta1/permission_types_test.go index 527552a3..4f961196 100644 --- a/api/v1alpha2/permission_types_test.go +++ b/api/v1beta1/permission_types_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "context" diff --git a/api/v1alpha2/permission_webhook.go b/api/v1beta1/permission_webhook.go similarity index 88% rename from api/v1alpha2/permission_webhook.go rename to api/v1beta1/permission_webhook.go index 39498e9b..8fed9716 100644 --- a/api/v1alpha2/permission_webhook.go +++ b/api/v1beta1/permission_webhook.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "fmt" @@ -15,7 +15,7 @@ func (p *Permission) SetupWebhookWithManager(mgr ctrl.Manager) error { Complete() } -// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1alpha2-permission,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=permissions,versions=v1alpha2,name=vpermission.kb.io,sideEffects=none,admissionReviewVersions=v1 +// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta1-permission,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=permissions,versions=v1beta1,name=vpermission.kb.io,sideEffects=none,admissionReviewVersions=v1 var _ webhook.Validator = &Permission{} diff --git a/api/v1alpha2/permission_webhook_test.go b/api/v1beta1/permission_webhook_test.go similarity index 99% rename from api/v1alpha2/permission_webhook_test.go rename to api/v1beta1/permission_webhook_test.go index 9c9e59d4..be394b20 100644 --- a/api/v1alpha2/permission_webhook_test.go +++ b/api/v1beta1/permission_webhook_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( . "github.com/onsi/ginkgo" diff --git a/api/v1alpha2/policy_types.go b/api/v1beta1/policy_types.go similarity index 99% rename from api/v1alpha2/policy_types.go rename to api/v1beta1/policy_types.go index 7de14fb8..c760d2d2 100644 --- a/api/v1alpha2/policy_types.go +++ b/api/v1beta1/policy_types.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/api/v1alpha2/policy_types_test.go b/api/v1beta1/policy_types_test.go similarity index 99% rename from api/v1alpha2/policy_types_test.go rename to api/v1beta1/policy_types_test.go index 3545ac55..2a74bab8 100644 --- a/api/v1alpha2/policy_types_test.go +++ b/api/v1beta1/policy_types_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "context" diff --git a/api/v1alpha2/policy_webhook.go b/api/v1beta1/policy_webhook.go similarity index 89% rename from api/v1alpha2/policy_webhook.go rename to api/v1beta1/policy_webhook.go index 1b37adde..865deb35 100644 --- a/api/v1alpha2/policy_webhook.go +++ b/api/v1beta1/policy_webhook.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "fmt" @@ -15,7 +15,7 @@ func (p *Policy) SetupWebhookWithManager(mgr ctrl.Manager) error { Complete() } -// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1alpha2-policy,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=policies,versions=v1alpha2,name=vpolicy.kb.io,sideEffects=none,admissionReviewVersions=v1 +// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta1-policy,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=policies,versions=v1beta1,name=vpolicy.kb.io,sideEffects=none,admissionReviewVersions=v1 var _ webhook.Validator = &Policy{} diff --git a/api/v1alpha2/policy_webhook_test.go b/api/v1beta1/policy_webhook_test.go similarity index 99% rename from api/v1alpha2/policy_webhook_test.go rename to api/v1beta1/policy_webhook_test.go index 91c338de..c206cb42 100644 --- a/api/v1alpha2/policy_webhook_test.go +++ b/api/v1beta1/policy_webhook_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( . "github.com/onsi/ginkgo" diff --git a/api/v1alpha2/queue_types.go b/api/v1beta1/queue_types.go similarity index 99% rename from api/v1alpha2/queue_types.go rename to api/v1beta1/queue_types.go index 6e7c2be4..473f71b7 100644 --- a/api/v1alpha2/queue_types.go +++ b/api/v1beta1/queue_types.go @@ -7,7 +7,7 @@ This product is licensed to you under the Mozilla Public License 2.0 license (th 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. */ -package v1alpha2 +package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/api/v1alpha2/queue_types_test.go b/api/v1beta1/queue_types_test.go similarity index 99% rename from api/v1alpha2/queue_types_test.go rename to api/v1beta1/queue_types_test.go index fc48b3cc..48dee44c 100644 --- a/api/v1alpha2/queue_types_test.go +++ b/api/v1beta1/queue_types_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "context" diff --git a/api/v1alpha2/queue_webhook.go b/api/v1beta1/queue_webhook.go similarity index 91% rename from api/v1alpha2/queue_webhook.go rename to api/v1beta1/queue_webhook.go index 395a756b..4da07ba0 100644 --- a/api/v1alpha2/queue_webhook.go +++ b/api/v1beta1/queue_webhook.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "fmt" @@ -15,7 +15,7 @@ func (r *Queue) SetupWebhookWithManager(mgr ctrl.Manager) error { Complete() } -// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1alpha2-queue,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=queues,versions=v1alpha2,name=vqueue.kb.io,sideEffects=none,admissionReviewVersions=v1sideEffects=none,admissionReviewVersions=v1 +// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta1-queue,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=queues,versions=v1beta1,name=vqueue.kb.io,sideEffects=none,admissionReviewVersions=v1sideEffects=none,admissionReviewVersions=v1 var _ webhook.Validator = &Queue{} diff --git a/api/v1alpha2/queue_webhook_test.go b/api/v1beta1/queue_webhook_test.go similarity index 99% rename from api/v1alpha2/queue_webhook_test.go rename to api/v1beta1/queue_webhook_test.go index ac819f8f..ca58b7b8 100644 --- a/api/v1alpha2/queue_webhook_test.go +++ b/api/v1beta1/queue_webhook_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( . "github.com/onsi/ginkgo" diff --git a/api/v1alpha2/schemareplication_types.go b/api/v1beta1/schemareplication_types.go similarity index 99% rename from api/v1alpha2/schemareplication_types.go rename to api/v1beta1/schemareplication_types.go index ab31bf82..e6a80dc2 100644 --- a/api/v1alpha2/schemareplication_types.go +++ b/api/v1beta1/schemareplication_types.go @@ -7,7 +7,7 @@ This product is licensed to you under the Mozilla Public License 2.0 license (th 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. */ -package v1alpha2 +package v1beta1 import ( corev1 "k8s.io/api/core/v1" diff --git a/api/v1alpha2/schemareplication_types_test.go b/api/v1beta1/schemareplication_types_test.go similarity index 98% rename from api/v1alpha2/schemareplication_types_test.go rename to api/v1beta1/schemareplication_types_test.go index 495d6866..35edd6af 100644 --- a/api/v1alpha2/schemareplication_types_test.go +++ b/api/v1beta1/schemareplication_types_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "context" diff --git a/api/v1alpha2/schemareplication_webhook.go b/api/v1beta1/schemareplication_webhook.go similarity index 85% rename from api/v1alpha2/schemareplication_webhook.go rename to api/v1beta1/schemareplication_webhook.go index fa71eceb..a9073575 100644 --- a/api/v1alpha2/schemareplication_webhook.go +++ b/api/v1beta1/schemareplication_webhook.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "fmt" @@ -15,7 +15,7 @@ func (s *SchemaReplication) SetupWebhookWithManager(mgr ctrl.Manager) error { Complete() } -// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1alpha2-schemareplication,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=schemareplications,versions=v1alpha2,name=vschemareplication.kb.io,sideEffects=none,admissionReviewVersions=v1 +// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta1-schemareplication,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=schemareplications,versions=v1beta1,name=vschemareplication.kb.io,sideEffects=none,admissionReviewVersions=v1 var _ webhook.Validator = &SchemaReplication{} diff --git a/api/v1alpha2/schemareplication_webhook_test.go b/api/v1beta1/schemareplication_webhook_test.go similarity index 98% rename from api/v1alpha2/schemareplication_webhook_test.go rename to api/v1beta1/schemareplication_webhook_test.go index 8b9e3a4c..1b3abab2 100644 --- a/api/v1alpha2/schemareplication_webhook_test.go +++ b/api/v1beta1/schemareplication_webhook_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( . "github.com/onsi/ginkgo" diff --git a/api/v1alpha2/suite_test.go b/api/v1beta1/suite_test.go similarity index 97% rename from api/v1alpha2/suite_test.go rename to api/v1beta1/suite_test.go index 085b5f7e..4df0e8f2 100644 --- a/api/v1alpha2/suite_test.go +++ b/api/v1beta1/suite_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "path/filepath" @@ -24,7 +24,7 @@ func TestAPIs(t *testing.T) { RegisterFailHandler(Fail) RunSpecsWithDefaultAndCustomReporters(t, - "v1alpha2 Suite", + "v1beta1 Suite", []Reporter{printer.NewlineReporter{}}) } diff --git a/api/v1alpha2/user_types.go b/api/v1beta1/user_types.go similarity index 99% rename from api/v1alpha2/user_types.go rename to api/v1beta1/user_types.go index 22590fee..174d6177 100644 --- a/api/v1alpha2/user_types.go +++ b/api/v1beta1/user_types.go @@ -7,7 +7,7 @@ This product is licensed to you under the Mozilla Public License 2.0 license (th 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. */ -package v1alpha2 +package v1beta1 import ( corev1 "k8s.io/api/core/v1" diff --git a/api/v1alpha2/user_types_test.go b/api/v1beta1/user_types_test.go similarity index 99% rename from api/v1alpha2/user_types_test.go rename to api/v1beta1/user_types_test.go index eb589854..f6742b2a 100644 --- a/api/v1alpha2/user_types_test.go +++ b/api/v1beta1/user_types_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "context" diff --git a/api/v1alpha2/user_webhook.go b/api/v1beta1/user_webhook.go similarity index 86% rename from api/v1alpha2/user_webhook.go rename to api/v1beta1/user_webhook.go index ccf4283e..f6eecada 100644 --- a/api/v1alpha2/user_webhook.go +++ b/api/v1beta1/user_webhook.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "fmt" @@ -15,7 +15,7 @@ func (u *User) SetupWebhookWithManager(mgr ctrl.Manager) error { Complete() } -// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1alpha2-user,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=users,versions=v1alpha2,name=vuser.kb.io,sideEffects=none,admissionReviewVersions=v1 +// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta1-user,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=users,versions=v1beta1,name=vuser.kb.io,sideEffects=none,admissionReviewVersions=v1 var _ webhook.Validator = &User{} diff --git a/api/v1alpha2/user_webhook_test.go b/api/v1beta1/user_webhook_test.go similarity index 98% rename from api/v1alpha2/user_webhook_test.go rename to api/v1beta1/user_webhook_test.go index 60af3d38..79e09178 100644 --- a/api/v1alpha2/user_webhook_test.go +++ b/api/v1beta1/user_webhook_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( . "github.com/onsi/ginkgo" diff --git a/api/v1alpha2/vhost_types.go b/api/v1beta1/vhost_types.go similarity index 99% rename from api/v1alpha2/vhost_types.go rename to api/v1beta1/vhost_types.go index df3b6fb2..d114f60b 100644 --- a/api/v1alpha2/vhost_types.go +++ b/api/v1beta1/vhost_types.go @@ -7,7 +7,7 @@ This product is licensed to you under the Mozilla Public License 2.0 license (th 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. */ -package v1alpha2 +package v1beta1 import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/api/v1alpha2/vhost_types_test.go b/api/v1beta1/vhost_types_test.go similarity index 99% rename from api/v1alpha2/vhost_types_test.go rename to api/v1beta1/vhost_types_test.go index 9c1dcc12..d00cec6a 100644 --- a/api/v1alpha2/vhost_types_test.go +++ b/api/v1beta1/vhost_types_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "context" diff --git a/api/v1alpha2/vhost_webhook.go b/api/v1beta1/vhost_webhook.go similarity index 88% rename from api/v1alpha2/vhost_webhook.go rename to api/v1beta1/vhost_webhook.go index 5931bfd7..ad8d1786 100644 --- a/api/v1alpha2/vhost_webhook.go +++ b/api/v1beta1/vhost_webhook.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( "fmt" @@ -15,7 +15,7 @@ func (r *Vhost) SetupWebhookWithManager(mgr ctrl.Manager) error { Complete() } -// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1alpha2-vhost,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=vhosts,versions=v1alpha2,name=vvhost.kb.io,sideEffects=none,admissionReviewVersions=v1 +// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta1-vhost,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=vhosts,versions=v1beta1,name=vvhost.kb.io,sideEffects=none,admissionReviewVersions=v1 var _ webhook.Validator = &Vhost{} diff --git a/api/v1alpha2/vhost_webhook_test.go b/api/v1beta1/vhost_webhook_test.go similarity index 98% rename from api/v1alpha2/vhost_webhook_test.go rename to api/v1beta1/vhost_webhook_test.go index 29959614..888931b3 100644 --- a/api/v1alpha2/vhost_webhook_test.go +++ b/api/v1beta1/vhost_webhook_test.go @@ -1,4 +1,4 @@ -package v1alpha2 +package v1beta1 import ( . "github.com/onsi/ginkgo" diff --git a/api/v1alpha2/zz_generated.deepcopy.go b/api/v1beta1/zz_generated.deepcopy.go similarity index 99% rename from api/v1alpha2/zz_generated.deepcopy.go rename to api/v1beta1/zz_generated.deepcopy.go index f8edaa55..e8d5ea64 100644 --- a/api/v1alpha2/zz_generated.deepcopy.go +++ b/api/v1beta1/zz_generated.deepcopy.go @@ -11,7 +11,7 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by controller-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "k8s.io/api/core/v1" diff --git a/config/crd/bases/rabbitmq.com_bindings.yaml b/config/crd/bases/rabbitmq.com_bindings.yaml index a2fa67d1..231e25f0 100644 --- a/config/crd/bases/rabbitmq.com_bindings.yaml +++ b/config/crd/bases/rabbitmq.com_bindings.yaml @@ -18,7 +18,7 @@ spec: singular: binding scope: Namespaced versions: - - name: v1alpha2 + - name: v1beta1 schema: openAPIV3Schema: description: Binding is the Schema for the bindings API diff --git a/config/crd/bases/rabbitmq.com_exchanges.yaml b/config/crd/bases/rabbitmq.com_exchanges.yaml index 22fa431d..70e96328 100644 --- a/config/crd/bases/rabbitmq.com_exchanges.yaml +++ b/config/crd/bases/rabbitmq.com_exchanges.yaml @@ -18,7 +18,7 @@ spec: singular: exchange scope: Namespaced versions: - - name: v1alpha2 + - name: v1beta1 schema: openAPIV3Schema: description: Exchange is the Schema for the exchanges API diff --git a/config/crd/bases/rabbitmq.com_permissions.yaml b/config/crd/bases/rabbitmq.com_permissions.yaml index 7d606700..22d06c46 100644 --- a/config/crd/bases/rabbitmq.com_permissions.yaml +++ b/config/crd/bases/rabbitmq.com_permissions.yaml @@ -18,7 +18,7 @@ spec: singular: permission scope: Namespaced versions: - - name: v1alpha2 + - name: v1beta1 schema: openAPIV3Schema: description: Permission is the Schema for the permissions API diff --git a/config/crd/bases/rabbitmq.com_policies.yaml b/config/crd/bases/rabbitmq.com_policies.yaml index 55bc75e4..7b23fb19 100644 --- a/config/crd/bases/rabbitmq.com_policies.yaml +++ b/config/crd/bases/rabbitmq.com_policies.yaml @@ -18,7 +18,7 @@ spec: singular: policy scope: Namespaced versions: - - name: v1alpha2 + - name: v1beta1 schema: openAPIV3Schema: description: Policy is the Schema for the policies API diff --git a/config/crd/bases/rabbitmq.com_queues.yaml b/config/crd/bases/rabbitmq.com_queues.yaml index 8dfe8c9a..6d20bc78 100644 --- a/config/crd/bases/rabbitmq.com_queues.yaml +++ b/config/crd/bases/rabbitmq.com_queues.yaml @@ -18,7 +18,7 @@ spec: singular: queue scope: Namespaced versions: - - name: v1alpha2 + - name: v1beta1 schema: openAPIV3Schema: description: Queue is the Schema for the queues API diff --git a/config/crd/bases/rabbitmq.com_schemareplications.yaml b/config/crd/bases/rabbitmq.com_schemareplications.yaml index 5e1e45ba..39bcb188 100644 --- a/config/crd/bases/rabbitmq.com_schemareplications.yaml +++ b/config/crd/bases/rabbitmq.com_schemareplications.yaml @@ -16,7 +16,7 @@ spec: singular: schemareplication scope: Namespaced versions: - - name: v1alpha2 + - name: v1beta1 schema: openAPIV3Schema: description: 'SchemaReplication is the Schema for the schemareplications API diff --git a/config/crd/bases/rabbitmq.com_users.yaml b/config/crd/bases/rabbitmq.com_users.yaml index 76e11d27..609879c3 100644 --- a/config/crd/bases/rabbitmq.com_users.yaml +++ b/config/crd/bases/rabbitmq.com_users.yaml @@ -18,7 +18,7 @@ spec: singular: user scope: Namespaced versions: - - name: v1alpha2 + - name: v1beta1 schema: openAPIV3Schema: description: User is the Schema for the users API. diff --git a/config/crd/bases/rabbitmq.com_vhosts.yaml b/config/crd/bases/rabbitmq.com_vhosts.yaml index fe732a55..47a050a9 100644 --- a/config/crd/bases/rabbitmq.com_vhosts.yaml +++ b/config/crd/bases/rabbitmq.com_vhosts.yaml @@ -18,7 +18,7 @@ spec: singular: vhost scope: Namespaced versions: - - name: v1alpha2 + - name: v1beta1 schema: openAPIV3Schema: description: Vhost is the Schema for the vhosts API diff --git a/config/webhook/manifests.yaml b/config/webhook/manifests.yaml index 4017475d..eb63f6b2 100644 --- a/config/webhook/manifests.yaml +++ b/config/webhook/manifests.yaml @@ -12,14 +12,14 @@ webhooks: service: name: webhook-service namespace: system - path: /validate-rabbitmq-com-v1alpha2-binding + path: /validate-rabbitmq-com-v1beta1-binding failurePolicy: Fail name: vbinding.kb.io rules: - apiGroups: - rabbitmq.com apiVersions: - - v1alpha2 + - v1beta1 operations: - CREATE - UPDATE @@ -32,14 +32,14 @@ webhooks: service: name: webhook-service namespace: system - path: /validate-rabbitmq-com-v1alpha2-exchange + path: /validate-rabbitmq-com-v1beta1-exchange failurePolicy: Fail name: vexchange.kb.io rules: - apiGroups: - rabbitmq.com apiVersions: - - v1alpha2 + - v1beta1 operations: - CREATE - UPDATE @@ -52,14 +52,14 @@ webhooks: service: name: webhook-service namespace: system - path: /validate-rabbitmq-com-v1alpha2-permission + path: /validate-rabbitmq-com-v1beta1-permission failurePolicy: Fail name: vpermission.kb.io rules: - apiGroups: - rabbitmq.com apiVersions: - - v1alpha2 + - v1beta1 operations: - CREATE - UPDATE @@ -72,14 +72,14 @@ webhooks: service: name: webhook-service namespace: system - path: /validate-rabbitmq-com-v1alpha2-policy + path: /validate-rabbitmq-com-v1beta1-policy failurePolicy: Fail name: vpolicy.kb.io rules: - apiGroups: - rabbitmq.com apiVersions: - - v1alpha2 + - v1beta1 operations: - CREATE - UPDATE @@ -92,14 +92,14 @@ webhooks: service: name: webhook-service namespace: system - path: /validate-rabbitmq-com-v1alpha2-queue + path: /validate-rabbitmq-com-v1beta1-queue failurePolicy: Fail name: vqueue.kb.io rules: - apiGroups: - rabbitmq.com apiVersions: - - v1alpha2 + - v1beta1 operations: - CREATE - UPDATE @@ -112,14 +112,14 @@ webhooks: service: name: webhook-service namespace: system - path: /validate-rabbitmq-com-v1alpha2-schemareplication + path: /validate-rabbitmq-com-v1beta1-schemareplication failurePolicy: Fail name: vschemareplication.kb.io rules: - apiGroups: - rabbitmq.com apiVersions: - - v1alpha2 + - v1beta1 operations: - CREATE - UPDATE @@ -132,14 +132,14 @@ webhooks: service: name: webhook-service namespace: system - path: /validate-rabbitmq-com-v1alpha2-user + path: /validate-rabbitmq-com-v1beta1-user failurePolicy: Fail name: vuser.kb.io rules: - apiGroups: - rabbitmq.com apiVersions: - - v1alpha2 + - v1beta1 operations: - CREATE - UPDATE @@ -152,14 +152,14 @@ webhooks: service: name: webhook-service namespace: system - path: /validate-rabbitmq-com-v1alpha2-vhost + path: /validate-rabbitmq-com-v1beta1-vhost failurePolicy: Fail name: vvhost.kb.io rules: - apiGroups: - rabbitmq.com apiVersions: - - v1alpha2 + - v1beta1 operations: - CREATE - UPDATE diff --git a/controllers/binding_controller.go b/controllers/binding_controller.go index 932bb826..66ec8ac4 100644 --- a/controllers/binding_controller.go +++ b/controllers/binding_controller.go @@ -29,7 +29,7 @@ import ( ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) const bindingFinalizer = "deletion.finalizers.bindings.rabbitmq.com" diff --git a/controllers/binding_controller_test.go b/controllers/binding_controller_test.go index b84a13ae..b50a0b5a 100644 --- a/controllers/binding_controller_test.go +++ b/controllers/binding_controller_test.go @@ -10,7 +10,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/controllers/exchange_controller.go b/controllers/exchange_controller.go index 85aa1fff..6dee5791 100644 --- a/controllers/exchange_controller.go +++ b/controllers/exchange_controller.go @@ -27,7 +27,7 @@ import ( ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) const exchangeFinalizer = "deletion.finalizers.exchanges.rabbitmq.com" diff --git a/controllers/exchange_controller_test.go b/controllers/exchange_controller_test.go index d5a9cf27..faae7a1f 100644 --- a/controllers/exchange_controller_test.go +++ b/controllers/exchange_controller_test.go @@ -10,7 +10,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/controllers/permission_controller.go b/controllers/permission_controller.go index a722cb7a..8eb1e03c 100644 --- a/controllers/permission_controller.go +++ b/controllers/permission_controller.go @@ -18,7 +18,7 @@ import ( ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) const permissionFinalizer = "deletion.finalizers.permissions.rabbitmq.com" diff --git a/controllers/permission_controller_test.go b/controllers/permission_controller_test.go index 17446485..1ac779db 100644 --- a/controllers/permission_controller_test.go +++ b/controllers/permission_controller_test.go @@ -10,7 +10,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/controllers/policy_controller.go b/controllers/policy_controller.go index 898e91f7..fe94a288 100644 --- a/controllers/policy_controller.go +++ b/controllers/policy_controller.go @@ -27,7 +27,7 @@ import ( ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) const policyFinalizer = "deletion.finalizers.policies.rabbitmq.com" diff --git a/controllers/policy_controller_test.go b/controllers/policy_controller_test.go index 893b810c..6958b3cf 100644 --- a/controllers/policy_controller_test.go +++ b/controllers/policy_controller_test.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/controllers/queue_controller.go b/controllers/queue_controller.go index 1cfc033a..e0d0b02c 100644 --- a/controllers/queue_controller.go +++ b/controllers/queue_controller.go @@ -16,7 +16,7 @@ import ( "time" "github.com/go-logr/logr" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/internal" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/runtime" diff --git a/controllers/queue_controller_test.go b/controllers/queue_controller_test.go index f33e8de7..aca09d0e 100644 --- a/controllers/queue_controller_test.go +++ b/controllers/queue_controller_test.go @@ -10,7 +10,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/controllers/schemareplication_controller.go b/controllers/schemareplication_controller.go index 59c92dde..235fd63a 100644 --- a/controllers/schemareplication_controller.go +++ b/controllers/schemareplication_controller.go @@ -20,7 +20,7 @@ import ( ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) const replicationFinalizer = "deletion.finalizers.schemareplications.rabbitmq.com" diff --git a/controllers/schemareplication_controller_test.go b/controllers/schemareplication_controller_test.go index e6ded7af..f3f5df90 100644 --- a/controllers/schemareplication_controller_test.go +++ b/controllers/schemareplication_controller_test.go @@ -10,7 +10,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/controllers/suite_test.go b/controllers/suite_test.go index ec6c5937..c9364d59 100644 --- a/controllers/suite_test.go +++ b/controllers/suite_test.go @@ -23,7 +23,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/api/v1beta1" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/controllers" "github.com/rabbitmq/messaging-topology-operator/internal" "github.com/rabbitmq/messaging-topology-operator/internal/internalfakes" diff --git a/controllers/user_controller.go b/controllers/user_controller.go index 5ce5f23c..9cc1aac0 100644 --- a/controllers/user_controller.go +++ b/controllers/user_controller.go @@ -17,7 +17,7 @@ import ( "time" "github.com/go-logr/logr" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/internal" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/controllers/user_controller_test.go b/controllers/user_controller_test.go index 3962c4ae..ad0e84f5 100644 --- a/controllers/user_controller_test.go +++ b/controllers/user_controller_test.go @@ -10,7 +10,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/controllers/vhost_controller.go b/controllers/vhost_controller.go index 7d24b92c..8947f9c2 100644 --- a/controllers/vhost_controller.go +++ b/controllers/vhost_controller.go @@ -18,7 +18,7 @@ import ( ctrl "sigs.k8s.io/controller-runtime" "sigs.k8s.io/controller-runtime/pkg/client" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) const vhostFinalizer = "deletion.finalizers.vhosts.rabbitmq.com" diff --git a/controllers/vhost_controller_test.go b/controllers/vhost_controller_test.go index 527973a7..e876d025 100644 --- a/controllers/vhost_controller_test.go +++ b/controllers/vhost_controller_test.go @@ -10,7 +10,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" corev1 "k8s.io/api/core/v1" apierrors "k8s.io/apimachinery/pkg/api/errors" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/docs/api/rabbitmq.com.ref.asciidoc b/docs/api/rabbitmq.com.ref.asciidoc index 9f9e06f5..8d57be50 100644 --- a/docs/api/rabbitmq.com.ref.asciidoc +++ b/docs/api/rabbitmq.com.ref.asciidoc @@ -5,59 +5,59 @@ = API Reference .Packages -- xref:{anchor_prefix}-rabbitmq-com-v1alpha2[$$rabbitmq.com/v1alpha2$$] +- xref:{anchor_prefix}-rabbitmq-com-v1beta1[$$rabbitmq.com/v1beta1$$] -[id="{anchor_prefix}-rabbitmq-com-v1alpha2"] -== rabbitmq.com/v1alpha2 +[id="{anchor_prefix}-rabbitmq-com-v1beta1"] +== rabbitmq.com/v1beta1 -Package v1alpha2 contains API Schema definitions for the rabbitmq.com v1alpha2 API group +Package v1beta1 contains API Schema definitions for the rabbitmq.com v1beta1 API group .Resource Types -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-binding[$$Binding$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-bindinglist[$$BindingList$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchange[$$Exchange$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchangelist[$$ExchangeList$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permission[$$Permission$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permissionlist[$$PermissionList$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policy[$$Policy$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policylist[$$PolicyList$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queue[$$Queue$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queuelist[$$QueueList$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplication[$$SchemaReplication$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplicationlist[$$SchemaReplicationList$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-user[$$User$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-userlist[$$UserList$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhost[$$Vhost$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhostlist[$$VhostList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-binding[$$Binding$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-bindinglist[$$BindingList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchange[$$Exchange$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchangelist[$$ExchangeList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permission[$$Permission$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permissionlist[$$PermissionList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policy[$$Policy$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policylist[$$PolicyList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queue[$$Queue$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queuelist[$$QueueList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplication[$$SchemaReplication$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplicationlist[$$SchemaReplicationList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-user[$$User$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-userlist[$$UserList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhost[$$Vhost$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhostlist[$$VhostList$$] === Definitions -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-binding"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-binding"] ==== Binding Binding is the Schema for the bindings API .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-bindinglist[$$BindingList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-bindinglist[$$BindingList$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `Binding` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-bindingspec[$$BindingSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-bindingstatus[$$BindingStatus$$]__ | +| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-bindingspec[$$BindingSpec$$]__ | +| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-bindingstatus[$$BindingStatus$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-bindinglist"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-bindinglist"] ==== BindingList BindingList contains a list of Binding @@ -67,23 +67,23 @@ BindingList contains a list of Binding [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `BindingList` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#listmeta-v1-meta[$$ListMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-binding[$$Binding$$]__ | +| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-binding[$$Binding$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-bindingspec"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-bindingspec"] ==== BindingSpec BindingSpec defines the desired state of Binding .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-binding[$$Binding$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-binding[$$Binding$$] **** [cols="25a,75a", options="header"] @@ -95,49 +95,49 @@ BindingSpec defines the desired state of Binding | *`destinationType`* __string__ | | *`routingKey`* __string__ | | *`arguments`* __RawExtension__ | -| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the binding will be created in. Required property. +| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the binding will be created in. Required property. |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-bindingstatus"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-bindingstatus"] ==== BindingStatus BindingStatus defines the observed state of Binding .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-binding[$$Binding$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-binding[$$Binding$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`observedGeneration`* __integer__ | observedGeneration is the most recent successful generation observed for this Binding. It corresponds to the Binding's generation, which is updated on mutation by the API Server. -| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-condition[$$Condition$$] array__ | +| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-condition[$$Condition$$] array__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-condition"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-condition"] ==== Condition .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-bindingstatus[$$BindingStatus$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchangestatus[$$ExchangeStatus$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permissionstatus[$$PermissionStatus$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policystatus[$$PolicyStatus$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queuestatus[$$QueueStatus$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplicationstatus[$$SchemaReplicationStatus$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-userstatus[$$UserStatus$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhoststatus[$$VhostStatus$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-bindingstatus[$$BindingStatus$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchangestatus[$$ExchangeStatus$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permissionstatus[$$PermissionStatus$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policystatus[$$PolicyStatus$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queuestatus[$$QueueStatus$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplicationstatus[$$SchemaReplicationStatus$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-userstatus[$$UserStatus$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhoststatus[$$VhostStatus$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`type`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-conditiontype[$$ConditionType$$]__ | Type indicates the scope of RabbitmqCluster status addressed by the condition. +| *`type`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-conditiontype[$$ConditionType$$]__ | Type indicates the scope of RabbitmqCluster status addressed by the condition. | *`status`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#conditionstatus-v1-core[$$ConditionStatus$$]__ | True, False, or Unknown | *`lastTransitionTime`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#time-v1-meta[$$Time$$]__ | The last time this Condition type changed. | *`reason`* __string__ | One word, camel-case reason for current status of the condition. @@ -145,42 +145,42 @@ BindingStatus defines the observed state of Binding |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-conditiontype"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-conditiontype"] ==== ConditionType (string) .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-condition[$$Condition$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-condition[$$Condition$$] **** -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchange"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchange"] ==== Exchange Exchange is the Schema for the exchanges API .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchangelist[$$ExchangeList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchangelist[$$ExchangeList$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `Exchange` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchangespec[$$ExchangeSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchangestatus[$$ExchangeStatus$$]__ | +| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchangespec[$$ExchangeSpec$$]__ | +| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchangestatus[$$ExchangeStatus$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchangelist"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchangelist"] ==== ExchangeList ExchangeList contains a list of Exchange @@ -190,23 +190,23 @@ ExchangeList contains a list of Exchange [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `ExchangeList` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#listmeta-v1-meta[$$ListMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchange[$$Exchange$$]__ | +| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchange[$$Exchange$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchangespec"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchangespec"] ==== ExchangeSpec ExchangeSpec defines the desired state of Exchange .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchange[$$Exchange$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchange[$$Exchange$$] **** [cols="25a,75a", options="header"] @@ -218,52 +218,52 @@ ExchangeSpec defines the desired state of Exchange | *`durable`* __boolean__ | | *`autoDelete`* __boolean__ | | *`arguments`* __xref:{anchor_prefix}-k8s-io-apimachinery-pkg-runtime-rawextension[$$RawExtension$$]__ | -| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the exchange will be created in. Required property. +| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the exchange will be created in. Required property. |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchangestatus"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchangestatus"] ==== ExchangeStatus ExchangeStatus defines the observed state of Exchange .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchange[$$Exchange$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchange[$$Exchange$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`observedGeneration`* __integer__ | observedGeneration is the most recent successful generation observed for this Exchange. It corresponds to the Exchange's generation, which is updated on mutation by the API Server. -| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-condition[$$Condition$$]__ | +| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-condition[$$Condition$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permission"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permission"] ==== Permission Permission is the Schema for the permissions API .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permissionlist[$$PermissionList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permissionlist[$$PermissionList$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `Permission` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permissionspec[$$PermissionSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permissionstatus[$$PermissionStatus$$]__ | +| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permissionspec[$$PermissionSpec$$]__ | +| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permissionstatus[$$PermissionStatus$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permissionlist"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permissionlist"] ==== PermissionList PermissionList contains a list of Permission @@ -273,23 +273,23 @@ PermissionList contains a list of Permission [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `PermissionList` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#listmeta-v1-meta[$$ListMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permission[$$Permission$$]__ | +| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permission[$$Permission$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permissionspec"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permissionspec"] ==== PermissionSpec PermissionSpec defines the desired state of Permission .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permission[$$Permission$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permission[$$Permission$$] **** [cols="25a,75a", options="header"] @@ -297,53 +297,53 @@ PermissionSpec defines the desired state of Permission | Field | Description | *`user`* __string__ | Name of an existing user; required property. | *`vhost`* __string__ | Name of an existing vhost; required property. -| *`permissions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhostpermissions[$$VhostPermissions$$]__ | Permissions to grant to the user in the specific vhost; required property. See RabbitMQ doc for more information: https://www.rabbitmq.com/access-control.html#user-management -| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that both the provided user and vhost are. Required property. +| *`permissions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhostpermissions[$$VhostPermissions$$]__ | Permissions to grant to the user in the specific vhost; required property. See RabbitMQ doc for more information: https://www.rabbitmq.com/access-control.html#user-management +| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that both the provided user and vhost are. Required property. |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permissionstatus"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permissionstatus"] ==== PermissionStatus PermissionStatus defines the observed state of Permission .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permission[$$Permission$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permission[$$Permission$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`observedGeneration`* __integer__ | observedGeneration is the most recent successful generation observed for this Permission. It corresponds to the Permission's generation, which is updated on mutation by the API Server. -| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-condition[$$Condition$$]__ | +| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-condition[$$Condition$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policy"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policy"] ==== Policy Policy is the Schema for the policies API .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policylist[$$PolicyList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policylist[$$PolicyList$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `Policy` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policyspec[$$PolicySpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policystatus[$$PolicyStatus$$]__ | +| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policyspec[$$PolicySpec$$]__ | +| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policystatus[$$PolicyStatus$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policylist"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policylist"] ==== PolicyList PolicyList contains a list of Policy @@ -353,23 +353,23 @@ PolicyList contains a list of Policy [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `PolicyList` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#listmeta-v1-meta[$$ListMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policy[$$Policy$$]__ | +| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policy[$$Policy$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policyspec"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policyspec"] ==== PolicySpec PolicySpec defines the desired state of Policy https://www.rabbitmq.com/parameters.html#policies .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policy[$$Policy$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policy[$$Policy$$] **** [cols="25a,75a", options="header"] @@ -381,52 +381,52 @@ PolicySpec defines the desired state of Policy https://www.rabbitmq.com/paramete | *`applyTo`* __string__ | What this policy applies to: 'queues', 'exchanges', or 'all'. Default to 'all'. | *`priority`* __integer__ | Default to '0'. In the event that more than one policy can match a given exchange or queue, the policy with the greatest priority applies. | *`definition`* __xref:{anchor_prefix}-k8s-io-apimachinery-pkg-runtime-rawextension[$$RawExtension$$]__ | Policy definition. Required property. -| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the exchange will be created in. Required property. +| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the exchange will be created in. Required property. |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policystatus"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policystatus"] ==== PolicyStatus PolicyStatus defines the observed state of Policy .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policy[$$Policy$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policy[$$Policy$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`observedGeneration`* __integer__ | observedGeneration is the most recent successful generation observed for this Policy. It corresponds to the Policy's generation, which is updated on mutation by the API Server. -| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-condition[$$Condition$$]__ | +| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-condition[$$Condition$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queue"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queue"] ==== Queue Queue is the Schema for the queues API .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queuelist[$$QueueList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queuelist[$$QueueList$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `Queue` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queuespec[$$QueueSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queuestatus[$$QueueStatus$$]__ | +| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queuespec[$$QueueSpec$$]__ | +| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queuestatus[$$QueueStatus$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queuelist"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queuelist"] ==== QueueList QueueList contains a list of Queue @@ -436,23 +436,23 @@ QueueList contains a list of Queue [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `QueueList` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#listmeta-v1-meta[$$ListMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queue[$$Queue$$]__ | +| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queue[$$Queue$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queuespec"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queuespec"] ==== QueueSpec QueueSpec defines the desired state of Queue .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queue[$$Queue$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queue[$$Queue$$] **** [cols="25a,75a", options="header"] @@ -464,43 +464,43 @@ QueueSpec defines the desired state of Queue | *`durable`* __boolean__ | When set to false queues does not survive server restart | *`autoDelete`* __boolean__ | when set to true, queues that has at least one consumer before, are deleted after last consumer unsubscribes | *`arguments`* __xref:{anchor_prefix}-k8s-io-apimachinery-pkg-runtime-rawextension[$$RawExtension$$]__ | Queue arguments in the format of KEY: VALUE. e.g. x-delivery-limit: 10000 -| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the queue will be created in. Required property. +| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the queue will be created in. Required property. |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queuestatus"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queuestatus"] ==== QueueStatus QueueStatus defines the observed state of Queue .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queue[$$Queue$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queue[$$Queue$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`observedGeneration`* __integer__ | observedGeneration is the most recent successful generation observed for this Queue. It corresponds to the Queue's generation, which is updated on mutation by the API Server. -| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-condition[$$Condition$$]__ | +| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-condition[$$Condition$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-rabbitmqclusterreference"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-rabbitmqclusterreference"] ==== RabbitmqClusterReference .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-bindingspec[$$BindingSpec$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-exchangespec[$$ExchangeSpec$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permissionspec[$$PermissionSpec$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-policyspec[$$PolicySpec$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-queuespec[$$QueueSpec$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplicationspec[$$SchemaReplicationSpec$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-userspec[$$UserSpec$$] -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhostspec[$$VhostSpec$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-bindingspec[$$BindingSpec$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-exchangespec[$$ExchangeSpec$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permissionspec[$$PermissionSpec$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-policyspec[$$PolicySpec$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-queuespec[$$QueueSpec$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplicationspec[$$SchemaReplicationSpec$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-userspec[$$UserSpec$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhostspec[$$VhostSpec$$] **** [cols="25a,75a", options="header"] @@ -510,30 +510,30 @@ QueueStatus defines the observed state of Queue |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplication"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplication"] ==== SchemaReplication SchemaReplication is the Schema for the schemareplications API This feature requires Tanzu RabbitMQ with schema replication plugin. For more information, see: https://tanzu.vmware.com/rabbitmq and https://www.rabbitmq.com/definitions-standby.html. .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplicationlist[$$SchemaReplicationList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplicationlist[$$SchemaReplicationList$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `SchemaReplication` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplicationspec[$$SchemaReplicationSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplicationstatus[$$SchemaReplicationStatus$$]__ | +| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplicationspec[$$SchemaReplicationSpec$$]__ | +| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplicationstatus[$$SchemaReplicationStatus$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplicationlist"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplicationlist"] ==== SchemaReplicationList SchemaReplicationList contains a list of SchemaReplication @@ -543,75 +543,75 @@ SchemaReplicationList contains a list of SchemaReplication [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `SchemaReplicationList` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#listmeta-v1-meta[$$ListMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplication[$$SchemaReplication$$]__ | +| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplication[$$SchemaReplication$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplicationspec"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplicationspec"] ==== SchemaReplicationSpec SchemaReplicationSpec defines the desired state of SchemaReplication .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplication[$$SchemaReplication$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplication[$$SchemaReplication$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that schema replication would be set for. Must be an existing cluster. +| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that schema replication would be set for. Must be an existing cluster. | *`upstreamSecret`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#localobjectreference-v1-core[$$LocalObjectReference$$]__ | Defines a Secret which contains credentials to be used for schema replication. The Secret must contain the keys `endpoints`, `username` and `password` in its Data field, or operator will error. `endpoints` should be one or multiple endpoints separated by ','. |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplicationstatus"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplicationstatus"] ==== SchemaReplicationStatus SchemaReplicationStatus defines the observed state of SchemaReplication .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-schemareplication[$$SchemaReplication$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-schemareplication[$$SchemaReplication$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`observedGeneration`* __integer__ | observedGeneration is the most recent successful generation observed for this Queue. It corresponds to the Queue's generation, which is updated on mutation by the API Server. -| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-condition[$$Condition$$]__ | +| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-condition[$$Condition$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-user"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-user"] ==== User User is the Schema for the users API. .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-userlist[$$UserList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-userlist[$$UserList$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `User` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-userspec[$$UserSpec$$]__ | Spec configures the desired state of the User object. -| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-userstatus[$$UserStatus$$]__ | Status exposes the observed state of the User object. +| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-userspec[$$UserSpec$$]__ | Spec configures the desired state of the User object. +| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-userstatus[$$UserStatus$$]__ | Status exposes the observed state of the User object. |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-userlist"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-userlist"] ==== UserList UserList contains a list of Users. @@ -621,89 +621,89 @@ UserList contains a list of Users. [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `UserList` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#listmeta-v1-meta[$$ListMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-user[$$User$$]__ | +| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-user[$$User$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-userspec"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-userspec"] ==== UserSpec UserSpec defines the desired state of User. .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-user[$$User$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-user[$$User$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`tags`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-usertag[$$UserTag$$] array__ | List of permissions tags to associate with the user. This determines the level of access to the RabbitMQ management UI granted to the user. Omitting this field will lead to a user than can still connect to the cluster through messaging protocols, but cannot perform any management actions. For more information, see https://www.rabbitmq.com/management.html#permissions. -| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the user will be created for. This cluster must exist for the User object to be created. +| *`tags`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-usertag[$$UserTag$$] array__ | List of permissions tags to associate with the user. This determines the level of access to the RabbitMQ management UI granted to the user. Omitting this field will lead to a user than can still connect to the cluster through messaging protocols, but cannot perform any management actions. For more information, see https://www.rabbitmq.com/management.html#permissions. +| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the user will be created for. This cluster must exist for the User object to be created. | *`importCredentialsSecret`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#localobjectreference-v1-core[$$LocalObjectReference$$]__ | Defines a Secret used to pre-define the username and password set for this User. User objects created with this field set will not have randomly-generated credentials, and will instead import the username/password values from this Secret. The Secret must contain the keys `username` and `password` in its Data field, or the import will fail. Note that this import only occurs at creation time, and is ignored once a password has been set on a User. |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-userstatus"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-userstatus"] ==== UserStatus UserStatus defines the observed state of User. .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-user[$$User$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-user[$$User$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`observedGeneration`* __integer__ | observedGeneration is the most recent successful generation observed for this User. It corresponds to the User's generation, which is updated on mutation by the API Server. -| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-condition[$$Condition$$]__ | +| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-condition[$$Condition$$]__ | | *`credentials`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#localobjectreference-v1-core[$$LocalObjectReference$$]__ | Provides a reference to a Secret object containing the user credentials. |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-usertag"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-usertag"] ==== UserTag (string) UserTag defines the level of access to the management UI allocated to the user. For more information, see https://www.rabbitmq.com/management.html#permissions. .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-userspec[$$UserSpec$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-userspec[$$UserSpec$$] **** -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhost"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhost"] ==== Vhost Vhost is the Schema for the vhosts API .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhostlist[$$VhostList$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhostlist[$$VhostList$$] **** [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `Vhost` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#objectmeta-v1-meta[$$ObjectMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhostspec[$$VhostSpec$$]__ | -| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhoststatus[$$VhostStatus$$]__ | +| *`spec`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhostspec[$$VhostSpec$$]__ | +| *`status`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhoststatus[$$VhostStatus$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhostlist"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhostlist"] ==== VhostList VhostList contains a list of Vhost @@ -713,23 +713,23 @@ VhostList contains a list of Vhost [cols="25a,75a", options="header"] |=== | Field | Description -| *`apiVersion`* __string__ | `rabbitmq.com/v1alpha2` +| *`apiVersion`* __string__ | `rabbitmq.com/v1beta1` | *`kind`* __string__ | `VhostList` | *`TypeMeta`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#typemeta-v1-meta[$$TypeMeta$$]__ | | *`metadata`* __link:https://kubernetes.io/docs/reference/generated/kubernetes-api/v1.20/#listmeta-v1-meta[$$ListMeta$$]__ | Refer to Kubernetes API documentation for fields of `metadata`. -| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhost[$$Vhost$$]__ | +| *`items`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhost[$$Vhost$$]__ | |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhostpermissions"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhostpermissions"] ==== VhostPermissions Set of RabbitMQ permissions: configure, read and write. By not setting a property (configure/write/read), it result in an empty string which does not not match any permission. .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-permissionspec[$$PermissionSpec$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-permissionspec[$$PermissionSpec$$] **** [cols="25a,75a", options="header"] @@ -741,14 +741,14 @@ Set of RabbitMQ permissions: configure, read and write. By not setting a propert |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhostspec"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhostspec"] ==== VhostSpec VhostSpec defines the desired state of Vhost .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhost[$$Vhost$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhost[$$Vhost$$] **** [cols="25a,75a", options="header"] @@ -756,25 +756,25 @@ VhostSpec defines the desired state of Vhost | Field | Description | *`name`* __string__ | Name of the vhost; see https://www.rabbitmq.com/vhosts.html. | *`tracing`* __boolean__ | -| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the vhost will be created in. Required property. +| *`rabbitmqClusterReference`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-rabbitmqclusterreference[$$RabbitmqClusterReference$$]__ | Reference to the RabbitmqCluster that the vhost will be created in. Required property. |=== -[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhoststatus"] +[id="{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhoststatus"] ==== VhostStatus VhostStatus defines the observed state of Vhost .Appears In: **** -- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-vhost[$$Vhost$$] +- xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-vhost[$$Vhost$$] **** [cols="25a,75a", options="header"] |=== | Field | Description | *`observedGeneration`* __integer__ | observedGeneration is the most recent successful generation observed for this Vhost. It corresponds to the Vhost's generation, which is updated on mutation by the API Server. -| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1alpha2-condition[$$Condition$$]__ | +| *`conditions`* __xref:{anchor_prefix}-github.aaakk.us.kg-rabbitmq-messaging-topology-operator-api-v1beta1-condition[$$Condition$$]__ | |=== diff --git a/docs/examples/bindings/binding.yaml b/docs/examples/bindings/binding.yaml index 09563ea9..3bce2668 100644 --- a/docs/examples/bindings/binding.yaml +++ b/docs/examples/bindings/binding.yaml @@ -1,4 +1,4 @@ -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Binding metadata: name: binding diff --git a/docs/examples/exchanges/direct-exchange.yaml b/docs/examples/exchanges/direct-exchange.yaml index 795fb03b..a64a0868 100644 --- a/docs/examples/exchanges/direct-exchange.yaml +++ b/docs/examples/exchanges/direct-exchange.yaml @@ -1,6 +1,6 @@ # More on direct exchange and other exchange types, see: https://www.rabbitmq.com/tutorials/amqp-concepts.html#exchanges. --- -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Exchange metadata: name: direct diff --git a/docs/examples/exchanges/fanout-exchange.yaml b/docs/examples/exchanges/fanout-exchange.yaml index 25ac0f00..a45daf9b 100644 --- a/docs/examples/exchanges/fanout-exchange.yaml +++ b/docs/examples/exchanges/fanout-exchange.yaml @@ -1,6 +1,6 @@ # More on fanout exchange and other exchange types, see: https://www.rabbitmq.com/tutorials/amqp-concepts.html#exchanges. --- -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Exchange metadata: name: fanout diff --git a/docs/examples/permissions/permission.yaml b/docs/examples/permissions/permission.yaml index bc4f9321..2e117940 100644 --- a/docs/examples/permissions/permission.yaml +++ b/docs/examples/permissions/permission.yaml @@ -1,4 +1,4 @@ -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Permission metadata: name: testuser-permission diff --git a/docs/examples/policies/lazy-queue-policy.yaml b/docs/examples/policies/lazy-queue-policy.yaml index 3657616f..f00d3c18 100644 --- a/docs/examples/policies/lazy-queue-policy.yaml +++ b/docs/examples/policies/lazy-queue-policy.yaml @@ -1,5 +1,5 @@ --- -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Policy metadata: name: lazy-queue-policy diff --git a/docs/examples/policies/policy.yaml b/docs/examples/policies/policy.yaml index d6f36313..f907776f 100644 --- a/docs/examples/policies/policy.yaml +++ b/docs/examples/policies/policy.yaml @@ -1,4 +1,4 @@ -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Policy metadata: name: policy-example diff --git a/docs/examples/queues/lazy-queue.yaml b/docs/examples/queues/lazy-queue.yaml index 94962665..af6d2176 100644 --- a/docs/examples/queues/lazy-queue.yaml +++ b/docs/examples/queues/lazy-queue.yaml @@ -1,7 +1,7 @@ # For more information on lazy queues, see: https://www.rabbitmq.com/lazy-queues.html. # We recommmend configuring queues through policies to manage them in groups and be able to update queue configurations later on. --- -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Policy metadata: name: lazy-queue-policy @@ -16,7 +16,7 @@ spec: rabbitmqClusterReference: name: test --- -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Queue metadata: name: lazy-queue-example diff --git a/docs/examples/queues/quorum-queue.yaml b/docs/examples/queues/quorum-queue.yaml index 8efc2c78..a441adf8 100644 --- a/docs/examples/queues/quorum-queue.yaml +++ b/docs/examples/queues/quorum-queue.yaml @@ -1,7 +1,7 @@ # For more information about what/how to configure for quorum queues, see: https://www.rabbitmq.com/quorum-queues.html. # We recommmend configuring queues through policies to manage them in groups and be able to update queue configurations later on. --- -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Queue metadata: name: qq-example diff --git a/docs/examples/users/publish-consume-user.yaml b/docs/examples/users/publish-consume-user.yaml index 70fb9f6f..144ee8f1 100644 --- a/docs/examples/users/publish-consume-user.yaml +++ b/docs/examples/users/publish-consume-user.yaml @@ -8,7 +8,7 @@ data: username: dGVzdC11c2Vy # base64 encoded "test-user" password: dmVyeXNlY3VyZXB3 --- -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: User metadata: name: test-user @@ -18,7 +18,7 @@ spec: importCredentialsSecret: name: test-user-credentials --- -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Permission metadata: name: testuser-permission diff --git a/docs/examples/users/user.yaml b/docs/examples/users/user.yaml index b6bfada2..6cf82827 100644 --- a/docs/examples/users/user.yaml +++ b/docs/examples/users/user.yaml @@ -1,4 +1,4 @@ -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: User metadata: name: user-sample diff --git a/docs/examples/users/userPreDefinedCreds.yaml b/docs/examples/users/userPreDefinedCreds.yaml index 63204443..75ff3248 100644 --- a/docs/examples/users/userPreDefinedCreds.yaml +++ b/docs/examples/users/userPreDefinedCreds.yaml @@ -7,7 +7,7 @@ data: username: bXktc2VjcmV0LXVzZXI= password: d2h5YXJleW91bG9va2luZ2hlcmU= --- -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: User metadata: name: import-user-sample diff --git a/docs/examples/vhosts/vhost.yaml b/docs/examples/vhosts/vhost.yaml index 44d8f683..7e9ea756 100644 --- a/docs/examples/vhosts/vhost.yaml +++ b/docs/examples/vhosts/vhost.yaml @@ -1,4 +1,4 @@ -apiVersion: rabbitmq.com/v1alpha2 +apiVersion: rabbitmq.com/v1beta1 kind: Vhost metadata: name: test-vhost diff --git a/hack/update-codegen.sh b/hack/update-codegen.sh index 692b1626..f7cf8db3 100755 --- a/hack/update-codegen.sh +++ b/hack/update-codegen.sh @@ -14,8 +14,8 @@ CODEGEN_OUTPUT_BASE="${SCRIPT_ROOT}"/output CODEGEN_OUTPUT_GENERATED="${CODEGEN_OUTPUT_BASE}"/github.com/rabbitmq/messaging-topology-operator/pkg/generated # Move the API files to here so that codegen can find them properly (wants the group as part of the name) -mkdir -p api/rabbitmq.com/v1alpha2 -cp api/v1alpha2/* api/rabbitmq.com/v1alpha2/ +mkdir -p api/rabbitmq.com/v1beta1 +cp api/v1beta1/* api/rabbitmq.com/v1beta1/ # generate the code with: # --output-base because this script should also be able to run inside the vendor dir of @@ -25,7 +25,7 @@ cp api/v1alpha2/* api/rabbitmq.com/v1alpha2/ # Deepcopy is generated by operator-sdk bash "${CODEGEN_PKG}"/generate-groups.sh "client,informer,lister" \ github.com/rabbitmq/messaging-topology-operator/pkg/generated github.com/rabbitmq/messaging-topology-operator/api \ - rabbitmq.com:v1alpha2 \ + rabbitmq.com:v1beta1 \ --go-header-file "${SCRIPT_ROOT}"/hack/NOTICE.go.txt --output-base "${CODEGEN_OUTPUT_BASE}" if [ -d "${CODEGEN_OUTPUT_GENERATED}" ]; then @@ -38,11 +38,11 @@ fi # Clean up the tmp move rm -rf api/rabbitmq.com -# Kubebuilder project layout has api under 'api/v1alpha2' -# client-go codegen expects group name in the path ie. 'api/rabbitmq.com/v1alpha2' +# Kubebuilder project layout has api under 'api/v1beta1' +# client-go codegen expects group name in the path ie. 'api/rabbitmq.com/v1beta1' # Because there's no way how to modify any of these settings, # we need to hack things a little bit (replace the name of package) find pkg/generated -type f -name "*.go" |\ -xargs sed -i".out" -e "s#github.com/rabbitmq/messaging-topology-operator/api/rabbitmq.com/v1alpha2#github.com/rabbitmq/messaging-topology-operator/api/v1alpha2#g" +xargs sed -i".out" -e "s#github.com/rabbitmq/messaging-topology-operator/api/rabbitmq.com/v1beta1#github.com/rabbitmq/messaging-topology-operator/api/v1beta1#g" find pkg/generated -type f -name "*.go.out" | xargs rm -rf diff --git a/internal/binding.go b/internal/binding.go index 94fcbda7..e0eb5c7a 100644 --- a/internal/binding.go +++ b/internal/binding.go @@ -13,7 +13,7 @@ import ( "encoding/json" "fmt" rabbithole "github.com/michaelklishin/rabbit-hole/v2" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "strings" ) diff --git a/internal/binding_test.go b/internal/binding_test.go index 9e04788c..90bec49d 100644 --- a/internal/binding_test.go +++ b/internal/binding_test.go @@ -3,7 +3,7 @@ package internal_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/internal" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" diff --git a/internal/cluster_reference.go b/internal/cluster_reference.go index ca0c6c28..96be683a 100644 --- a/internal/cluster_reference.go +++ b/internal/cluster_reference.go @@ -6,7 +6,7 @@ import ( "fmt" rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/api/v1beta1" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" corev1 "k8s.io/api/core/v1" "k8s.io/apimachinery/pkg/types" "sigs.k8s.io/controller-runtime/pkg/client" diff --git a/internal/cluster_reference_test.go b/internal/cluster_reference_test.go index a112980d..30344351 100644 --- a/internal/cluster_reference_test.go +++ b/internal/cluster_reference_test.go @@ -6,7 +6,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/api/v1beta1" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/internal" corev1 "k8s.io/api/core/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" diff --git a/internal/exchange_settings.go b/internal/exchange_settings.go index bcbe86a8..f008a1c9 100644 --- a/internal/exchange_settings.go +++ b/internal/exchange_settings.go @@ -13,7 +13,7 @@ import ( "encoding/json" "fmt" rabbithole "github.com/michaelklishin/rabbit-hole/v2" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) func GenerateExchangeSettings(e *topology.Exchange) (*rabbithole.ExchangeSettings, error) { diff --git a/internal/exchange_settings_test.go b/internal/exchange_settings_test.go index 5d71ac85..ede92de9 100644 --- a/internal/exchange_settings_test.go +++ b/internal/exchange_settings_test.go @@ -3,7 +3,7 @@ package internal_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/internal" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" diff --git a/internal/permissions.go b/internal/permissions.go index 75875b2e..e6168748 100644 --- a/internal/permissions.go +++ b/internal/permissions.go @@ -11,7 +11,7 @@ package internal import ( rabbithole "github.com/michaelklishin/rabbit-hole/v2" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) func GeneratePermissions(p *topology.Permission) rabbithole.Permissions { diff --git a/internal/permissions_test.go b/internal/permissions_test.go index ce6f5101..e1ced0ff 100644 --- a/internal/permissions_test.go +++ b/internal/permissions_test.go @@ -3,7 +3,7 @@ package internal_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" . "github.com/rabbitmq/messaging-topology-operator/internal" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/internal/policy.go b/internal/policy.go index 24e6248b..f1ceb346 100644 --- a/internal/policy.go +++ b/internal/policy.go @@ -13,7 +13,7 @@ import ( "encoding/json" "fmt" rabbithole "github.com/michaelklishin/rabbit-hole/v2" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) func GeneratePolicy(p *topology.Policy) (*rabbithole.Policy, error) { diff --git a/internal/policy_test.go b/internal/policy_test.go index ddeb5b1d..fffa310c 100644 --- a/internal/policy_test.go +++ b/internal/policy_test.go @@ -3,7 +3,7 @@ package internal_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" . "github.com/rabbitmq/messaging-topology-operator/internal" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" diff --git a/internal/queue_settings.go b/internal/queue_settings.go index 8f7065bd..4b7751cc 100644 --- a/internal/queue_settings.go +++ b/internal/queue_settings.go @@ -13,7 +13,7 @@ import ( "encoding/json" "fmt" rabbithole "github.com/michaelklishin/rabbit-hole/v2" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) // generates rabbithole.QueueSettings for a given Queue diff --git a/internal/queue_settings_test.go b/internal/queue_settings_test.go index c972eb93..8509a2ef 100644 --- a/internal/queue_settings_test.go +++ b/internal/queue_settings_test.go @@ -3,7 +3,7 @@ package internal_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/internal" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" diff --git a/internal/user_settings.go b/internal/user_settings.go index e934886e..67dbcda2 100644 --- a/internal/user_settings.go +++ b/internal/user_settings.go @@ -13,7 +13,7 @@ import ( "fmt" rabbithole "github.com/michaelklishin/rabbit-hole/v2" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" corev1 "k8s.io/api/core/v1" ) diff --git a/internal/user_settings_test.go b/internal/user_settings_test.go index 240b4cc6..c2684410 100644 --- a/internal/user_settings_test.go +++ b/internal/user_settings_test.go @@ -7,7 +7,7 @@ import ( rabbithole "github.com/michaelklishin/rabbit-hole/v2" . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/internal" corev1 "k8s.io/api/core/v1" ) diff --git a/internal/vhost_settings.go b/internal/vhost_settings.go index 0694750e..348f69f7 100644 --- a/internal/vhost_settings.go +++ b/internal/vhost_settings.go @@ -11,7 +11,7 @@ package internal import ( rabbithole "github.com/michaelklishin/rabbit-hole/v2" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) func GenerateVhostSettings(v *topology.Vhost) *rabbithole.VhostSettings { diff --git a/internal/vhost_settings_test.go b/internal/vhost_settings_test.go index 30f185d7..9485460f 100644 --- a/internal/vhost_settings_test.go +++ b/internal/vhost_settings_test.go @@ -3,7 +3,7 @@ package internal_test import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/internal" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" ) diff --git a/main.go b/main.go index afddab76..0913aa3e 100644 --- a/main.go +++ b/main.go @@ -21,7 +21,7 @@ import ( rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/api/v1beta1" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/controllers" "github.com/rabbitmq/messaging-topology-operator/internal" // +kubebuilder:scaffold:imports diff --git a/system_tests/binding_system_test.go b/system_tests/binding_system_test.go index 9bb17a76..18e71465 100644 --- a/system_tests/binding_system_test.go +++ b/system_tests/binding_system_test.go @@ -13,7 +13,7 @@ import ( . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) var _ = Describe("Binding", func() { diff --git a/system_tests/deletion_system_test.go b/system_tests/deletion_system_test.go index 0e17f978..39596125 100644 --- a/system_tests/deletion_system_test.go +++ b/system_tests/deletion_system_test.go @@ -4,7 +4,7 @@ import ( "context" rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/api/v1beta1" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" diff --git a/system_tests/exchange_system_test.go b/system_tests/exchange_system_test.go index 176d1c3b..f503b449 100644 --- a/system_tests/exchange_system_test.go +++ b/system_tests/exchange_system_test.go @@ -14,7 +14,7 @@ import ( . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) var _ = Describe("Exchange", func() { diff --git a/system_tests/permissions_system_test.go b/system_tests/permissions_system_test.go index 154ee78e..60d5429c 100644 --- a/system_tests/permissions_system_test.go +++ b/system_tests/permissions_system_test.go @@ -12,7 +12,7 @@ import ( . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) var _ = Describe("Permission", func() { diff --git a/system_tests/policy_system_test.go b/system_tests/policy_system_test.go index b705a09a..f2df8a9c 100644 --- a/system_tests/policy_system_test.go +++ b/system_tests/policy_system_test.go @@ -13,7 +13,7 @@ import ( . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) var _ = Describe("Policy", func() { diff --git a/system_tests/queue_system_test.go b/system_tests/queue_system_test.go index 6aa62333..7ad55baf 100644 --- a/system_tests/queue_system_test.go +++ b/system_tests/queue_system_test.go @@ -14,7 +14,7 @@ import ( . "github.com/onsi/gomega" . "github.com/onsi/gomega/gstruct" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) var _ = Describe("Queue Controller", func() { diff --git a/system_tests/schema_replication_system_test.go b/system_tests/schema_replication_system_test.go index 1619d865..aeb370f7 100644 --- a/system_tests/schema_replication_system_test.go +++ b/system_tests/schema_replication_system_test.go @@ -11,7 +11,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) var _ = Describe("schema replication", func() { diff --git a/system_tests/suite_test.go b/system_tests/suite_test.go index 9936e444..dcf63190 100644 --- a/system_tests/suite_test.go +++ b/system_tests/suite_test.go @@ -17,7 +17,7 @@ import ( metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" rabbithole "github.com/michaelklishin/rabbit-hole/v2" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "k8s.io/client-go/kubernetes" . "github.com/onsi/ginkgo" diff --git a/system_tests/tls_system_test.go b/system_tests/tls_system_test.go index 10de7ac3..47301249 100644 --- a/system_tests/tls_system_test.go +++ b/system_tests/tls_system_test.go @@ -6,7 +6,7 @@ import ( "github.com/google/uuid" rabbitmqv1beta1 "github.com/rabbitmq/cluster-operator/api/v1beta1" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/types" diff --git a/system_tests/user_system_test.go b/system_tests/user_system_test.go index c5f86faa..743cc720 100644 --- a/system_tests/user_system_test.go +++ b/system_tests/user_system_test.go @@ -13,7 +13,7 @@ import ( . "github.com/onsi/gomega/gstruct" "k8s.io/apimachinery/pkg/types" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) var _ = Describe("Users", func() { diff --git a/system_tests/vhost_system_test.go b/system_tests/vhost_system_test.go index 105acbd2..190e3f63 100644 --- a/system_tests/vhost_system_test.go +++ b/system_tests/vhost_system_test.go @@ -11,7 +11,7 @@ import ( . "github.com/onsi/ginkgo" . "github.com/onsi/gomega" - topology "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + topology "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" ) var _ = Describe("vhost", func() { From ffe92c8e9ea33b804306f27fb404764d4cdc0921 Mon Sep 17 00:00:00 2001 From: Chunyi Lyu Date: Tue, 27 Apr 2021 17:29:55 +0100 Subject: [PATCH 2/3] Regenerate clientset for v1beta1 --- .../clientset/versioned/clientset.go | 18 +- .../versioned/fake/clientset_generated.go | 10 +- .../clientset/versioned/fake/register.go | 4 +- .../clientset/versioned/scheme/register.go | 4 +- .../{v1alpha2 => v1beta1}/binding.go | 42 ++-- .../rabbitmq.com/{v1alpha2 => v1beta1}/doc.go | 2 +- .../{v1alpha2 => v1beta1}/exchange.go | 42 ++-- .../{v1alpha2 => v1beta1}/fake/doc.go | 0 .../fake/fake_binding.go | 50 ++--- .../fake/fake_exchange.go | 50 ++--- .../v1beta1/fake/fake_permission.go | 135 +++++++++++++ .../{v1alpha2 => v1beta1}/fake/fake_policy.go | 50 ++--- .../{v1alpha2 => v1beta1}/fake/fake_queue.go | 50 ++--- .../fake/fake_rabbitmq.com_client.go | 26 ++- .../v1beta1/fake/fake_schemareplication.go | 135 +++++++++++++ .../{v1alpha2 => v1beta1}/fake/fake_user.go | 50 ++--- .../{v1alpha2 => v1beta1}/fake/fake_vhost.go | 50 ++--- .../generated_expansion.go | 6 +- .../typed/rabbitmq.com/v1beta1/permission.go | 188 ++++++++++++++++++ .../{v1alpha2 => v1beta1}/policy.go | 42 ++-- .../{v1alpha2 => v1beta1}/queue.go | 42 ++-- .../rabbitmq.com_client.go | 52 +++-- .../rabbitmq.com/v1beta1/schemareplication.go | 188 ++++++++++++++++++ .../{v1alpha2 => v1beta1}/user.go | 42 ++-- .../{v1alpha2 => v1beta1}/vhost.go | 42 ++-- .../informers/externalversions/generic.go | 32 +-- .../rabbitmq.com/interface.go | 12 +- .../{v1alpha2 => v1beta1}/binding.go | 20 +- .../{v1alpha2 => v1beta1}/exchange.go | 20 +- .../{v1alpha2 => v1beta1}/interface.go | 16 +- .../rabbitmq.com/v1beta1/permission.go | 83 ++++++++ .../{v1alpha2 => v1beta1}/policy.go | 20 +- .../{v1alpha2 => v1beta1}/queue.go | 20 +- .../rabbitmq.com/v1beta1/schemareplication.go | 83 ++++++++ .../{v1alpha2 => v1beta1}/user.go | 20 +- .../{v1alpha2 => v1beta1}/vhost.go | 20 +- .../{v1alpha2 => v1beta1}/binding.go | 24 +-- .../{v1alpha2 => v1beta1}/exchange.go | 24 +-- .../expansion_generated.go | 18 +- .../rabbitmq.com/v1beta1/permission.go | 92 +++++++++ .../{v1alpha2 => v1beta1}/policy.go | 24 +-- .../{v1alpha2 => v1beta1}/queue.go | 24 +-- .../rabbitmq.com/v1beta1/schemareplication.go | 92 +++++++++ .../{v1alpha2 => v1beta1}/user.go | 24 +-- .../{v1alpha2 => v1beta1}/vhost.go | 24 +-- 45 files changed, 1532 insertions(+), 480 deletions(-) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/binding.go (79%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/doc.go (97%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/exchange.go (78%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/fake/doc.go (100%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/fake/fake_binding.go (74%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/fake/fake_exchange.go (76%) create mode 100644 pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_permission.go rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/fake/fake_policy.go (74%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/fake/fake_queue.go (74%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/fake/fake_rabbitmq.com_client.go (51%) create mode 100644 pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_schemareplication.go rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/fake/fake_user.go (73%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/fake/fake_vhost.go (74%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/generated_expansion.go (88%) create mode 100644 pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/permission.go rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/policy.go (78%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/queue.go (78%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/rabbitmq.com_client.go (52%) create mode 100644 pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/schemareplication.go rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/user.go (79%) rename pkg/generated/clientset/versioned/typed/rabbitmq.com/{v1alpha2 => v1beta1}/vhost.go (78%) rename pkg/generated/informers/externalversions/rabbitmq.com/{v1alpha2 => v1beta1}/binding.go (82%) rename pkg/generated/informers/externalversions/rabbitmq.com/{v1alpha2 => v1beta1}/exchange.go (82%) rename pkg/generated/informers/externalversions/rabbitmq.com/{v1alpha2 => v1beta1}/interface.go (80%) create mode 100644 pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/permission.go rename pkg/generated/informers/externalversions/rabbitmq.com/{v1alpha2 => v1beta1}/policy.go (82%) rename pkg/generated/informers/externalversions/rabbitmq.com/{v1alpha2 => v1beta1}/queue.go (83%) create mode 100644 pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/schemareplication.go rename pkg/generated/informers/externalversions/rabbitmq.com/{v1alpha2 => v1beta1}/user.go (83%) rename pkg/generated/informers/externalversions/rabbitmq.com/{v1alpha2 => v1beta1}/vhost.go (83%) rename pkg/generated/listers/rabbitmq.com/{v1alpha2 => v1beta1}/binding.go (81%) rename pkg/generated/listers/rabbitmq.com/{v1alpha2 => v1beta1}/exchange.go (81%) rename pkg/generated/listers/rabbitmq.com/{v1alpha2 => v1beta1}/expansion_generated.go (76%) create mode 100644 pkg/generated/listers/rabbitmq.com/v1beta1/permission.go rename pkg/generated/listers/rabbitmq.com/{v1alpha2 => v1beta1}/policy.go (82%) rename pkg/generated/listers/rabbitmq.com/{v1alpha2 => v1beta1}/queue.go (80%) create mode 100644 pkg/generated/listers/rabbitmq.com/v1beta1/schemareplication.go rename pkg/generated/listers/rabbitmq.com/{v1alpha2 => v1beta1}/user.go (80%) rename pkg/generated/listers/rabbitmq.com/{v1alpha2 => v1beta1}/vhost.go (80%) diff --git a/pkg/generated/clientset/versioned/clientset.go b/pkg/generated/clientset/versioned/clientset.go index 22ff9db1..fa214d30 100644 --- a/pkg/generated/clientset/versioned/clientset.go +++ b/pkg/generated/clientset/versioned/clientset.go @@ -14,7 +14,7 @@ package versioned import ( "fmt" - rabbitmqv1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2" + rabbitmqv1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1" discovery "k8s.io/client-go/discovery" rest "k8s.io/client-go/rest" flowcontrol "k8s.io/client-go/util/flowcontrol" @@ -22,19 +22,19 @@ import ( type Interface interface { Discovery() discovery.DiscoveryInterface - RabbitmqV1alpha2() rabbitmqv1alpha2.RabbitmqV1alpha2Interface + RabbitmqV1beta1() rabbitmqv1beta1.RabbitmqV1beta1Interface } // Clientset contains the clients for groups. Each group has exactly one // version included in a Clientset. type Clientset struct { *discovery.DiscoveryClient - rabbitmqV1alpha2 *rabbitmqv1alpha2.RabbitmqV1alpha2Client + rabbitmqV1beta1 *rabbitmqv1beta1.RabbitmqV1beta1Client } -// RabbitmqV1alpha2 retrieves the RabbitmqV1alpha2Client -func (c *Clientset) RabbitmqV1alpha2() rabbitmqv1alpha2.RabbitmqV1alpha2Interface { - return c.rabbitmqV1alpha2 +// RabbitmqV1beta1 retrieves the RabbitmqV1beta1Client +func (c *Clientset) RabbitmqV1beta1() rabbitmqv1beta1.RabbitmqV1beta1Interface { + return c.rabbitmqV1beta1 } // Discovery retrieves the DiscoveryClient @@ -58,7 +58,7 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { } var cs Clientset var err error - cs.rabbitmqV1alpha2, err = rabbitmqv1alpha2.NewForConfig(&configShallowCopy) + cs.rabbitmqV1beta1, err = rabbitmqv1beta1.NewForConfig(&configShallowCopy) if err != nil { return nil, err } @@ -74,7 +74,7 @@ func NewForConfig(c *rest.Config) (*Clientset, error) { // panics if there is an error in the config. func NewForConfigOrDie(c *rest.Config) *Clientset { var cs Clientset - cs.rabbitmqV1alpha2 = rabbitmqv1alpha2.NewForConfigOrDie(c) + cs.rabbitmqV1beta1 = rabbitmqv1beta1.NewForConfigOrDie(c) cs.DiscoveryClient = discovery.NewDiscoveryClientForConfigOrDie(c) return &cs @@ -83,7 +83,7 @@ func NewForConfigOrDie(c *rest.Config) *Clientset { // New creates a new Clientset for the given RESTClient. func New(c rest.Interface) *Clientset { var cs Clientset - cs.rabbitmqV1alpha2 = rabbitmqv1alpha2.New(c) + cs.rabbitmqV1beta1 = rabbitmqv1beta1.New(c) cs.DiscoveryClient = discovery.NewDiscoveryClient(c) return &cs diff --git a/pkg/generated/clientset/versioned/fake/clientset_generated.go b/pkg/generated/clientset/versioned/fake/clientset_generated.go index 5a22f531..0e4a2d63 100644 --- a/pkg/generated/clientset/versioned/fake/clientset_generated.go +++ b/pkg/generated/clientset/versioned/fake/clientset_generated.go @@ -13,8 +13,8 @@ package fake import ( clientset "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned" - rabbitmqv1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2" - fakerabbitmqv1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake" + rabbitmqv1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1" + fakerabbitmqv1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake" "k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/watch" "k8s.io/client-go/discovery" @@ -69,7 +69,7 @@ func (c *Clientset) Tracker() testing.ObjectTracker { var _ clientset.Interface = &Clientset{} -// RabbitmqV1alpha2 retrieves the RabbitmqV1alpha2Client -func (c *Clientset) RabbitmqV1alpha2() rabbitmqv1alpha2.RabbitmqV1alpha2Interface { - return &fakerabbitmqv1alpha2.FakeRabbitmqV1alpha2{Fake: &c.Fake} +// RabbitmqV1beta1 retrieves the RabbitmqV1beta1Client +func (c *Clientset) RabbitmqV1beta1() rabbitmqv1beta1.RabbitmqV1beta1Interface { + return &fakerabbitmqv1beta1.FakeRabbitmqV1beta1{Fake: &c.Fake} } diff --git a/pkg/generated/clientset/versioned/fake/register.go b/pkg/generated/clientset/versioned/fake/register.go index 6c9ce44b..363c3eca 100644 --- a/pkg/generated/clientset/versioned/fake/register.go +++ b/pkg/generated/clientset/versioned/fake/register.go @@ -12,7 +12,7 @@ This product may include a number of subcomponents with separate copyright notic package fake import ( - rabbitmqv1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + rabbitmqv1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -24,7 +24,7 @@ var scheme = runtime.NewScheme() var codecs = serializer.NewCodecFactory(scheme) var localSchemeBuilder = runtime.SchemeBuilder{ - rabbitmqv1alpha2.AddToScheme, + rabbitmqv1beta1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/pkg/generated/clientset/versioned/scheme/register.go b/pkg/generated/clientset/versioned/scheme/register.go index f6074708..dba22fb8 100644 --- a/pkg/generated/clientset/versioned/scheme/register.go +++ b/pkg/generated/clientset/versioned/scheme/register.go @@ -12,7 +12,7 @@ This product may include a number of subcomponents with separate copyright notic package scheme import ( - rabbitmqv1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + rabbitmqv1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -24,7 +24,7 @@ var Scheme = runtime.NewScheme() var Codecs = serializer.NewCodecFactory(Scheme) var ParameterCodec = runtime.NewParameterCodec(Scheme) var localSchemeBuilder = runtime.SchemeBuilder{ - rabbitmqv1alpha2.AddToScheme, + rabbitmqv1beta1.AddToScheme, } // AddToScheme adds all types of this clientset into the given scheme. This allows composition diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/binding.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/binding.go similarity index 79% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/binding.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/binding.go index 9cecbafe..f2dd37e3 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/binding.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/binding.go @@ -9,13 +9,13 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by client-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" "time" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" scheme "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -31,15 +31,15 @@ type BindingsGetter interface { // BindingInterface has methods to work with Binding resources. type BindingInterface interface { - Create(ctx context.Context, binding *v1alpha2.Binding, opts v1.CreateOptions) (*v1alpha2.Binding, error) - Update(ctx context.Context, binding *v1alpha2.Binding, opts v1.UpdateOptions) (*v1alpha2.Binding, error) - UpdateStatus(ctx context.Context, binding *v1alpha2.Binding, opts v1.UpdateOptions) (*v1alpha2.Binding, error) + Create(ctx context.Context, binding *v1beta1.Binding, opts v1.CreateOptions) (*v1beta1.Binding, error) + Update(ctx context.Context, binding *v1beta1.Binding, opts v1.UpdateOptions) (*v1beta1.Binding, error) + UpdateStatus(ctx context.Context, binding *v1beta1.Binding, opts v1.UpdateOptions) (*v1beta1.Binding, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Binding, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.BindingList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Binding, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.BindingList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Binding, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Binding, err error) BindingExpansion } @@ -50,7 +50,7 @@ type bindings struct { } // newBindings returns a Bindings -func newBindings(c *RabbitmqV1alpha2Client, namespace string) *bindings { +func newBindings(c *RabbitmqV1beta1Client, namespace string) *bindings { return &bindings{ client: c.RESTClient(), ns: namespace, @@ -58,8 +58,8 @@ func newBindings(c *RabbitmqV1alpha2Client, namespace string) *bindings { } // Get takes name of the binding, and returns the corresponding binding object, and an error if there is any. -func (c *bindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Binding, err error) { - result = &v1alpha2.Binding{} +func (c *bindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Binding, err error) { + result = &v1beta1.Binding{} err = c.client.Get(). Namespace(c.ns). Resource("bindings"). @@ -71,12 +71,12 @@ func (c *bindings) Get(ctx context.Context, name string, options v1.GetOptions) } // List takes label and field selectors, and returns the list of Bindings that match those selectors. -func (c *bindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.BindingList, err error) { +func (c *bindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BindingList, err error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second } - result = &v1alpha2.BindingList{} + result = &v1beta1.BindingList{} err = c.client.Get(). Namespace(c.ns). Resource("bindings"). @@ -103,8 +103,8 @@ func (c *bindings) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interf } // Create takes the representation of a binding and creates it. Returns the server's representation of the binding, and an error, if there is any. -func (c *bindings) Create(ctx context.Context, binding *v1alpha2.Binding, opts v1.CreateOptions) (result *v1alpha2.Binding, err error) { - result = &v1alpha2.Binding{} +func (c *bindings) Create(ctx context.Context, binding *v1beta1.Binding, opts v1.CreateOptions) (result *v1beta1.Binding, err error) { + result = &v1beta1.Binding{} err = c.client.Post(). Namespace(c.ns). Resource("bindings"). @@ -116,8 +116,8 @@ func (c *bindings) Create(ctx context.Context, binding *v1alpha2.Binding, opts v } // Update takes the representation of a binding and updates it. Returns the server's representation of the binding, and an error, if there is any. -func (c *bindings) Update(ctx context.Context, binding *v1alpha2.Binding, opts v1.UpdateOptions) (result *v1alpha2.Binding, err error) { - result = &v1alpha2.Binding{} +func (c *bindings) Update(ctx context.Context, binding *v1beta1.Binding, opts v1.UpdateOptions) (result *v1beta1.Binding, err error) { + result = &v1beta1.Binding{} err = c.client.Put(). Namespace(c.ns). Resource("bindings"). @@ -131,8 +131,8 @@ func (c *bindings) Update(ctx context.Context, binding *v1alpha2.Binding, opts v // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *bindings) UpdateStatus(ctx context.Context, binding *v1alpha2.Binding, opts v1.UpdateOptions) (result *v1alpha2.Binding, err error) { - result = &v1alpha2.Binding{} +func (c *bindings) UpdateStatus(ctx context.Context, binding *v1beta1.Binding, opts v1.UpdateOptions) (result *v1beta1.Binding, err error) { + result = &v1beta1.Binding{} err = c.client.Put(). Namespace(c.ns). Resource("bindings"). @@ -173,8 +173,8 @@ func (c *bindings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, } // Patch applies the patch and returns the patched binding. -func (c *bindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Binding, err error) { - result = &v1alpha2.Binding{} +func (c *bindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Binding, err error) { + result = &v1beta1.Binding{} err = c.client.Patch(pt). Namespace(c.ns). Resource("bindings"). diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/doc.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/doc.go similarity index 97% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/doc.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/doc.go index 98ae55b2..56984947 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/doc.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/doc.go @@ -10,4 +10,4 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by client-gen. DO NOT EDIT. // This package has the automatically generated typed clients. -package v1alpha2 +package v1beta1 diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/exchange.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/exchange.go similarity index 78% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/exchange.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/exchange.go index 8f1f109c..afaa5061 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/exchange.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/exchange.go @@ -9,13 +9,13 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by client-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" "time" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" scheme "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -31,15 +31,15 @@ type ExchangesGetter interface { // ExchangeInterface has methods to work with Exchange resources. type ExchangeInterface interface { - Create(ctx context.Context, exchange *v1alpha2.Exchange, opts v1.CreateOptions) (*v1alpha2.Exchange, error) - Update(ctx context.Context, exchange *v1alpha2.Exchange, opts v1.UpdateOptions) (*v1alpha2.Exchange, error) - UpdateStatus(ctx context.Context, exchange *v1alpha2.Exchange, opts v1.UpdateOptions) (*v1alpha2.Exchange, error) + Create(ctx context.Context, exchange *v1beta1.Exchange, opts v1.CreateOptions) (*v1beta1.Exchange, error) + Update(ctx context.Context, exchange *v1beta1.Exchange, opts v1.UpdateOptions) (*v1beta1.Exchange, error) + UpdateStatus(ctx context.Context, exchange *v1beta1.Exchange, opts v1.UpdateOptions) (*v1beta1.Exchange, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Exchange, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.ExchangeList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Exchange, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.ExchangeList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Exchange, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Exchange, err error) ExchangeExpansion } @@ -50,7 +50,7 @@ type exchanges struct { } // newExchanges returns a Exchanges -func newExchanges(c *RabbitmqV1alpha2Client, namespace string) *exchanges { +func newExchanges(c *RabbitmqV1beta1Client, namespace string) *exchanges { return &exchanges{ client: c.RESTClient(), ns: namespace, @@ -58,8 +58,8 @@ func newExchanges(c *RabbitmqV1alpha2Client, namespace string) *exchanges { } // Get takes name of the exchange, and returns the corresponding exchange object, and an error if there is any. -func (c *exchanges) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Exchange, err error) { - result = &v1alpha2.Exchange{} +func (c *exchanges) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Exchange, err error) { + result = &v1beta1.Exchange{} err = c.client.Get(). Namespace(c.ns). Resource("exchanges"). @@ -71,12 +71,12 @@ func (c *exchanges) Get(ctx context.Context, name string, options v1.GetOptions) } // List takes label and field selectors, and returns the list of Exchanges that match those selectors. -func (c *exchanges) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ExchangeList, err error) { +func (c *exchanges) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ExchangeList, err error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second } - result = &v1alpha2.ExchangeList{} + result = &v1beta1.ExchangeList{} err = c.client.Get(). Namespace(c.ns). Resource("exchanges"). @@ -103,8 +103,8 @@ func (c *exchanges) Watch(ctx context.Context, opts v1.ListOptions) (watch.Inter } // Create takes the representation of a exchange and creates it. Returns the server's representation of the exchange, and an error, if there is any. -func (c *exchanges) Create(ctx context.Context, exchange *v1alpha2.Exchange, opts v1.CreateOptions) (result *v1alpha2.Exchange, err error) { - result = &v1alpha2.Exchange{} +func (c *exchanges) Create(ctx context.Context, exchange *v1beta1.Exchange, opts v1.CreateOptions) (result *v1beta1.Exchange, err error) { + result = &v1beta1.Exchange{} err = c.client.Post(). Namespace(c.ns). Resource("exchanges"). @@ -116,8 +116,8 @@ func (c *exchanges) Create(ctx context.Context, exchange *v1alpha2.Exchange, opt } // Update takes the representation of a exchange and updates it. Returns the server's representation of the exchange, and an error, if there is any. -func (c *exchanges) Update(ctx context.Context, exchange *v1alpha2.Exchange, opts v1.UpdateOptions) (result *v1alpha2.Exchange, err error) { - result = &v1alpha2.Exchange{} +func (c *exchanges) Update(ctx context.Context, exchange *v1beta1.Exchange, opts v1.UpdateOptions) (result *v1beta1.Exchange, err error) { + result = &v1beta1.Exchange{} err = c.client.Put(). Namespace(c.ns). Resource("exchanges"). @@ -131,8 +131,8 @@ func (c *exchanges) Update(ctx context.Context, exchange *v1alpha2.Exchange, opt // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *exchanges) UpdateStatus(ctx context.Context, exchange *v1alpha2.Exchange, opts v1.UpdateOptions) (result *v1alpha2.Exchange, err error) { - result = &v1alpha2.Exchange{} +func (c *exchanges) UpdateStatus(ctx context.Context, exchange *v1beta1.Exchange, opts v1.UpdateOptions) (result *v1beta1.Exchange, err error) { + result = &v1beta1.Exchange{} err = c.client.Put(). Namespace(c.ns). Resource("exchanges"). @@ -173,8 +173,8 @@ func (c *exchanges) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, } // Patch applies the patch and returns the patched exchange. -func (c *exchanges) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Exchange, err error) { - result = &v1alpha2.Exchange{} +func (c *exchanges) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Exchange, err error) { + result = &v1beta1.Exchange{} err = c.client.Patch(pt). Namespace(c.ns). Resource("exchanges"). diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/doc.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/doc.go similarity index 100% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/doc.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/doc.go diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_binding.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_binding.go similarity index 74% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_binding.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_binding.go index 5f602c8c..3f836666 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_binding.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_binding.go @@ -14,7 +14,7 @@ package fake import ( "context" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -25,29 +25,29 @@ import ( // FakeBindings implements BindingInterface type FakeBindings struct { - Fake *FakeRabbitmqV1alpha2 + Fake *FakeRabbitmqV1beta1 ns string } -var bindingsResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1alpha2", Resource: "bindings"} +var bindingsResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1beta1", Resource: "bindings"} -var bindingsKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1alpha2", Kind: "Binding"} +var bindingsKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1beta1", Kind: "Binding"} // Get takes name of the binding, and returns the corresponding binding object, and an error if there is any. -func (c *FakeBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Binding, err error) { +func (c *FakeBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Binding, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(bindingsResource, c.ns, name), &v1alpha2.Binding{}) + Invokes(testing.NewGetAction(bindingsResource, c.ns, name), &v1beta1.Binding{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Binding), err + return obj.(*v1beta1.Binding), err } // List takes label and field selectors, and returns the list of Bindings that match those selectors. -func (c *FakeBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.BindingList, err error) { +func (c *FakeBindings) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BindingList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(bindingsResource, bindingsKind, c.ns, opts), &v1alpha2.BindingList{}) + Invokes(testing.NewListAction(bindingsResource, bindingsKind, c.ns, opts), &v1beta1.BindingList{}) if obj == nil { return nil, err @@ -57,8 +57,8 @@ func (c *FakeBindings) List(ctx context.Context, opts v1.ListOptions) (result *v if label == nil { label = labels.Everything() } - list := &v1alpha2.BindingList{ListMeta: obj.(*v1alpha2.BindingList).ListMeta} - for _, item := range obj.(*v1alpha2.BindingList).Items { + list := &v1beta1.BindingList{ListMeta: obj.(*v1beta1.BindingList).ListMeta} + for _, item := range obj.(*v1beta1.BindingList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -74,43 +74,43 @@ func (c *FakeBindings) Watch(ctx context.Context, opts v1.ListOptions) (watch.In } // Create takes the representation of a binding and creates it. Returns the server's representation of the binding, and an error, if there is any. -func (c *FakeBindings) Create(ctx context.Context, binding *v1alpha2.Binding, opts v1.CreateOptions) (result *v1alpha2.Binding, err error) { +func (c *FakeBindings) Create(ctx context.Context, binding *v1beta1.Binding, opts v1.CreateOptions) (result *v1beta1.Binding, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(bindingsResource, c.ns, binding), &v1alpha2.Binding{}) + Invokes(testing.NewCreateAction(bindingsResource, c.ns, binding), &v1beta1.Binding{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Binding), err + return obj.(*v1beta1.Binding), err } // Update takes the representation of a binding and updates it. Returns the server's representation of the binding, and an error, if there is any. -func (c *FakeBindings) Update(ctx context.Context, binding *v1alpha2.Binding, opts v1.UpdateOptions) (result *v1alpha2.Binding, err error) { +func (c *FakeBindings) Update(ctx context.Context, binding *v1beta1.Binding, opts v1.UpdateOptions) (result *v1beta1.Binding, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(bindingsResource, c.ns, binding), &v1alpha2.Binding{}) + Invokes(testing.NewUpdateAction(bindingsResource, c.ns, binding), &v1beta1.Binding{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Binding), err + return obj.(*v1beta1.Binding), err } // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeBindings) UpdateStatus(ctx context.Context, binding *v1alpha2.Binding, opts v1.UpdateOptions) (*v1alpha2.Binding, error) { +func (c *FakeBindings) UpdateStatus(ctx context.Context, binding *v1beta1.Binding, opts v1.UpdateOptions) (*v1beta1.Binding, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(bindingsResource, "status", c.ns, binding), &v1alpha2.Binding{}) + Invokes(testing.NewUpdateSubresourceAction(bindingsResource, "status", c.ns, binding), &v1beta1.Binding{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Binding), err + return obj.(*v1beta1.Binding), err } // Delete takes name of the binding and deletes it. Returns an error if one occurs. func (c *FakeBindings) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteAction(bindingsResource, c.ns, name), &v1alpha2.Binding{}) + Invokes(testing.NewDeleteAction(bindingsResource, c.ns, name), &v1beta1.Binding{}) return err } @@ -119,17 +119,17 @@ func (c *FakeBindings) Delete(ctx context.Context, name string, opts v1.DeleteOp func (c *FakeBindings) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { action := testing.NewDeleteCollectionAction(bindingsResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &v1alpha2.BindingList{}) + _, err := c.Fake.Invokes(action, &v1beta1.BindingList{}) return err } // Patch applies the patch and returns the patched binding. -func (c *FakeBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Binding, err error) { +func (c *FakeBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Binding, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(bindingsResource, c.ns, name, pt, data, subresources...), &v1alpha2.Binding{}) + Invokes(testing.NewPatchSubresourceAction(bindingsResource, c.ns, name, pt, data, subresources...), &v1beta1.Binding{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Binding), err + return obj.(*v1beta1.Binding), err } diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_exchange.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_exchange.go similarity index 76% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_exchange.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_exchange.go index 42b059ab..edddee0c 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_exchange.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_exchange.go @@ -14,7 +14,7 @@ package fake import ( "context" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -25,29 +25,29 @@ import ( // FakeExchanges implements ExchangeInterface type FakeExchanges struct { - Fake *FakeRabbitmqV1alpha2 + Fake *FakeRabbitmqV1beta1 ns string } -var exchangesResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1alpha2", Resource: "exchanges"} +var exchangesResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1beta1", Resource: "exchanges"} -var exchangesKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1alpha2", Kind: "Exchange"} +var exchangesKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1beta1", Kind: "Exchange"} // Get takes name of the exchange, and returns the corresponding exchange object, and an error if there is any. -func (c *FakeExchanges) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Exchange, err error) { +func (c *FakeExchanges) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Exchange, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(exchangesResource, c.ns, name), &v1alpha2.Exchange{}) + Invokes(testing.NewGetAction(exchangesResource, c.ns, name), &v1beta1.Exchange{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Exchange), err + return obj.(*v1beta1.Exchange), err } // List takes label and field selectors, and returns the list of Exchanges that match those selectors. -func (c *FakeExchanges) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.ExchangeList, err error) { +func (c *FakeExchanges) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.ExchangeList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(exchangesResource, exchangesKind, c.ns, opts), &v1alpha2.ExchangeList{}) + Invokes(testing.NewListAction(exchangesResource, exchangesKind, c.ns, opts), &v1beta1.ExchangeList{}) if obj == nil { return nil, err @@ -57,8 +57,8 @@ func (c *FakeExchanges) List(ctx context.Context, opts v1.ListOptions) (result * if label == nil { label = labels.Everything() } - list := &v1alpha2.ExchangeList{ListMeta: obj.(*v1alpha2.ExchangeList).ListMeta} - for _, item := range obj.(*v1alpha2.ExchangeList).Items { + list := &v1beta1.ExchangeList{ListMeta: obj.(*v1beta1.ExchangeList).ListMeta} + for _, item := range obj.(*v1beta1.ExchangeList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -74,43 +74,43 @@ func (c *FakeExchanges) Watch(ctx context.Context, opts v1.ListOptions) (watch.I } // Create takes the representation of a exchange and creates it. Returns the server's representation of the exchange, and an error, if there is any. -func (c *FakeExchanges) Create(ctx context.Context, exchange *v1alpha2.Exchange, opts v1.CreateOptions) (result *v1alpha2.Exchange, err error) { +func (c *FakeExchanges) Create(ctx context.Context, exchange *v1beta1.Exchange, opts v1.CreateOptions) (result *v1beta1.Exchange, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(exchangesResource, c.ns, exchange), &v1alpha2.Exchange{}) + Invokes(testing.NewCreateAction(exchangesResource, c.ns, exchange), &v1beta1.Exchange{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Exchange), err + return obj.(*v1beta1.Exchange), err } // Update takes the representation of a exchange and updates it. Returns the server's representation of the exchange, and an error, if there is any. -func (c *FakeExchanges) Update(ctx context.Context, exchange *v1alpha2.Exchange, opts v1.UpdateOptions) (result *v1alpha2.Exchange, err error) { +func (c *FakeExchanges) Update(ctx context.Context, exchange *v1beta1.Exchange, opts v1.UpdateOptions) (result *v1beta1.Exchange, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(exchangesResource, c.ns, exchange), &v1alpha2.Exchange{}) + Invokes(testing.NewUpdateAction(exchangesResource, c.ns, exchange), &v1beta1.Exchange{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Exchange), err + return obj.(*v1beta1.Exchange), err } // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeExchanges) UpdateStatus(ctx context.Context, exchange *v1alpha2.Exchange, opts v1.UpdateOptions) (*v1alpha2.Exchange, error) { +func (c *FakeExchanges) UpdateStatus(ctx context.Context, exchange *v1beta1.Exchange, opts v1.UpdateOptions) (*v1beta1.Exchange, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(exchangesResource, "status", c.ns, exchange), &v1alpha2.Exchange{}) + Invokes(testing.NewUpdateSubresourceAction(exchangesResource, "status", c.ns, exchange), &v1beta1.Exchange{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Exchange), err + return obj.(*v1beta1.Exchange), err } // Delete takes name of the exchange and deletes it. Returns an error if one occurs. func (c *FakeExchanges) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteAction(exchangesResource, c.ns, name), &v1alpha2.Exchange{}) + Invokes(testing.NewDeleteAction(exchangesResource, c.ns, name), &v1beta1.Exchange{}) return err } @@ -119,17 +119,17 @@ func (c *FakeExchanges) Delete(ctx context.Context, name string, opts v1.DeleteO func (c *FakeExchanges) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { action := testing.NewDeleteCollectionAction(exchangesResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &v1alpha2.ExchangeList{}) + _, err := c.Fake.Invokes(action, &v1beta1.ExchangeList{}) return err } // Patch applies the patch and returns the patched exchange. -func (c *FakeExchanges) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Exchange, err error) { +func (c *FakeExchanges) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Exchange, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(exchangesResource, c.ns, name, pt, data, subresources...), &v1alpha2.Exchange{}) + Invokes(testing.NewPatchSubresourceAction(exchangesResource, c.ns, name, pt, data, subresources...), &v1beta1.Exchange{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Exchange), err + return obj.(*v1beta1.Exchange), err } diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_permission.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_permission.go new file mode 100644 index 00000000..6c46c6cf --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_permission.go @@ -0,0 +1,135 @@ +/* +RabbitMQ Messaging Topology Kubernetes Operator +Copyright 2021 VMware, Inc. + +This product is licensed to you under the Mozilla Public License 2.0 license (the "License"). You may not use this product except in compliance with the Mozilla 2.0 License. + +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. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + "context" + + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + labels "k8s.io/apimachinery/pkg/labels" + schema "k8s.io/apimachinery/pkg/runtime/schema" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + testing "k8s.io/client-go/testing" +) + +// FakePermissions implements PermissionInterface +type FakePermissions struct { + Fake *FakeRabbitmqV1beta1 + ns string +} + +var permissionsResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1beta1", Resource: "permissions"} + +var permissionsKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1beta1", Kind: "Permission"} + +// Get takes name of the permission, and returns the corresponding permission object, and an error if there is any. +func (c *FakePermissions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Permission, err error) { + obj, err := c.Fake. + Invokes(testing.NewGetAction(permissionsResource, c.ns, name), &v1beta1.Permission{}) + + if obj == nil { + return nil, err + } + return obj.(*v1beta1.Permission), err +} + +// List takes label and field selectors, and returns the list of Permissions that match those selectors. +func (c *FakePermissions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PermissionList, err error) { + obj, err := c.Fake. + Invokes(testing.NewListAction(permissionsResource, permissionsKind, c.ns, opts), &v1beta1.PermissionList{}) + + if obj == nil { + return nil, err + } + + label, _, _ := testing.ExtractFromListOptions(opts) + if label == nil { + label = labels.Everything() + } + list := &v1beta1.PermissionList{ListMeta: obj.(*v1beta1.PermissionList).ListMeta} + for _, item := range obj.(*v1beta1.PermissionList).Items { + if label.Matches(labels.Set(item.Labels)) { + list.Items = append(list.Items, item) + } + } + return list, err +} + +// Watch returns a watch.Interface that watches the requested permissions. +func (c *FakePermissions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + return c.Fake. + InvokesWatch(testing.NewWatchAction(permissionsResource, c.ns, opts)) + +} + +// Create takes the representation of a permission and creates it. Returns the server's representation of the permission, and an error, if there is any. +func (c *FakePermissions) Create(ctx context.Context, permission *v1beta1.Permission, opts v1.CreateOptions) (result *v1beta1.Permission, err error) { + obj, err := c.Fake. + Invokes(testing.NewCreateAction(permissionsResource, c.ns, permission), &v1beta1.Permission{}) + + if obj == nil { + return nil, err + } + return obj.(*v1beta1.Permission), err +} + +// Update takes the representation of a permission and updates it. Returns the server's representation of the permission, and an error, if there is any. +func (c *FakePermissions) Update(ctx context.Context, permission *v1beta1.Permission, opts v1.UpdateOptions) (result *v1beta1.Permission, err error) { + obj, err := c.Fake. + Invokes(testing.NewUpdateAction(permissionsResource, c.ns, permission), &v1beta1.Permission{}) + + if obj == nil { + return nil, err + } + return obj.(*v1beta1.Permission), err +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *FakePermissions) UpdateStatus(ctx context.Context, permission *v1beta1.Permission, opts v1.UpdateOptions) (*v1beta1.Permission, error) { + obj, err := c.Fake. + Invokes(testing.NewUpdateSubresourceAction(permissionsResource, "status", c.ns, permission), &v1beta1.Permission{}) + + if obj == nil { + return nil, err + } + return obj.(*v1beta1.Permission), err +} + +// Delete takes name of the permission and deletes it. Returns an error if one occurs. +func (c *FakePermissions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + _, err := c.Fake. + Invokes(testing.NewDeleteAction(permissionsResource, c.ns, name), &v1beta1.Permission{}) + + return err +} + +// DeleteCollection deletes a collection of objects. +func (c *FakePermissions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + action := testing.NewDeleteCollectionAction(permissionsResource, c.ns, listOpts) + + _, err := c.Fake.Invokes(action, &v1beta1.PermissionList{}) + return err +} + +// Patch applies the patch and returns the patched permission. +func (c *FakePermissions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Permission, err error) { + obj, err := c.Fake. + Invokes(testing.NewPatchSubresourceAction(permissionsResource, c.ns, name, pt, data, subresources...), &v1beta1.Permission{}) + + if obj == nil { + return nil, err + } + return obj.(*v1beta1.Permission), err +} diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_policy.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_policy.go similarity index 74% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_policy.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_policy.go index 6358bb9b..248bc72f 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_policy.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_policy.go @@ -14,7 +14,7 @@ package fake import ( "context" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -25,29 +25,29 @@ import ( // FakePolicies implements PolicyInterface type FakePolicies struct { - Fake *FakeRabbitmqV1alpha2 + Fake *FakeRabbitmqV1beta1 ns string } -var policiesResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1alpha2", Resource: "policies"} +var policiesResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1beta1", Resource: "policies"} -var policiesKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1alpha2", Kind: "Policy"} +var policiesKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1beta1", Kind: "Policy"} // Get takes name of the policy, and returns the corresponding policy object, and an error if there is any. -func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Policy, err error) { +func (c *FakePolicies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Policy, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(policiesResource, c.ns, name), &v1alpha2.Policy{}) + Invokes(testing.NewGetAction(policiesResource, c.ns, name), &v1beta1.Policy{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Policy), err + return obj.(*v1beta1.Policy), err } // List takes label and field selectors, and returns the list of Policies that match those selectors. -func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PolicyList, err error) { +func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PolicyList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(policiesResource, policiesKind, c.ns, opts), &v1alpha2.PolicyList{}) + Invokes(testing.NewListAction(policiesResource, policiesKind, c.ns, opts), &v1beta1.PolicyList{}) if obj == nil { return nil, err @@ -57,8 +57,8 @@ func (c *FakePolicies) List(ctx context.Context, opts v1.ListOptions) (result *v if label == nil { label = labels.Everything() } - list := &v1alpha2.PolicyList{ListMeta: obj.(*v1alpha2.PolicyList).ListMeta} - for _, item := range obj.(*v1alpha2.PolicyList).Items { + list := &v1beta1.PolicyList{ListMeta: obj.(*v1beta1.PolicyList).ListMeta} + for _, item := range obj.(*v1beta1.PolicyList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -74,43 +74,43 @@ func (c *FakePolicies) Watch(ctx context.Context, opts v1.ListOptions) (watch.In } // Create takes the representation of a policy and creates it. Returns the server's representation of the policy, and an error, if there is any. -func (c *FakePolicies) Create(ctx context.Context, policy *v1alpha2.Policy, opts v1.CreateOptions) (result *v1alpha2.Policy, err error) { +func (c *FakePolicies) Create(ctx context.Context, policy *v1beta1.Policy, opts v1.CreateOptions) (result *v1beta1.Policy, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(policiesResource, c.ns, policy), &v1alpha2.Policy{}) + Invokes(testing.NewCreateAction(policiesResource, c.ns, policy), &v1beta1.Policy{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Policy), err + return obj.(*v1beta1.Policy), err } // Update takes the representation of a policy and updates it. Returns the server's representation of the policy, and an error, if there is any. -func (c *FakePolicies) Update(ctx context.Context, policy *v1alpha2.Policy, opts v1.UpdateOptions) (result *v1alpha2.Policy, err error) { +func (c *FakePolicies) Update(ctx context.Context, policy *v1beta1.Policy, opts v1.UpdateOptions) (result *v1beta1.Policy, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(policiesResource, c.ns, policy), &v1alpha2.Policy{}) + Invokes(testing.NewUpdateAction(policiesResource, c.ns, policy), &v1beta1.Policy{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Policy), err + return obj.(*v1beta1.Policy), err } // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakePolicies) UpdateStatus(ctx context.Context, policy *v1alpha2.Policy, opts v1.UpdateOptions) (*v1alpha2.Policy, error) { +func (c *FakePolicies) UpdateStatus(ctx context.Context, policy *v1beta1.Policy, opts v1.UpdateOptions) (*v1beta1.Policy, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(policiesResource, "status", c.ns, policy), &v1alpha2.Policy{}) + Invokes(testing.NewUpdateSubresourceAction(policiesResource, "status", c.ns, policy), &v1beta1.Policy{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Policy), err + return obj.(*v1beta1.Policy), err } // Delete takes name of the policy and deletes it. Returns an error if one occurs. func (c *FakePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteAction(policiesResource, c.ns, name), &v1alpha2.Policy{}) + Invokes(testing.NewDeleteAction(policiesResource, c.ns, name), &v1beta1.Policy{}) return err } @@ -119,17 +119,17 @@ func (c *FakePolicies) Delete(ctx context.Context, name string, opts v1.DeleteOp func (c *FakePolicies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { action := testing.NewDeleteCollectionAction(policiesResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &v1alpha2.PolicyList{}) + _, err := c.Fake.Invokes(action, &v1beta1.PolicyList{}) return err } // Patch applies the patch and returns the patched policy. -func (c *FakePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Policy, err error) { +func (c *FakePolicies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Policy, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(policiesResource, c.ns, name, pt, data, subresources...), &v1alpha2.Policy{}) + Invokes(testing.NewPatchSubresourceAction(policiesResource, c.ns, name, pt, data, subresources...), &v1beta1.Policy{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Policy), err + return obj.(*v1beta1.Policy), err } diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_queue.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_queue.go similarity index 74% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_queue.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_queue.go index b7c3d2d5..bf0a988d 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_queue.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_queue.go @@ -14,7 +14,7 @@ package fake import ( "context" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -25,29 +25,29 @@ import ( // FakeQueues implements QueueInterface type FakeQueues struct { - Fake *FakeRabbitmqV1alpha2 + Fake *FakeRabbitmqV1beta1 ns string } -var queuesResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1alpha2", Resource: "queues"} +var queuesResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1beta1", Resource: "queues"} -var queuesKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1alpha2", Kind: "Queue"} +var queuesKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1beta1", Kind: "Queue"} // Get takes name of the queue, and returns the corresponding queue object, and an error if there is any. -func (c *FakeQueues) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Queue, err error) { +func (c *FakeQueues) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Queue, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(queuesResource, c.ns, name), &v1alpha2.Queue{}) + Invokes(testing.NewGetAction(queuesResource, c.ns, name), &v1beta1.Queue{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Queue), err + return obj.(*v1beta1.Queue), err } // List takes label and field selectors, and returns the list of Queues that match those selectors. -func (c *FakeQueues) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.QueueList, err error) { +func (c *FakeQueues) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.QueueList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(queuesResource, queuesKind, c.ns, opts), &v1alpha2.QueueList{}) + Invokes(testing.NewListAction(queuesResource, queuesKind, c.ns, opts), &v1beta1.QueueList{}) if obj == nil { return nil, err @@ -57,8 +57,8 @@ func (c *FakeQueues) List(ctx context.Context, opts v1.ListOptions) (result *v1a if label == nil { label = labels.Everything() } - list := &v1alpha2.QueueList{ListMeta: obj.(*v1alpha2.QueueList).ListMeta} - for _, item := range obj.(*v1alpha2.QueueList).Items { + list := &v1beta1.QueueList{ListMeta: obj.(*v1beta1.QueueList).ListMeta} + for _, item := range obj.(*v1beta1.QueueList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -74,43 +74,43 @@ func (c *FakeQueues) Watch(ctx context.Context, opts v1.ListOptions) (watch.Inte } // Create takes the representation of a queue and creates it. Returns the server's representation of the queue, and an error, if there is any. -func (c *FakeQueues) Create(ctx context.Context, queue *v1alpha2.Queue, opts v1.CreateOptions) (result *v1alpha2.Queue, err error) { +func (c *FakeQueues) Create(ctx context.Context, queue *v1beta1.Queue, opts v1.CreateOptions) (result *v1beta1.Queue, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(queuesResource, c.ns, queue), &v1alpha2.Queue{}) + Invokes(testing.NewCreateAction(queuesResource, c.ns, queue), &v1beta1.Queue{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Queue), err + return obj.(*v1beta1.Queue), err } // Update takes the representation of a queue and updates it. Returns the server's representation of the queue, and an error, if there is any. -func (c *FakeQueues) Update(ctx context.Context, queue *v1alpha2.Queue, opts v1.UpdateOptions) (result *v1alpha2.Queue, err error) { +func (c *FakeQueues) Update(ctx context.Context, queue *v1beta1.Queue, opts v1.UpdateOptions) (result *v1beta1.Queue, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(queuesResource, c.ns, queue), &v1alpha2.Queue{}) + Invokes(testing.NewUpdateAction(queuesResource, c.ns, queue), &v1beta1.Queue{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Queue), err + return obj.(*v1beta1.Queue), err } // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeQueues) UpdateStatus(ctx context.Context, queue *v1alpha2.Queue, opts v1.UpdateOptions) (*v1alpha2.Queue, error) { +func (c *FakeQueues) UpdateStatus(ctx context.Context, queue *v1beta1.Queue, opts v1.UpdateOptions) (*v1beta1.Queue, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(queuesResource, "status", c.ns, queue), &v1alpha2.Queue{}) + Invokes(testing.NewUpdateSubresourceAction(queuesResource, "status", c.ns, queue), &v1beta1.Queue{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Queue), err + return obj.(*v1beta1.Queue), err } // Delete takes name of the queue and deletes it. Returns an error if one occurs. func (c *FakeQueues) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteAction(queuesResource, c.ns, name), &v1alpha2.Queue{}) + Invokes(testing.NewDeleteAction(queuesResource, c.ns, name), &v1beta1.Queue{}) return err } @@ -119,17 +119,17 @@ func (c *FakeQueues) Delete(ctx context.Context, name string, opts v1.DeleteOpti func (c *FakeQueues) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { action := testing.NewDeleteCollectionAction(queuesResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &v1alpha2.QueueList{}) + _, err := c.Fake.Invokes(action, &v1beta1.QueueList{}) return err } // Patch applies the patch and returns the patched queue. -func (c *FakeQueues) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Queue, err error) { +func (c *FakeQueues) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Queue, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(queuesResource, c.ns, name, pt, data, subresources...), &v1alpha2.Queue{}) + Invokes(testing.NewPatchSubresourceAction(queuesResource, c.ns, name, pt, data, subresources...), &v1beta1.Queue{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Queue), err + return obj.(*v1beta1.Queue), err } diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_rabbitmq.com_client.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_rabbitmq.com_client.go similarity index 51% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_rabbitmq.com_client.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_rabbitmq.com_client.go index c704ed48..9f56c5cc 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_rabbitmq.com_client.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_rabbitmq.com_client.go @@ -12,42 +12,50 @@ This product may include a number of subcomponents with separate copyright notic package fake import ( - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1" rest "k8s.io/client-go/rest" testing "k8s.io/client-go/testing" ) -type FakeRabbitmqV1alpha2 struct { +type FakeRabbitmqV1beta1 struct { *testing.Fake } -func (c *FakeRabbitmqV1alpha2) Bindings(namespace string) v1alpha2.BindingInterface { +func (c *FakeRabbitmqV1beta1) Bindings(namespace string) v1beta1.BindingInterface { return &FakeBindings{c, namespace} } -func (c *FakeRabbitmqV1alpha2) Exchanges(namespace string) v1alpha2.ExchangeInterface { +func (c *FakeRabbitmqV1beta1) Exchanges(namespace string) v1beta1.ExchangeInterface { return &FakeExchanges{c, namespace} } -func (c *FakeRabbitmqV1alpha2) Policies(namespace string) v1alpha2.PolicyInterface { +func (c *FakeRabbitmqV1beta1) Permissions(namespace string) v1beta1.PermissionInterface { + return &FakePermissions{c, namespace} +} + +func (c *FakeRabbitmqV1beta1) Policies(namespace string) v1beta1.PolicyInterface { return &FakePolicies{c, namespace} } -func (c *FakeRabbitmqV1alpha2) Queues(namespace string) v1alpha2.QueueInterface { +func (c *FakeRabbitmqV1beta1) Queues(namespace string) v1beta1.QueueInterface { return &FakeQueues{c, namespace} } -func (c *FakeRabbitmqV1alpha2) Users(namespace string) v1alpha2.UserInterface { +func (c *FakeRabbitmqV1beta1) SchemaReplications(namespace string) v1beta1.SchemaReplicationInterface { + return &FakeSchemaReplications{c, namespace} +} + +func (c *FakeRabbitmqV1beta1) Users(namespace string) v1beta1.UserInterface { return &FakeUsers{c, namespace} } -func (c *FakeRabbitmqV1alpha2) Vhosts(namespace string) v1alpha2.VhostInterface { +func (c *FakeRabbitmqV1beta1) Vhosts(namespace string) v1beta1.VhostInterface { return &FakeVhosts{c, namespace} } // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *FakeRabbitmqV1alpha2) RESTClient() rest.Interface { +func (c *FakeRabbitmqV1beta1) RESTClient() rest.Interface { var ret *rest.RESTClient return ret } diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_schemareplication.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_schemareplication.go new file mode 100644 index 00000000..ed658c24 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_schemareplication.go @@ -0,0 +1,135 @@ +/* +RabbitMQ Messaging Topology Kubernetes Operator +Copyright 2021 VMware, Inc. + +This product is licensed to you under the Mozilla Public License 2.0 license (the "License"). You may not use this product except in compliance with the Mozilla 2.0 License. + +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. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package fake + +import ( + "context" + + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + labels "k8s.io/apimachinery/pkg/labels" + schema "k8s.io/apimachinery/pkg/runtime/schema" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + testing "k8s.io/client-go/testing" +) + +// FakeSchemaReplications implements SchemaReplicationInterface +type FakeSchemaReplications struct { + Fake *FakeRabbitmqV1beta1 + ns string +} + +var schemareplicationsResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1beta1", Resource: "schemareplications"} + +var schemareplicationsKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1beta1", Kind: "SchemaReplication"} + +// Get takes name of the schemaReplication, and returns the corresponding schemaReplication object, and an error if there is any. +func (c *FakeSchemaReplications) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.SchemaReplication, err error) { + obj, err := c.Fake. + Invokes(testing.NewGetAction(schemareplicationsResource, c.ns, name), &v1beta1.SchemaReplication{}) + + if obj == nil { + return nil, err + } + return obj.(*v1beta1.SchemaReplication), err +} + +// List takes label and field selectors, and returns the list of SchemaReplications that match those selectors. +func (c *FakeSchemaReplications) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SchemaReplicationList, err error) { + obj, err := c.Fake. + Invokes(testing.NewListAction(schemareplicationsResource, schemareplicationsKind, c.ns, opts), &v1beta1.SchemaReplicationList{}) + + if obj == nil { + return nil, err + } + + label, _, _ := testing.ExtractFromListOptions(opts) + if label == nil { + label = labels.Everything() + } + list := &v1beta1.SchemaReplicationList{ListMeta: obj.(*v1beta1.SchemaReplicationList).ListMeta} + for _, item := range obj.(*v1beta1.SchemaReplicationList).Items { + if label.Matches(labels.Set(item.Labels)) { + list.Items = append(list.Items, item) + } + } + return list, err +} + +// Watch returns a watch.Interface that watches the requested schemaReplications. +func (c *FakeSchemaReplications) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + return c.Fake. + InvokesWatch(testing.NewWatchAction(schemareplicationsResource, c.ns, opts)) + +} + +// Create takes the representation of a schemaReplication and creates it. Returns the server's representation of the schemaReplication, and an error, if there is any. +func (c *FakeSchemaReplications) Create(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.CreateOptions) (result *v1beta1.SchemaReplication, err error) { + obj, err := c.Fake. + Invokes(testing.NewCreateAction(schemareplicationsResource, c.ns, schemaReplication), &v1beta1.SchemaReplication{}) + + if obj == nil { + return nil, err + } + return obj.(*v1beta1.SchemaReplication), err +} + +// Update takes the representation of a schemaReplication and updates it. Returns the server's representation of the schemaReplication, and an error, if there is any. +func (c *FakeSchemaReplications) Update(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.UpdateOptions) (result *v1beta1.SchemaReplication, err error) { + obj, err := c.Fake. + Invokes(testing.NewUpdateAction(schemareplicationsResource, c.ns, schemaReplication), &v1beta1.SchemaReplication{}) + + if obj == nil { + return nil, err + } + return obj.(*v1beta1.SchemaReplication), err +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *FakeSchemaReplications) UpdateStatus(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.UpdateOptions) (*v1beta1.SchemaReplication, error) { + obj, err := c.Fake. + Invokes(testing.NewUpdateSubresourceAction(schemareplicationsResource, "status", c.ns, schemaReplication), &v1beta1.SchemaReplication{}) + + if obj == nil { + return nil, err + } + return obj.(*v1beta1.SchemaReplication), err +} + +// Delete takes name of the schemaReplication and deletes it. Returns an error if one occurs. +func (c *FakeSchemaReplications) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + _, err := c.Fake. + Invokes(testing.NewDeleteAction(schemareplicationsResource, c.ns, name), &v1beta1.SchemaReplication{}) + + return err +} + +// DeleteCollection deletes a collection of objects. +func (c *FakeSchemaReplications) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + action := testing.NewDeleteCollectionAction(schemareplicationsResource, c.ns, listOpts) + + _, err := c.Fake.Invokes(action, &v1beta1.SchemaReplicationList{}) + return err +} + +// Patch applies the patch and returns the patched schemaReplication. +func (c *FakeSchemaReplications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.SchemaReplication, err error) { + obj, err := c.Fake. + Invokes(testing.NewPatchSubresourceAction(schemareplicationsResource, c.ns, name, pt, data, subresources...), &v1beta1.SchemaReplication{}) + + if obj == nil { + return nil, err + } + return obj.(*v1beta1.SchemaReplication), err +} diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_user.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_user.go similarity index 73% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_user.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_user.go index 3e38e674..f7d2bca8 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_user.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_user.go @@ -14,7 +14,7 @@ package fake import ( "context" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -25,29 +25,29 @@ import ( // FakeUsers implements UserInterface type FakeUsers struct { - Fake *FakeRabbitmqV1alpha2 + Fake *FakeRabbitmqV1beta1 ns string } -var usersResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1alpha2", Resource: "users"} +var usersResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1beta1", Resource: "users"} -var usersKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1alpha2", Kind: "User"} +var usersKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1beta1", Kind: "User"} // Get takes name of the user, and returns the corresponding user object, and an error if there is any. -func (c *FakeUsers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.User, err error) { +func (c *FakeUsers) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.User, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(usersResource, c.ns, name), &v1alpha2.User{}) + Invokes(testing.NewGetAction(usersResource, c.ns, name), &v1beta1.User{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.User), err + return obj.(*v1beta1.User), err } // List takes label and field selectors, and returns the list of Users that match those selectors. -func (c *FakeUsers) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.UserList, err error) { +func (c *FakeUsers) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.UserList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(usersResource, usersKind, c.ns, opts), &v1alpha2.UserList{}) + Invokes(testing.NewListAction(usersResource, usersKind, c.ns, opts), &v1beta1.UserList{}) if obj == nil { return nil, err @@ -57,8 +57,8 @@ func (c *FakeUsers) List(ctx context.Context, opts v1.ListOptions) (result *v1al if label == nil { label = labels.Everything() } - list := &v1alpha2.UserList{ListMeta: obj.(*v1alpha2.UserList).ListMeta} - for _, item := range obj.(*v1alpha2.UserList).Items { + list := &v1beta1.UserList{ListMeta: obj.(*v1beta1.UserList).ListMeta} + for _, item := range obj.(*v1beta1.UserList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -74,43 +74,43 @@ func (c *FakeUsers) Watch(ctx context.Context, opts v1.ListOptions) (watch.Inter } // Create takes the representation of a user and creates it. Returns the server's representation of the user, and an error, if there is any. -func (c *FakeUsers) Create(ctx context.Context, user *v1alpha2.User, opts v1.CreateOptions) (result *v1alpha2.User, err error) { +func (c *FakeUsers) Create(ctx context.Context, user *v1beta1.User, opts v1.CreateOptions) (result *v1beta1.User, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(usersResource, c.ns, user), &v1alpha2.User{}) + Invokes(testing.NewCreateAction(usersResource, c.ns, user), &v1beta1.User{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.User), err + return obj.(*v1beta1.User), err } // Update takes the representation of a user and updates it. Returns the server's representation of the user, and an error, if there is any. -func (c *FakeUsers) Update(ctx context.Context, user *v1alpha2.User, opts v1.UpdateOptions) (result *v1alpha2.User, err error) { +func (c *FakeUsers) Update(ctx context.Context, user *v1beta1.User, opts v1.UpdateOptions) (result *v1beta1.User, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(usersResource, c.ns, user), &v1alpha2.User{}) + Invokes(testing.NewUpdateAction(usersResource, c.ns, user), &v1beta1.User{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.User), err + return obj.(*v1beta1.User), err } // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeUsers) UpdateStatus(ctx context.Context, user *v1alpha2.User, opts v1.UpdateOptions) (*v1alpha2.User, error) { +func (c *FakeUsers) UpdateStatus(ctx context.Context, user *v1beta1.User, opts v1.UpdateOptions) (*v1beta1.User, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(usersResource, "status", c.ns, user), &v1alpha2.User{}) + Invokes(testing.NewUpdateSubresourceAction(usersResource, "status", c.ns, user), &v1beta1.User{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.User), err + return obj.(*v1beta1.User), err } // Delete takes name of the user and deletes it. Returns an error if one occurs. func (c *FakeUsers) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteAction(usersResource, c.ns, name), &v1alpha2.User{}) + Invokes(testing.NewDeleteAction(usersResource, c.ns, name), &v1beta1.User{}) return err } @@ -119,17 +119,17 @@ func (c *FakeUsers) Delete(ctx context.Context, name string, opts v1.DeleteOptio func (c *FakeUsers) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { action := testing.NewDeleteCollectionAction(usersResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &v1alpha2.UserList{}) + _, err := c.Fake.Invokes(action, &v1beta1.UserList{}) return err } // Patch applies the patch and returns the patched user. -func (c *FakeUsers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.User, err error) { +func (c *FakeUsers) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.User, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(usersResource, c.ns, name, pt, data, subresources...), &v1alpha2.User{}) + Invokes(testing.NewPatchSubresourceAction(usersResource, c.ns, name, pt, data, subresources...), &v1beta1.User{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.User), err + return obj.(*v1beta1.User), err } diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_vhost.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_vhost.go similarity index 74% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_vhost.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_vhost.go index ed9c24ce..3b6b1cea 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/fake/fake_vhost.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/fake/fake_vhost.go @@ -14,7 +14,7 @@ package fake import ( "context" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" labels "k8s.io/apimachinery/pkg/labels" schema "k8s.io/apimachinery/pkg/runtime/schema" @@ -25,29 +25,29 @@ import ( // FakeVhosts implements VhostInterface type FakeVhosts struct { - Fake *FakeRabbitmqV1alpha2 + Fake *FakeRabbitmqV1beta1 ns string } -var vhostsResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1alpha2", Resource: "vhosts"} +var vhostsResource = schema.GroupVersionResource{Group: "rabbitmq.com", Version: "v1beta1", Resource: "vhosts"} -var vhostsKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1alpha2", Kind: "Vhost"} +var vhostsKind = schema.GroupVersionKind{Group: "rabbitmq.com", Version: "v1beta1", Kind: "Vhost"} // Get takes name of the vhost, and returns the corresponding vhost object, and an error if there is any. -func (c *FakeVhosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Vhost, err error) { +func (c *FakeVhosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Vhost, err error) { obj, err := c.Fake. - Invokes(testing.NewGetAction(vhostsResource, c.ns, name), &v1alpha2.Vhost{}) + Invokes(testing.NewGetAction(vhostsResource, c.ns, name), &v1beta1.Vhost{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Vhost), err + return obj.(*v1beta1.Vhost), err } // List takes label and field selectors, and returns the list of Vhosts that match those selectors. -func (c *FakeVhosts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.VhostList, err error) { +func (c *FakeVhosts) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.VhostList, err error) { obj, err := c.Fake. - Invokes(testing.NewListAction(vhostsResource, vhostsKind, c.ns, opts), &v1alpha2.VhostList{}) + Invokes(testing.NewListAction(vhostsResource, vhostsKind, c.ns, opts), &v1beta1.VhostList{}) if obj == nil { return nil, err @@ -57,8 +57,8 @@ func (c *FakeVhosts) List(ctx context.Context, opts v1.ListOptions) (result *v1a if label == nil { label = labels.Everything() } - list := &v1alpha2.VhostList{ListMeta: obj.(*v1alpha2.VhostList).ListMeta} - for _, item := range obj.(*v1alpha2.VhostList).Items { + list := &v1beta1.VhostList{ListMeta: obj.(*v1beta1.VhostList).ListMeta} + for _, item := range obj.(*v1beta1.VhostList).Items { if label.Matches(labels.Set(item.Labels)) { list.Items = append(list.Items, item) } @@ -74,43 +74,43 @@ func (c *FakeVhosts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Inte } // Create takes the representation of a vhost and creates it. Returns the server's representation of the vhost, and an error, if there is any. -func (c *FakeVhosts) Create(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.CreateOptions) (result *v1alpha2.Vhost, err error) { +func (c *FakeVhosts) Create(ctx context.Context, vhost *v1beta1.Vhost, opts v1.CreateOptions) (result *v1beta1.Vhost, err error) { obj, err := c.Fake. - Invokes(testing.NewCreateAction(vhostsResource, c.ns, vhost), &v1alpha2.Vhost{}) + Invokes(testing.NewCreateAction(vhostsResource, c.ns, vhost), &v1beta1.Vhost{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Vhost), err + return obj.(*v1beta1.Vhost), err } // Update takes the representation of a vhost and updates it. Returns the server's representation of the vhost, and an error, if there is any. -func (c *FakeVhosts) Update(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.UpdateOptions) (result *v1alpha2.Vhost, err error) { +func (c *FakeVhosts) Update(ctx context.Context, vhost *v1beta1.Vhost, opts v1.UpdateOptions) (result *v1beta1.Vhost, err error) { obj, err := c.Fake. - Invokes(testing.NewUpdateAction(vhostsResource, c.ns, vhost), &v1alpha2.Vhost{}) + Invokes(testing.NewUpdateAction(vhostsResource, c.ns, vhost), &v1beta1.Vhost{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Vhost), err + return obj.(*v1beta1.Vhost), err } // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *FakeVhosts) UpdateStatus(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.UpdateOptions) (*v1alpha2.Vhost, error) { +func (c *FakeVhosts) UpdateStatus(ctx context.Context, vhost *v1beta1.Vhost, opts v1.UpdateOptions) (*v1beta1.Vhost, error) { obj, err := c.Fake. - Invokes(testing.NewUpdateSubresourceAction(vhostsResource, "status", c.ns, vhost), &v1alpha2.Vhost{}) + Invokes(testing.NewUpdateSubresourceAction(vhostsResource, "status", c.ns, vhost), &v1beta1.Vhost{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Vhost), err + return obj.(*v1beta1.Vhost), err } // Delete takes name of the vhost and deletes it. Returns an error if one occurs. func (c *FakeVhosts) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { _, err := c.Fake. - Invokes(testing.NewDeleteAction(vhostsResource, c.ns, name), &v1alpha2.Vhost{}) + Invokes(testing.NewDeleteAction(vhostsResource, c.ns, name), &v1beta1.Vhost{}) return err } @@ -119,17 +119,17 @@ func (c *FakeVhosts) Delete(ctx context.Context, name string, opts v1.DeleteOpti func (c *FakeVhosts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { action := testing.NewDeleteCollectionAction(vhostsResource, c.ns, listOpts) - _, err := c.Fake.Invokes(action, &v1alpha2.VhostList{}) + _, err := c.Fake.Invokes(action, &v1beta1.VhostList{}) return err } // Patch applies the patch and returns the patched vhost. -func (c *FakeVhosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Vhost, err error) { +func (c *FakeVhosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Vhost, err error) { obj, err := c.Fake. - Invokes(testing.NewPatchSubresourceAction(vhostsResource, c.ns, name, pt, data, subresources...), &v1alpha2.Vhost{}) + Invokes(testing.NewPatchSubresourceAction(vhostsResource, c.ns, name, pt, data, subresources...), &v1beta1.Vhost{}) if obj == nil { return nil, err } - return obj.(*v1alpha2.Vhost), err + return obj.(*v1beta1.Vhost), err } diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/generated_expansion.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/generated_expansion.go similarity index 88% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/generated_expansion.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/generated_expansion.go index 225dec38..e380b33b 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/generated_expansion.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/generated_expansion.go @@ -9,16 +9,20 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by client-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 type BindingExpansion interface{} type ExchangeExpansion interface{} +type PermissionExpansion interface{} + type PolicyExpansion interface{} type QueueExpansion interface{} +type SchemaReplicationExpansion interface{} + type UserExpansion interface{} type VhostExpansion interface{} diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/permission.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/permission.go new file mode 100644 index 00000000..db9eb88b --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/permission.go @@ -0,0 +1,188 @@ +/* +RabbitMQ Messaging Topology Kubernetes Operator +Copyright 2021 VMware, Inc. + +This product is licensed to you under the Mozilla Public License 2.0 license (the "License"). You may not use this product except in compliance with the Mozilla 2.0 License. + +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. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1beta1 + +import ( + "context" + "time" + + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" + scheme "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// PermissionsGetter has a method to return a PermissionInterface. +// A group's client should implement this interface. +type PermissionsGetter interface { + Permissions(namespace string) PermissionInterface +} + +// PermissionInterface has methods to work with Permission resources. +type PermissionInterface interface { + Create(ctx context.Context, permission *v1beta1.Permission, opts v1.CreateOptions) (*v1beta1.Permission, error) + Update(ctx context.Context, permission *v1beta1.Permission, opts v1.UpdateOptions) (*v1beta1.Permission, error) + UpdateStatus(ctx context.Context, permission *v1beta1.Permission, opts v1.UpdateOptions) (*v1beta1.Permission, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Permission, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.PermissionList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Permission, err error) + PermissionExpansion +} + +// permissions implements PermissionInterface +type permissions struct { + client rest.Interface + ns string +} + +// newPermissions returns a Permissions +func newPermissions(c *RabbitmqV1beta1Client, namespace string) *permissions { + return &permissions{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the permission, and returns the corresponding permission object, and an error if there is any. +func (c *permissions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Permission, err error) { + result = &v1beta1.Permission{} + err = c.client.Get(). + Namespace(c.ns). + Resource("permissions"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of Permissions that match those selectors. +func (c *permissions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PermissionList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1beta1.PermissionList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("permissions"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested permissions. +func (c *permissions) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("permissions"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a permission and creates it. Returns the server's representation of the permission, and an error, if there is any. +func (c *permissions) Create(ctx context.Context, permission *v1beta1.Permission, opts v1.CreateOptions) (result *v1beta1.Permission, err error) { + result = &v1beta1.Permission{} + err = c.client.Post(). + Namespace(c.ns). + Resource("permissions"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(permission). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a permission and updates it. Returns the server's representation of the permission, and an error, if there is any. +func (c *permissions) Update(ctx context.Context, permission *v1beta1.Permission, opts v1.UpdateOptions) (result *v1beta1.Permission, err error) { + result = &v1beta1.Permission{} + err = c.client.Put(). + Namespace(c.ns). + Resource("permissions"). + Name(permission.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(permission). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *permissions) UpdateStatus(ctx context.Context, permission *v1beta1.Permission, opts v1.UpdateOptions) (result *v1beta1.Permission, err error) { + result = &v1beta1.Permission{} + err = c.client.Put(). + Namespace(c.ns). + Resource("permissions"). + Name(permission.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(permission). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the permission and deletes it. Returns an error if one occurs. +func (c *permissions) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("permissions"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *permissions) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("permissions"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched permission. +func (c *permissions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Permission, err error) { + result = &v1beta1.Permission{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("permissions"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/policy.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/policy.go similarity index 78% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/policy.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/policy.go index f47085de..e7708c21 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/policy.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/policy.go @@ -9,13 +9,13 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by client-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" "time" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" scheme "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -31,15 +31,15 @@ type PoliciesGetter interface { // PolicyInterface has methods to work with Policy resources. type PolicyInterface interface { - Create(ctx context.Context, policy *v1alpha2.Policy, opts v1.CreateOptions) (*v1alpha2.Policy, error) - Update(ctx context.Context, policy *v1alpha2.Policy, opts v1.UpdateOptions) (*v1alpha2.Policy, error) - UpdateStatus(ctx context.Context, policy *v1alpha2.Policy, opts v1.UpdateOptions) (*v1alpha2.Policy, error) + Create(ctx context.Context, policy *v1beta1.Policy, opts v1.CreateOptions) (*v1beta1.Policy, error) + Update(ctx context.Context, policy *v1beta1.Policy, opts v1.UpdateOptions) (*v1beta1.Policy, error) + UpdateStatus(ctx context.Context, policy *v1beta1.Policy, opts v1.UpdateOptions) (*v1beta1.Policy, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Policy, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.PolicyList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Policy, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.PolicyList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Policy, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Policy, err error) PolicyExpansion } @@ -50,7 +50,7 @@ type policies struct { } // newPolicies returns a Policies -func newPolicies(c *RabbitmqV1alpha2Client, namespace string) *policies { +func newPolicies(c *RabbitmqV1beta1Client, namespace string) *policies { return &policies{ client: c.RESTClient(), ns: namespace, @@ -58,8 +58,8 @@ func newPolicies(c *RabbitmqV1alpha2Client, namespace string) *policies { } // Get takes name of the policy, and returns the corresponding policy object, and an error if there is any. -func (c *policies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Policy, err error) { - result = &v1alpha2.Policy{} +func (c *policies) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Policy, err error) { + result = &v1beta1.Policy{} err = c.client.Get(). Namespace(c.ns). Resource("policies"). @@ -71,12 +71,12 @@ func (c *policies) Get(ctx context.Context, name string, options v1.GetOptions) } // List takes label and field selectors, and returns the list of Policies that match those selectors. -func (c *policies) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.PolicyList, err error) { +func (c *policies) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PolicyList, err error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second } - result = &v1alpha2.PolicyList{} + result = &v1beta1.PolicyList{} err = c.client.Get(). Namespace(c.ns). Resource("policies"). @@ -103,8 +103,8 @@ func (c *policies) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interf } // Create takes the representation of a policy and creates it. Returns the server's representation of the policy, and an error, if there is any. -func (c *policies) Create(ctx context.Context, policy *v1alpha2.Policy, opts v1.CreateOptions) (result *v1alpha2.Policy, err error) { - result = &v1alpha2.Policy{} +func (c *policies) Create(ctx context.Context, policy *v1beta1.Policy, opts v1.CreateOptions) (result *v1beta1.Policy, err error) { + result = &v1beta1.Policy{} err = c.client.Post(). Namespace(c.ns). Resource("policies"). @@ -116,8 +116,8 @@ func (c *policies) Create(ctx context.Context, policy *v1alpha2.Policy, opts v1. } // Update takes the representation of a policy and updates it. Returns the server's representation of the policy, and an error, if there is any. -func (c *policies) Update(ctx context.Context, policy *v1alpha2.Policy, opts v1.UpdateOptions) (result *v1alpha2.Policy, err error) { - result = &v1alpha2.Policy{} +func (c *policies) Update(ctx context.Context, policy *v1beta1.Policy, opts v1.UpdateOptions) (result *v1beta1.Policy, err error) { + result = &v1beta1.Policy{} err = c.client.Put(). Namespace(c.ns). Resource("policies"). @@ -131,8 +131,8 @@ func (c *policies) Update(ctx context.Context, policy *v1alpha2.Policy, opts v1. // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *policies) UpdateStatus(ctx context.Context, policy *v1alpha2.Policy, opts v1.UpdateOptions) (result *v1alpha2.Policy, err error) { - result = &v1alpha2.Policy{} +func (c *policies) UpdateStatus(ctx context.Context, policy *v1beta1.Policy, opts v1.UpdateOptions) (result *v1beta1.Policy, err error) { + result = &v1beta1.Policy{} err = c.client.Put(). Namespace(c.ns). Resource("policies"). @@ -173,8 +173,8 @@ func (c *policies) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, } // Patch applies the patch and returns the patched policy. -func (c *policies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Policy, err error) { - result = &v1alpha2.Policy{} +func (c *policies) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Policy, err error) { + result = &v1beta1.Policy{} err = c.client.Patch(pt). Namespace(c.ns). Resource("policies"). diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/queue.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/queue.go similarity index 78% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/queue.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/queue.go index 509a7b42..545b680f 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/queue.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/queue.go @@ -9,13 +9,13 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by client-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" "time" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" scheme "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -31,15 +31,15 @@ type QueuesGetter interface { // QueueInterface has methods to work with Queue resources. type QueueInterface interface { - Create(ctx context.Context, queue *v1alpha2.Queue, opts v1.CreateOptions) (*v1alpha2.Queue, error) - Update(ctx context.Context, queue *v1alpha2.Queue, opts v1.UpdateOptions) (*v1alpha2.Queue, error) - UpdateStatus(ctx context.Context, queue *v1alpha2.Queue, opts v1.UpdateOptions) (*v1alpha2.Queue, error) + Create(ctx context.Context, queue *v1beta1.Queue, opts v1.CreateOptions) (*v1beta1.Queue, error) + Update(ctx context.Context, queue *v1beta1.Queue, opts v1.UpdateOptions) (*v1beta1.Queue, error) + UpdateStatus(ctx context.Context, queue *v1beta1.Queue, opts v1.UpdateOptions) (*v1beta1.Queue, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Queue, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.QueueList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Queue, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.QueueList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Queue, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Queue, err error) QueueExpansion } @@ -50,7 +50,7 @@ type queues struct { } // newQueues returns a Queues -func newQueues(c *RabbitmqV1alpha2Client, namespace string) *queues { +func newQueues(c *RabbitmqV1beta1Client, namespace string) *queues { return &queues{ client: c.RESTClient(), ns: namespace, @@ -58,8 +58,8 @@ func newQueues(c *RabbitmqV1alpha2Client, namespace string) *queues { } // Get takes name of the queue, and returns the corresponding queue object, and an error if there is any. -func (c *queues) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Queue, err error) { - result = &v1alpha2.Queue{} +func (c *queues) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Queue, err error) { + result = &v1beta1.Queue{} err = c.client.Get(). Namespace(c.ns). Resource("queues"). @@ -71,12 +71,12 @@ func (c *queues) Get(ctx context.Context, name string, options v1.GetOptions) (r } // List takes label and field selectors, and returns the list of Queues that match those selectors. -func (c *queues) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.QueueList, err error) { +func (c *queues) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.QueueList, err error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second } - result = &v1alpha2.QueueList{} + result = &v1beta1.QueueList{} err = c.client.Get(). Namespace(c.ns). Resource("queues"). @@ -103,8 +103,8 @@ func (c *queues) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interfac } // Create takes the representation of a queue and creates it. Returns the server's representation of the queue, and an error, if there is any. -func (c *queues) Create(ctx context.Context, queue *v1alpha2.Queue, opts v1.CreateOptions) (result *v1alpha2.Queue, err error) { - result = &v1alpha2.Queue{} +func (c *queues) Create(ctx context.Context, queue *v1beta1.Queue, opts v1.CreateOptions) (result *v1beta1.Queue, err error) { + result = &v1beta1.Queue{} err = c.client.Post(). Namespace(c.ns). Resource("queues"). @@ -116,8 +116,8 @@ func (c *queues) Create(ctx context.Context, queue *v1alpha2.Queue, opts v1.Crea } // Update takes the representation of a queue and updates it. Returns the server's representation of the queue, and an error, if there is any. -func (c *queues) Update(ctx context.Context, queue *v1alpha2.Queue, opts v1.UpdateOptions) (result *v1alpha2.Queue, err error) { - result = &v1alpha2.Queue{} +func (c *queues) Update(ctx context.Context, queue *v1beta1.Queue, opts v1.UpdateOptions) (result *v1beta1.Queue, err error) { + result = &v1beta1.Queue{} err = c.client.Put(). Namespace(c.ns). Resource("queues"). @@ -131,8 +131,8 @@ func (c *queues) Update(ctx context.Context, queue *v1alpha2.Queue, opts v1.Upda // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *queues) UpdateStatus(ctx context.Context, queue *v1alpha2.Queue, opts v1.UpdateOptions) (result *v1alpha2.Queue, err error) { - result = &v1alpha2.Queue{} +func (c *queues) UpdateStatus(ctx context.Context, queue *v1beta1.Queue, opts v1.UpdateOptions) (result *v1beta1.Queue, err error) { + result = &v1beta1.Queue{} err = c.client.Put(). Namespace(c.ns). Resource("queues"). @@ -173,8 +173,8 @@ func (c *queues) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, li } // Patch applies the patch and returns the patched queue. -func (c *queues) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Queue, err error) { - result = &v1alpha2.Queue{} +func (c *queues) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Queue, err error) { + result = &v1beta1.Queue{} err = c.client.Patch(pt). Namespace(c.ns). Resource("queues"). diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/rabbitmq.com_client.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/rabbitmq.com_client.go similarity index 52% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/rabbitmq.com_client.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/rabbitmq.com_client.go index 3f8dfb5d..09c38e0f 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/rabbitmq.com_client.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/rabbitmq.com_client.go @@ -9,55 +9,65 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by client-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/scheme" rest "k8s.io/client-go/rest" ) -type RabbitmqV1alpha2Interface interface { +type RabbitmqV1beta1Interface interface { RESTClient() rest.Interface BindingsGetter ExchangesGetter + PermissionsGetter PoliciesGetter QueuesGetter + SchemaReplicationsGetter UsersGetter VhostsGetter } -// RabbitmqV1alpha2Client is used to interact with features provided by the rabbitmq.com group. -type RabbitmqV1alpha2Client struct { +// RabbitmqV1beta1Client is used to interact with features provided by the rabbitmq.com group. +type RabbitmqV1beta1Client struct { restClient rest.Interface } -func (c *RabbitmqV1alpha2Client) Bindings(namespace string) BindingInterface { +func (c *RabbitmqV1beta1Client) Bindings(namespace string) BindingInterface { return newBindings(c, namespace) } -func (c *RabbitmqV1alpha2Client) Exchanges(namespace string) ExchangeInterface { +func (c *RabbitmqV1beta1Client) Exchanges(namespace string) ExchangeInterface { return newExchanges(c, namespace) } -func (c *RabbitmqV1alpha2Client) Policies(namespace string) PolicyInterface { +func (c *RabbitmqV1beta1Client) Permissions(namespace string) PermissionInterface { + return newPermissions(c, namespace) +} + +func (c *RabbitmqV1beta1Client) Policies(namespace string) PolicyInterface { return newPolicies(c, namespace) } -func (c *RabbitmqV1alpha2Client) Queues(namespace string) QueueInterface { +func (c *RabbitmqV1beta1Client) Queues(namespace string) QueueInterface { return newQueues(c, namespace) } -func (c *RabbitmqV1alpha2Client) Users(namespace string) UserInterface { +func (c *RabbitmqV1beta1Client) SchemaReplications(namespace string) SchemaReplicationInterface { + return newSchemaReplications(c, namespace) +} + +func (c *RabbitmqV1beta1Client) Users(namespace string) UserInterface { return newUsers(c, namespace) } -func (c *RabbitmqV1alpha2Client) Vhosts(namespace string) VhostInterface { +func (c *RabbitmqV1beta1Client) Vhosts(namespace string) VhostInterface { return newVhosts(c, namespace) } -// NewForConfig creates a new RabbitmqV1alpha2Client for the given config. -func NewForConfig(c *rest.Config) (*RabbitmqV1alpha2Client, error) { +// NewForConfig creates a new RabbitmqV1beta1Client for the given config. +func NewForConfig(c *rest.Config) (*RabbitmqV1beta1Client, error) { config := *c if err := setConfigDefaults(&config); err != nil { return nil, err @@ -66,12 +76,12 @@ func NewForConfig(c *rest.Config) (*RabbitmqV1alpha2Client, error) { if err != nil { return nil, err } - return &RabbitmqV1alpha2Client{client}, nil + return &RabbitmqV1beta1Client{client}, nil } -// NewForConfigOrDie creates a new RabbitmqV1alpha2Client for the given config and +// NewForConfigOrDie creates a new RabbitmqV1beta1Client for the given config and // panics if there is an error in the config. -func NewForConfigOrDie(c *rest.Config) *RabbitmqV1alpha2Client { +func NewForConfigOrDie(c *rest.Config) *RabbitmqV1beta1Client { client, err := NewForConfig(c) if err != nil { panic(err) @@ -79,13 +89,13 @@ func NewForConfigOrDie(c *rest.Config) *RabbitmqV1alpha2Client { return client } -// New creates a new RabbitmqV1alpha2Client for the given RESTClient. -func New(c rest.Interface) *RabbitmqV1alpha2Client { - return &RabbitmqV1alpha2Client{c} +// New creates a new RabbitmqV1beta1Client for the given RESTClient. +func New(c rest.Interface) *RabbitmqV1beta1Client { + return &RabbitmqV1beta1Client{c} } func setConfigDefaults(config *rest.Config) error { - gv := v1alpha2.SchemeGroupVersion + gv := v1beta1.SchemeGroupVersion config.GroupVersion = &gv config.APIPath = "/apis" config.NegotiatedSerializer = scheme.Codecs.WithoutConversion() @@ -99,7 +109,7 @@ func setConfigDefaults(config *rest.Config) error { // RESTClient returns a RESTClient that is used to communicate // with API server by this client implementation. -func (c *RabbitmqV1alpha2Client) RESTClient() rest.Interface { +func (c *RabbitmqV1beta1Client) RESTClient() rest.Interface { if c == nil { return nil } diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/schemareplication.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/schemareplication.go new file mode 100644 index 00000000..949bfc05 --- /dev/null +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/schemareplication.go @@ -0,0 +1,188 @@ +/* +RabbitMQ Messaging Topology Kubernetes Operator +Copyright 2021 VMware, Inc. + +This product is licensed to you under the Mozilla Public License 2.0 license (the "License"). You may not use this product except in compliance with the Mozilla 2.0 License. + +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. +*/ + +// Code generated by client-gen. DO NOT EDIT. + +package v1beta1 + +import ( + "context" + "time" + + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" + scheme "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/scheme" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + types "k8s.io/apimachinery/pkg/types" + watch "k8s.io/apimachinery/pkg/watch" + rest "k8s.io/client-go/rest" +) + +// SchemaReplicationsGetter has a method to return a SchemaReplicationInterface. +// A group's client should implement this interface. +type SchemaReplicationsGetter interface { + SchemaReplications(namespace string) SchemaReplicationInterface +} + +// SchemaReplicationInterface has methods to work with SchemaReplication resources. +type SchemaReplicationInterface interface { + Create(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.CreateOptions) (*v1beta1.SchemaReplication, error) + Update(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.UpdateOptions) (*v1beta1.SchemaReplication, error) + UpdateStatus(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.UpdateOptions) (*v1beta1.SchemaReplication, error) + Delete(ctx context.Context, name string, opts v1.DeleteOptions) error + DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.SchemaReplication, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.SchemaReplicationList, error) + Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.SchemaReplication, err error) + SchemaReplicationExpansion +} + +// schemaReplications implements SchemaReplicationInterface +type schemaReplications struct { + client rest.Interface + ns string +} + +// newSchemaReplications returns a SchemaReplications +func newSchemaReplications(c *RabbitmqV1beta1Client, namespace string) *schemaReplications { + return &schemaReplications{ + client: c.RESTClient(), + ns: namespace, + } +} + +// Get takes name of the schemaReplication, and returns the corresponding schemaReplication object, and an error if there is any. +func (c *schemaReplications) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.SchemaReplication, err error) { + result = &v1beta1.SchemaReplication{} + err = c.client.Get(). + Namespace(c.ns). + Resource("schemareplications"). + Name(name). + VersionedParams(&options, scheme.ParameterCodec). + Do(ctx). + Into(result) + return +} + +// List takes label and field selectors, and returns the list of SchemaReplications that match those selectors. +func (c *schemaReplications) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.SchemaReplicationList, err error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + result = &v1beta1.SchemaReplicationList{} + err = c.client.Get(). + Namespace(c.ns). + Resource("schemareplications"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Do(ctx). + Into(result) + return +} + +// Watch returns a watch.Interface that watches the requested schemaReplications. +func (c *schemaReplications) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) { + var timeout time.Duration + if opts.TimeoutSeconds != nil { + timeout = time.Duration(*opts.TimeoutSeconds) * time.Second + } + opts.Watch = true + return c.client.Get(). + Namespace(c.ns). + Resource("schemareplications"). + VersionedParams(&opts, scheme.ParameterCodec). + Timeout(timeout). + Watch(ctx) +} + +// Create takes the representation of a schemaReplication and creates it. Returns the server's representation of the schemaReplication, and an error, if there is any. +func (c *schemaReplications) Create(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.CreateOptions) (result *v1beta1.SchemaReplication, err error) { + result = &v1beta1.SchemaReplication{} + err = c.client.Post(). + Namespace(c.ns). + Resource("schemareplications"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(schemaReplication). + Do(ctx). + Into(result) + return +} + +// Update takes the representation of a schemaReplication and updates it. Returns the server's representation of the schemaReplication, and an error, if there is any. +func (c *schemaReplications) Update(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.UpdateOptions) (result *v1beta1.SchemaReplication, err error) { + result = &v1beta1.SchemaReplication{} + err = c.client.Put(). + Namespace(c.ns). + Resource("schemareplications"). + Name(schemaReplication.Name). + VersionedParams(&opts, scheme.ParameterCodec). + Body(schemaReplication). + Do(ctx). + Into(result) + return +} + +// UpdateStatus was generated because the type contains a Status member. +// Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). +func (c *schemaReplications) UpdateStatus(ctx context.Context, schemaReplication *v1beta1.SchemaReplication, opts v1.UpdateOptions) (result *v1beta1.SchemaReplication, err error) { + result = &v1beta1.SchemaReplication{} + err = c.client.Put(). + Namespace(c.ns). + Resource("schemareplications"). + Name(schemaReplication.Name). + SubResource("status"). + VersionedParams(&opts, scheme.ParameterCodec). + Body(schemaReplication). + Do(ctx). + Into(result) + return +} + +// Delete takes name of the schemaReplication and deletes it. Returns an error if one occurs. +func (c *schemaReplications) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error { + return c.client.Delete(). + Namespace(c.ns). + Resource("schemareplications"). + Name(name). + Body(&opts). + Do(ctx). + Error() +} + +// DeleteCollection deletes a collection of objects. +func (c *schemaReplications) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error { + var timeout time.Duration + if listOpts.TimeoutSeconds != nil { + timeout = time.Duration(*listOpts.TimeoutSeconds) * time.Second + } + return c.client.Delete(). + Namespace(c.ns). + Resource("schemareplications"). + VersionedParams(&listOpts, scheme.ParameterCodec). + Timeout(timeout). + Body(&opts). + Do(ctx). + Error() +} + +// Patch applies the patch and returns the patched schemaReplication. +func (c *schemaReplications) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.SchemaReplication, err error) { + result = &v1beta1.SchemaReplication{} + err = c.client.Patch(pt). + Namespace(c.ns). + Resource("schemareplications"). + Name(name). + SubResource(subresources...). + VersionedParams(&opts, scheme.ParameterCodec). + Body(data). + Do(ctx). + Into(result) + return +} diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/user.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/user.go similarity index 79% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/user.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/user.go index 348f10b6..8cd6a28f 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/user.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/user.go @@ -9,13 +9,13 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by client-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" "time" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" scheme "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -31,15 +31,15 @@ type UsersGetter interface { // UserInterface has methods to work with User resources. type UserInterface interface { - Create(ctx context.Context, user *v1alpha2.User, opts v1.CreateOptions) (*v1alpha2.User, error) - Update(ctx context.Context, user *v1alpha2.User, opts v1.UpdateOptions) (*v1alpha2.User, error) - UpdateStatus(ctx context.Context, user *v1alpha2.User, opts v1.UpdateOptions) (*v1alpha2.User, error) + Create(ctx context.Context, user *v1beta1.User, opts v1.CreateOptions) (*v1beta1.User, error) + Update(ctx context.Context, user *v1beta1.User, opts v1.UpdateOptions) (*v1beta1.User, error) + UpdateStatus(ctx context.Context, user *v1beta1.User, opts v1.UpdateOptions) (*v1beta1.User, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.User, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.UserList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.User, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.UserList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.User, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.User, err error) UserExpansion } @@ -50,7 +50,7 @@ type users struct { } // newUsers returns a Users -func newUsers(c *RabbitmqV1alpha2Client, namespace string) *users { +func newUsers(c *RabbitmqV1beta1Client, namespace string) *users { return &users{ client: c.RESTClient(), ns: namespace, @@ -58,8 +58,8 @@ func newUsers(c *RabbitmqV1alpha2Client, namespace string) *users { } // Get takes name of the user, and returns the corresponding user object, and an error if there is any. -func (c *users) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.User, err error) { - result = &v1alpha2.User{} +func (c *users) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.User, err error) { + result = &v1beta1.User{} err = c.client.Get(). Namespace(c.ns). Resource("users"). @@ -71,12 +71,12 @@ func (c *users) Get(ctx context.Context, name string, options v1.GetOptions) (re } // List takes label and field selectors, and returns the list of Users that match those selectors. -func (c *users) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.UserList, err error) { +func (c *users) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.UserList, err error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second } - result = &v1alpha2.UserList{} + result = &v1beta1.UserList{} err = c.client.Get(). Namespace(c.ns). Resource("users"). @@ -103,8 +103,8 @@ func (c *users) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface } // Create takes the representation of a user and creates it. Returns the server's representation of the user, and an error, if there is any. -func (c *users) Create(ctx context.Context, user *v1alpha2.User, opts v1.CreateOptions) (result *v1alpha2.User, err error) { - result = &v1alpha2.User{} +func (c *users) Create(ctx context.Context, user *v1beta1.User, opts v1.CreateOptions) (result *v1beta1.User, err error) { + result = &v1beta1.User{} err = c.client.Post(). Namespace(c.ns). Resource("users"). @@ -116,8 +116,8 @@ func (c *users) Create(ctx context.Context, user *v1alpha2.User, opts v1.CreateO } // Update takes the representation of a user and updates it. Returns the server's representation of the user, and an error, if there is any. -func (c *users) Update(ctx context.Context, user *v1alpha2.User, opts v1.UpdateOptions) (result *v1alpha2.User, err error) { - result = &v1alpha2.User{} +func (c *users) Update(ctx context.Context, user *v1beta1.User, opts v1.UpdateOptions) (result *v1beta1.User, err error) { + result = &v1beta1.User{} err = c.client.Put(). Namespace(c.ns). Resource("users"). @@ -131,8 +131,8 @@ func (c *users) Update(ctx context.Context, user *v1alpha2.User, opts v1.UpdateO // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *users) UpdateStatus(ctx context.Context, user *v1alpha2.User, opts v1.UpdateOptions) (result *v1alpha2.User, err error) { - result = &v1alpha2.User{} +func (c *users) UpdateStatus(ctx context.Context, user *v1beta1.User, opts v1.UpdateOptions) (result *v1beta1.User, err error) { + result = &v1beta1.User{} err = c.client.Put(). Namespace(c.ns). Resource("users"). @@ -173,8 +173,8 @@ func (c *users) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, lis } // Patch applies the patch and returns the patched user. -func (c *users) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.User, err error) { - result = &v1alpha2.User{} +func (c *users) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.User, err error) { + result = &v1beta1.User{} err = c.client.Patch(pt). Namespace(c.ns). Resource("users"). diff --git a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/vhost.go b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/vhost.go similarity index 78% rename from pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/vhost.go rename to pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/vhost.go index 617e1c22..e6cd9c6a 100644 --- a/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1alpha2/vhost.go +++ b/pkg/generated/clientset/versioned/typed/rabbitmq.com/v1beta1/vhost.go @@ -9,13 +9,13 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by client-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" "time" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" scheme "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned/scheme" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" types "k8s.io/apimachinery/pkg/types" @@ -31,15 +31,15 @@ type VhostsGetter interface { // VhostInterface has methods to work with Vhost resources. type VhostInterface interface { - Create(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.CreateOptions) (*v1alpha2.Vhost, error) - Update(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.UpdateOptions) (*v1alpha2.Vhost, error) - UpdateStatus(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.UpdateOptions) (*v1alpha2.Vhost, error) + Create(ctx context.Context, vhost *v1beta1.Vhost, opts v1.CreateOptions) (*v1beta1.Vhost, error) + Update(ctx context.Context, vhost *v1beta1.Vhost, opts v1.UpdateOptions) (*v1beta1.Vhost, error) + UpdateStatus(ctx context.Context, vhost *v1beta1.Vhost, opts v1.UpdateOptions) (*v1beta1.Vhost, error) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error - Get(ctx context.Context, name string, opts v1.GetOptions) (*v1alpha2.Vhost, error) - List(ctx context.Context, opts v1.ListOptions) (*v1alpha2.VhostList, error) + Get(ctx context.Context, name string, opts v1.GetOptions) (*v1beta1.Vhost, error) + List(ctx context.Context, opts v1.ListOptions) (*v1beta1.VhostList, error) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error) - Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Vhost, err error) + Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Vhost, err error) VhostExpansion } @@ -50,7 +50,7 @@ type vhosts struct { } // newVhosts returns a Vhosts -func newVhosts(c *RabbitmqV1alpha2Client, namespace string) *vhosts { +func newVhosts(c *RabbitmqV1beta1Client, namespace string) *vhosts { return &vhosts{ client: c.RESTClient(), ns: namespace, @@ -58,8 +58,8 @@ func newVhosts(c *RabbitmqV1alpha2Client, namespace string) *vhosts { } // Get takes name of the vhost, and returns the corresponding vhost object, and an error if there is any. -func (c *vhosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha2.Vhost, err error) { - result = &v1alpha2.Vhost{} +func (c *vhosts) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Vhost, err error) { + result = &v1beta1.Vhost{} err = c.client.Get(). Namespace(c.ns). Resource("vhosts"). @@ -71,12 +71,12 @@ func (c *vhosts) Get(ctx context.Context, name string, options v1.GetOptions) (r } // List takes label and field selectors, and returns the list of Vhosts that match those selectors. -func (c *vhosts) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha2.VhostList, err error) { +func (c *vhosts) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.VhostList, err error) { var timeout time.Duration if opts.TimeoutSeconds != nil { timeout = time.Duration(*opts.TimeoutSeconds) * time.Second } - result = &v1alpha2.VhostList{} + result = &v1beta1.VhostList{} err = c.client.Get(). Namespace(c.ns). Resource("vhosts"). @@ -103,8 +103,8 @@ func (c *vhosts) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interfac } // Create takes the representation of a vhost and creates it. Returns the server's representation of the vhost, and an error, if there is any. -func (c *vhosts) Create(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.CreateOptions) (result *v1alpha2.Vhost, err error) { - result = &v1alpha2.Vhost{} +func (c *vhosts) Create(ctx context.Context, vhost *v1beta1.Vhost, opts v1.CreateOptions) (result *v1beta1.Vhost, err error) { + result = &v1beta1.Vhost{} err = c.client.Post(). Namespace(c.ns). Resource("vhosts"). @@ -116,8 +116,8 @@ func (c *vhosts) Create(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.Crea } // Update takes the representation of a vhost and updates it. Returns the server's representation of the vhost, and an error, if there is any. -func (c *vhosts) Update(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.UpdateOptions) (result *v1alpha2.Vhost, err error) { - result = &v1alpha2.Vhost{} +func (c *vhosts) Update(ctx context.Context, vhost *v1beta1.Vhost, opts v1.UpdateOptions) (result *v1beta1.Vhost, err error) { + result = &v1beta1.Vhost{} err = c.client.Put(). Namespace(c.ns). Resource("vhosts"). @@ -131,8 +131,8 @@ func (c *vhosts) Update(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.Upda // UpdateStatus was generated because the type contains a Status member. // Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus(). -func (c *vhosts) UpdateStatus(ctx context.Context, vhost *v1alpha2.Vhost, opts v1.UpdateOptions) (result *v1alpha2.Vhost, err error) { - result = &v1alpha2.Vhost{} +func (c *vhosts) UpdateStatus(ctx context.Context, vhost *v1beta1.Vhost, opts v1.UpdateOptions) (result *v1beta1.Vhost, err error) { + result = &v1beta1.Vhost{} err = c.client.Put(). Namespace(c.ns). Resource("vhosts"). @@ -173,8 +173,8 @@ func (c *vhosts) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, li } // Patch applies the patch and returns the patched vhost. -func (c *vhosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha2.Vhost, err error) { - result = &v1alpha2.Vhost{} +func (c *vhosts) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Vhost, err error) { + result = &v1beta1.Vhost{} err = c.client.Patch(pt). Namespace(c.ns). Resource("vhosts"). diff --git a/pkg/generated/informers/externalversions/generic.go b/pkg/generated/informers/externalversions/generic.go index 16800a14..3044d31c 100644 --- a/pkg/generated/informers/externalversions/generic.go +++ b/pkg/generated/informers/externalversions/generic.go @@ -14,7 +14,7 @@ package externalversions import ( "fmt" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" schema "k8s.io/apimachinery/pkg/runtime/schema" cache "k8s.io/client-go/tools/cache" ) @@ -45,19 +45,23 @@ func (f *genericInformer) Lister() cache.GenericLister { // TODO extend this to unknown resources with a client pool func (f *sharedInformerFactory) ForResource(resource schema.GroupVersionResource) (GenericInformer, error) { switch resource { - // Group=rabbitmq.com, Version=v1alpha2 - case v1alpha2.SchemeGroupVersion.WithResource("bindings"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1alpha2().Bindings().Informer()}, nil - case v1alpha2.SchemeGroupVersion.WithResource("exchanges"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1alpha2().Exchanges().Informer()}, nil - case v1alpha2.SchemeGroupVersion.WithResource("policies"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1alpha2().Policies().Informer()}, nil - case v1alpha2.SchemeGroupVersion.WithResource("queues"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1alpha2().Queues().Informer()}, nil - case v1alpha2.SchemeGroupVersion.WithResource("users"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1alpha2().Users().Informer()}, nil - case v1alpha2.SchemeGroupVersion.WithResource("vhosts"): - return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1alpha2().Vhosts().Informer()}, nil + // Group=rabbitmq.com, Version=v1beta1 + case v1beta1.SchemeGroupVersion.WithResource("bindings"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1beta1().Bindings().Informer()}, nil + case v1beta1.SchemeGroupVersion.WithResource("exchanges"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1beta1().Exchanges().Informer()}, nil + case v1beta1.SchemeGroupVersion.WithResource("permissions"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1beta1().Permissions().Informer()}, nil + case v1beta1.SchemeGroupVersion.WithResource("policies"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1beta1().Policies().Informer()}, nil + case v1beta1.SchemeGroupVersion.WithResource("queues"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1beta1().Queues().Informer()}, nil + case v1beta1.SchemeGroupVersion.WithResource("schemareplications"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1beta1().SchemaReplications().Informer()}, nil + case v1beta1.SchemeGroupVersion.WithResource("users"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1beta1().Users().Informer()}, nil + case v1beta1.SchemeGroupVersion.WithResource("vhosts"): + return &genericInformer{resource: resource.GroupResource(), informer: f.Rabbitmq().V1beta1().Vhosts().Informer()}, nil } diff --git a/pkg/generated/informers/externalversions/rabbitmq.com/interface.go b/pkg/generated/informers/externalversions/rabbitmq.com/interface.go index fce9bfe4..8e7e9b2d 100644 --- a/pkg/generated/informers/externalversions/rabbitmq.com/interface.go +++ b/pkg/generated/informers/externalversions/rabbitmq.com/interface.go @@ -13,13 +13,13 @@ package rabbitmq import ( internalinterfaces "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1" ) // Interface provides access to each of this group's versions. type Interface interface { - // V1alpha2 provides access to shared informers for resources in V1alpha2. - V1alpha2() v1alpha2.Interface + // V1beta1 provides access to shared informers for resources in V1beta1. + V1beta1() v1beta1.Interface } type group struct { @@ -33,7 +33,7 @@ func New(f internalinterfaces.SharedInformerFactory, namespace string, tweakList return &group{factory: f, namespace: namespace, tweakListOptions: tweakListOptions} } -// V1alpha2 returns a new v1alpha2.Interface. -func (g *group) V1alpha2() v1alpha2.Interface { - return v1alpha2.New(g.factory, g.namespace, g.tweakListOptions) +// V1beta1 returns a new v1beta1.Interface. +func (g *group) V1beta1() v1beta1.Interface { + return v1beta1.New(g.factory, g.namespace, g.tweakListOptions) } diff --git a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/binding.go b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/binding.go similarity index 82% rename from pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/binding.go rename to pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/binding.go index 97b3d590..5a41793f 100644 --- a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/binding.go +++ b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/binding.go @@ -9,16 +9,16 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by informer-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" time "time" - rabbitmqcomv1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + rabbitmqcomv1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" versioned "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned" internalinterfaces "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -29,7 +29,7 @@ import ( // Bindings. type BindingInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha2.BindingLister + Lister() v1beta1.BindingLister } type bindingInformer struct { @@ -55,16 +55,16 @@ func NewFilteredBindingInformer(client versioned.Interface, namespace string, re if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Bindings(namespace).List(context.TODO(), options) + return client.RabbitmqV1beta1().Bindings(namespace).List(context.TODO(), options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Bindings(namespace).Watch(context.TODO(), options) + return client.RabbitmqV1beta1().Bindings(namespace).Watch(context.TODO(), options) }, }, - &rabbitmqcomv1alpha2.Binding{}, + &rabbitmqcomv1beta1.Binding{}, resyncPeriod, indexers, ) @@ -75,9 +75,9 @@ func (f *bindingInformer) defaultInformer(client versioned.Interface, resyncPeri } func (f *bindingInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&rabbitmqcomv1alpha2.Binding{}, f.defaultInformer) + return f.factory.InformerFor(&rabbitmqcomv1beta1.Binding{}, f.defaultInformer) } -func (f *bindingInformer) Lister() v1alpha2.BindingLister { - return v1alpha2.NewBindingLister(f.Informer().GetIndexer()) +func (f *bindingInformer) Lister() v1beta1.BindingLister { + return v1beta1.NewBindingLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/exchange.go b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/exchange.go similarity index 82% rename from pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/exchange.go rename to pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/exchange.go index 09a2e95b..bb7bbfee 100644 --- a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/exchange.go +++ b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/exchange.go @@ -9,16 +9,16 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by informer-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" time "time" - rabbitmqcomv1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + rabbitmqcomv1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" versioned "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned" internalinterfaces "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -29,7 +29,7 @@ import ( // Exchanges. type ExchangeInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha2.ExchangeLister + Lister() v1beta1.ExchangeLister } type exchangeInformer struct { @@ -55,16 +55,16 @@ func NewFilteredExchangeInformer(client versioned.Interface, namespace string, r if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Exchanges(namespace).List(context.TODO(), options) + return client.RabbitmqV1beta1().Exchanges(namespace).List(context.TODO(), options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Exchanges(namespace).Watch(context.TODO(), options) + return client.RabbitmqV1beta1().Exchanges(namespace).Watch(context.TODO(), options) }, }, - &rabbitmqcomv1alpha2.Exchange{}, + &rabbitmqcomv1beta1.Exchange{}, resyncPeriod, indexers, ) @@ -75,9 +75,9 @@ func (f *exchangeInformer) defaultInformer(client versioned.Interface, resyncPer } func (f *exchangeInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&rabbitmqcomv1alpha2.Exchange{}, f.defaultInformer) + return f.factory.InformerFor(&rabbitmqcomv1beta1.Exchange{}, f.defaultInformer) } -func (f *exchangeInformer) Lister() v1alpha2.ExchangeLister { - return v1alpha2.NewExchangeLister(f.Informer().GetIndexer()) +func (f *exchangeInformer) Lister() v1beta1.ExchangeLister { + return v1beta1.NewExchangeLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/interface.go b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/interface.go similarity index 80% rename from pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/interface.go rename to pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/interface.go index 2d230e52..5c9575ee 100644 --- a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/interface.go +++ b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/interface.go @@ -9,7 +9,7 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by informer-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( internalinterfaces "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/internalinterfaces" @@ -21,10 +21,14 @@ type Interface interface { Bindings() BindingInformer // Exchanges returns a ExchangeInformer. Exchanges() ExchangeInformer + // Permissions returns a PermissionInformer. + Permissions() PermissionInformer // Policies returns a PolicyInformer. Policies() PolicyInformer // Queues returns a QueueInformer. Queues() QueueInformer + // SchemaReplications returns a SchemaReplicationInformer. + SchemaReplications() SchemaReplicationInformer // Users returns a UserInformer. Users() UserInformer // Vhosts returns a VhostInformer. @@ -52,6 +56,11 @@ func (v *version) Exchanges() ExchangeInformer { return &exchangeInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } +// Permissions returns a PermissionInformer. +func (v *version) Permissions() PermissionInformer { + return &permissionInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + // Policies returns a PolicyInformer. func (v *version) Policies() PolicyInformer { return &policyInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} @@ -62,6 +71,11 @@ func (v *version) Queues() QueueInformer { return &queueInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} } +// SchemaReplications returns a SchemaReplicationInformer. +func (v *version) SchemaReplications() SchemaReplicationInformer { + return &schemaReplicationInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} +} + // Users returns a UserInformer. func (v *version) Users() UserInformer { return &userInformer{factory: v.factory, namespace: v.namespace, tweakListOptions: v.tweakListOptions} diff --git a/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/permission.go b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/permission.go new file mode 100644 index 00000000..3c1eed20 --- /dev/null +++ b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/permission.go @@ -0,0 +1,83 @@ +/* +RabbitMQ Messaging Topology Kubernetes Operator +Copyright 2021 VMware, Inc. + +This product is licensed to you under the Mozilla Public License 2.0 license (the "License"). You may not use this product except in compliance with the Mozilla 2.0 License. + +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. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1beta1 + +import ( + "context" + time "time" + + rabbitmqcomv1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" + versioned "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned" + internalinterfaces "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/internalinterfaces" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1beta1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// PermissionInformer provides access to a shared informer and lister for +// Permissions. +type PermissionInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1beta1.PermissionLister +} + +type permissionInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewPermissionInformer constructs a new informer for Permission type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewPermissionInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredPermissionInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredPermissionInformer constructs a new informer for Permission type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredPermissionInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RabbitmqV1beta1().Permissions(namespace).List(context.TODO(), options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RabbitmqV1beta1().Permissions(namespace).Watch(context.TODO(), options) + }, + }, + &rabbitmqcomv1beta1.Permission{}, + resyncPeriod, + indexers, + ) +} + +func (f *permissionInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredPermissionInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *permissionInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&rabbitmqcomv1beta1.Permission{}, f.defaultInformer) +} + +func (f *permissionInformer) Lister() v1beta1.PermissionLister { + return v1beta1.NewPermissionLister(f.Informer().GetIndexer()) +} diff --git a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/policy.go b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/policy.go similarity index 82% rename from pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/policy.go rename to pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/policy.go index 1dd13b9f..c35681d0 100644 --- a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/policy.go +++ b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/policy.go @@ -9,16 +9,16 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by informer-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" time "time" - rabbitmqcomv1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + rabbitmqcomv1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" versioned "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned" internalinterfaces "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -29,7 +29,7 @@ import ( // Policies. type PolicyInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha2.PolicyLister + Lister() v1beta1.PolicyLister } type policyInformer struct { @@ -55,16 +55,16 @@ func NewFilteredPolicyInformer(client versioned.Interface, namespace string, res if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Policies(namespace).List(context.TODO(), options) + return client.RabbitmqV1beta1().Policies(namespace).List(context.TODO(), options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Policies(namespace).Watch(context.TODO(), options) + return client.RabbitmqV1beta1().Policies(namespace).Watch(context.TODO(), options) }, }, - &rabbitmqcomv1alpha2.Policy{}, + &rabbitmqcomv1beta1.Policy{}, resyncPeriod, indexers, ) @@ -75,9 +75,9 @@ func (f *policyInformer) defaultInformer(client versioned.Interface, resyncPerio } func (f *policyInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&rabbitmqcomv1alpha2.Policy{}, f.defaultInformer) + return f.factory.InformerFor(&rabbitmqcomv1beta1.Policy{}, f.defaultInformer) } -func (f *policyInformer) Lister() v1alpha2.PolicyLister { - return v1alpha2.NewPolicyLister(f.Informer().GetIndexer()) +func (f *policyInformer) Lister() v1beta1.PolicyLister { + return v1beta1.NewPolicyLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/queue.go b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/queue.go similarity index 83% rename from pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/queue.go rename to pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/queue.go index 3b1d6d71..5dc19982 100644 --- a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/queue.go +++ b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/queue.go @@ -9,16 +9,16 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by informer-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" time "time" - rabbitmqcomv1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + rabbitmqcomv1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" versioned "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned" internalinterfaces "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -29,7 +29,7 @@ import ( // Queues. type QueueInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha2.QueueLister + Lister() v1beta1.QueueLister } type queueInformer struct { @@ -55,16 +55,16 @@ func NewFilteredQueueInformer(client versioned.Interface, namespace string, resy if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Queues(namespace).List(context.TODO(), options) + return client.RabbitmqV1beta1().Queues(namespace).List(context.TODO(), options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Queues(namespace).Watch(context.TODO(), options) + return client.RabbitmqV1beta1().Queues(namespace).Watch(context.TODO(), options) }, }, - &rabbitmqcomv1alpha2.Queue{}, + &rabbitmqcomv1beta1.Queue{}, resyncPeriod, indexers, ) @@ -75,9 +75,9 @@ func (f *queueInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *queueInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&rabbitmqcomv1alpha2.Queue{}, f.defaultInformer) + return f.factory.InformerFor(&rabbitmqcomv1beta1.Queue{}, f.defaultInformer) } -func (f *queueInformer) Lister() v1alpha2.QueueLister { - return v1alpha2.NewQueueLister(f.Informer().GetIndexer()) +func (f *queueInformer) Lister() v1beta1.QueueLister { + return v1beta1.NewQueueLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/schemareplication.go b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/schemareplication.go new file mode 100644 index 00000000..e08fb7f4 --- /dev/null +++ b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/schemareplication.go @@ -0,0 +1,83 @@ +/* +RabbitMQ Messaging Topology Kubernetes Operator +Copyright 2021 VMware, Inc. + +This product is licensed to you under the Mozilla Public License 2.0 license (the "License"). You may not use this product except in compliance with the Mozilla 2.0 License. + +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. +*/ + +// Code generated by informer-gen. DO NOT EDIT. + +package v1beta1 + +import ( + "context" + time "time" + + rabbitmqcomv1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" + versioned "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned" + internalinterfaces "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/internalinterfaces" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1beta1" + v1 "k8s.io/apimachinery/pkg/apis/meta/v1" + runtime "k8s.io/apimachinery/pkg/runtime" + watch "k8s.io/apimachinery/pkg/watch" + cache "k8s.io/client-go/tools/cache" +) + +// SchemaReplicationInformer provides access to a shared informer and lister for +// SchemaReplications. +type SchemaReplicationInformer interface { + Informer() cache.SharedIndexInformer + Lister() v1beta1.SchemaReplicationLister +} + +type schemaReplicationInformer struct { + factory internalinterfaces.SharedInformerFactory + tweakListOptions internalinterfaces.TweakListOptionsFunc + namespace string +} + +// NewSchemaReplicationInformer constructs a new informer for SchemaReplication type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewSchemaReplicationInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers) cache.SharedIndexInformer { + return NewFilteredSchemaReplicationInformer(client, namespace, resyncPeriod, indexers, nil) +} + +// NewFilteredSchemaReplicationInformer constructs a new informer for SchemaReplication type. +// Always prefer using an informer factory to get a shared informer instead of getting an independent +// one. This reduces memory footprint and number of connections to the server. +func NewFilteredSchemaReplicationInformer(client versioned.Interface, namespace string, resyncPeriod time.Duration, indexers cache.Indexers, tweakListOptions internalinterfaces.TweakListOptionsFunc) cache.SharedIndexInformer { + return cache.NewSharedIndexInformer( + &cache.ListWatch{ + ListFunc: func(options v1.ListOptions) (runtime.Object, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RabbitmqV1beta1().SchemaReplications(namespace).List(context.TODO(), options) + }, + WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { + if tweakListOptions != nil { + tweakListOptions(&options) + } + return client.RabbitmqV1beta1().SchemaReplications(namespace).Watch(context.TODO(), options) + }, + }, + &rabbitmqcomv1beta1.SchemaReplication{}, + resyncPeriod, + indexers, + ) +} + +func (f *schemaReplicationInformer) defaultInformer(client versioned.Interface, resyncPeriod time.Duration) cache.SharedIndexInformer { + return NewFilteredSchemaReplicationInformer(client, f.namespace, resyncPeriod, cache.Indexers{cache.NamespaceIndex: cache.MetaNamespaceIndexFunc}, f.tweakListOptions) +} + +func (f *schemaReplicationInformer) Informer() cache.SharedIndexInformer { + return f.factory.InformerFor(&rabbitmqcomv1beta1.SchemaReplication{}, f.defaultInformer) +} + +func (f *schemaReplicationInformer) Lister() v1beta1.SchemaReplicationLister { + return v1beta1.NewSchemaReplicationLister(f.Informer().GetIndexer()) +} diff --git a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/user.go b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/user.go similarity index 83% rename from pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/user.go rename to pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/user.go index 20d0630b..76a8eee7 100644 --- a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/user.go +++ b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/user.go @@ -9,16 +9,16 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by informer-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" time "time" - rabbitmqcomv1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + rabbitmqcomv1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" versioned "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned" internalinterfaces "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -29,7 +29,7 @@ import ( // Users. type UserInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha2.UserLister + Lister() v1beta1.UserLister } type userInformer struct { @@ -55,16 +55,16 @@ func NewFilteredUserInformer(client versioned.Interface, namespace string, resyn if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Users(namespace).List(context.TODO(), options) + return client.RabbitmqV1beta1().Users(namespace).List(context.TODO(), options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Users(namespace).Watch(context.TODO(), options) + return client.RabbitmqV1beta1().Users(namespace).Watch(context.TODO(), options) }, }, - &rabbitmqcomv1alpha2.User{}, + &rabbitmqcomv1beta1.User{}, resyncPeriod, indexers, ) @@ -75,9 +75,9 @@ func (f *userInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *userInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&rabbitmqcomv1alpha2.User{}, f.defaultInformer) + return f.factory.InformerFor(&rabbitmqcomv1beta1.User{}, f.defaultInformer) } -func (f *userInformer) Lister() v1alpha2.UserLister { - return v1alpha2.NewUserLister(f.Informer().GetIndexer()) +func (f *userInformer) Lister() v1beta1.UserLister { + return v1beta1.NewUserLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/vhost.go b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/vhost.go similarity index 83% rename from pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/vhost.go rename to pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/vhost.go index f6886f4d..e9bc7a0d 100644 --- a/pkg/generated/informers/externalversions/rabbitmq.com/v1alpha2/vhost.go +++ b/pkg/generated/informers/externalversions/rabbitmq.com/v1beta1/vhost.go @@ -9,16 +9,16 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by informer-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( "context" time "time" - rabbitmqcomv1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + rabbitmqcomv1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" versioned "github.com/rabbitmq/messaging-topology-operator/pkg/generated/clientset/versioned" internalinterfaces "github.com/rabbitmq/messaging-topology-operator/pkg/generated/informers/externalversions/internalinterfaces" - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/pkg/generated/listers/rabbitmq.com/v1beta1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1" runtime "k8s.io/apimachinery/pkg/runtime" watch "k8s.io/apimachinery/pkg/watch" @@ -29,7 +29,7 @@ import ( // Vhosts. type VhostInformer interface { Informer() cache.SharedIndexInformer - Lister() v1alpha2.VhostLister + Lister() v1beta1.VhostLister } type vhostInformer struct { @@ -55,16 +55,16 @@ func NewFilteredVhostInformer(client versioned.Interface, namespace string, resy if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Vhosts(namespace).List(context.TODO(), options) + return client.RabbitmqV1beta1().Vhosts(namespace).List(context.TODO(), options) }, WatchFunc: func(options v1.ListOptions) (watch.Interface, error) { if tweakListOptions != nil { tweakListOptions(&options) } - return client.RabbitmqV1alpha2().Vhosts(namespace).Watch(context.TODO(), options) + return client.RabbitmqV1beta1().Vhosts(namespace).Watch(context.TODO(), options) }, }, - &rabbitmqcomv1alpha2.Vhost{}, + &rabbitmqcomv1beta1.Vhost{}, resyncPeriod, indexers, ) @@ -75,9 +75,9 @@ func (f *vhostInformer) defaultInformer(client versioned.Interface, resyncPeriod } func (f *vhostInformer) Informer() cache.SharedIndexInformer { - return f.factory.InformerFor(&rabbitmqcomv1alpha2.Vhost{}, f.defaultInformer) + return f.factory.InformerFor(&rabbitmqcomv1beta1.Vhost{}, f.defaultInformer) } -func (f *vhostInformer) Lister() v1alpha2.VhostLister { - return v1alpha2.NewVhostLister(f.Informer().GetIndexer()) +func (f *vhostInformer) Lister() v1beta1.VhostLister { + return v1beta1.NewVhostLister(f.Informer().GetIndexer()) } diff --git a/pkg/generated/listers/rabbitmq.com/v1alpha2/binding.go b/pkg/generated/listers/rabbitmq.com/v1beta1/binding.go similarity index 81% rename from pkg/generated/listers/rabbitmq.com/v1alpha2/binding.go rename to pkg/generated/listers/rabbitmq.com/v1beta1/binding.go index 3c3bef73..2d98b11c 100644 --- a/pkg/generated/listers/rabbitmq.com/v1alpha2/binding.go +++ b/pkg/generated/listers/rabbitmq.com/v1beta1/binding.go @@ -9,10 +9,10 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by lister-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" @@ -23,7 +23,7 @@ import ( type BindingLister interface { // List lists all Bindings in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.Binding, err error) + List(selector labels.Selector) (ret []*v1beta1.Binding, err error) // Bindings returns an object that can list and get Bindings. Bindings(namespace string) BindingNamespaceLister BindingListerExpansion @@ -40,9 +40,9 @@ func NewBindingLister(indexer cache.Indexer) BindingLister { } // List lists all Bindings in the indexer. -func (s *bindingLister) List(selector labels.Selector) (ret []*v1alpha2.Binding, err error) { +func (s *bindingLister) List(selector labels.Selector) (ret []*v1beta1.Binding, err error) { err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.Binding)) + ret = append(ret, m.(*v1beta1.Binding)) }) return ret, err } @@ -57,10 +57,10 @@ func (s *bindingLister) Bindings(namespace string) BindingNamespaceLister { type BindingNamespaceLister interface { // List lists all Bindings in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.Binding, err error) + List(selector labels.Selector) (ret []*v1beta1.Binding, err error) // Get retrieves the Binding from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha2.Binding, error) + Get(name string) (*v1beta1.Binding, error) BindingNamespaceListerExpansion } @@ -72,21 +72,21 @@ type bindingNamespaceLister struct { } // List lists all Bindings in the indexer for a given namespace. -func (s bindingNamespaceLister) List(selector labels.Selector) (ret []*v1alpha2.Binding, err error) { +func (s bindingNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Binding, err error) { err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.Binding)) + ret = append(ret, m.(*v1beta1.Binding)) }) return ret, err } // Get retrieves the Binding from the indexer for a given namespace and name. -func (s bindingNamespaceLister) Get(name string) (*v1alpha2.Binding, error) { +func (s bindingNamespaceLister) Get(name string) (*v1beta1.Binding, error) { obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) if err != nil { return nil, err } if !exists { - return nil, errors.NewNotFound(v1alpha2.Resource("binding"), name) + return nil, errors.NewNotFound(v1beta1.Resource("binding"), name) } - return obj.(*v1alpha2.Binding), nil + return obj.(*v1beta1.Binding), nil } diff --git a/pkg/generated/listers/rabbitmq.com/v1alpha2/exchange.go b/pkg/generated/listers/rabbitmq.com/v1beta1/exchange.go similarity index 81% rename from pkg/generated/listers/rabbitmq.com/v1alpha2/exchange.go rename to pkg/generated/listers/rabbitmq.com/v1beta1/exchange.go index a362087a..0eb8c081 100644 --- a/pkg/generated/listers/rabbitmq.com/v1alpha2/exchange.go +++ b/pkg/generated/listers/rabbitmq.com/v1beta1/exchange.go @@ -9,10 +9,10 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by lister-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" @@ -23,7 +23,7 @@ import ( type ExchangeLister interface { // List lists all Exchanges in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.Exchange, err error) + List(selector labels.Selector) (ret []*v1beta1.Exchange, err error) // Exchanges returns an object that can list and get Exchanges. Exchanges(namespace string) ExchangeNamespaceLister ExchangeListerExpansion @@ -40,9 +40,9 @@ func NewExchangeLister(indexer cache.Indexer) ExchangeLister { } // List lists all Exchanges in the indexer. -func (s *exchangeLister) List(selector labels.Selector) (ret []*v1alpha2.Exchange, err error) { +func (s *exchangeLister) List(selector labels.Selector) (ret []*v1beta1.Exchange, err error) { err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.Exchange)) + ret = append(ret, m.(*v1beta1.Exchange)) }) return ret, err } @@ -57,10 +57,10 @@ func (s *exchangeLister) Exchanges(namespace string) ExchangeNamespaceLister { type ExchangeNamespaceLister interface { // List lists all Exchanges in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.Exchange, err error) + List(selector labels.Selector) (ret []*v1beta1.Exchange, err error) // Get retrieves the Exchange from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha2.Exchange, error) + Get(name string) (*v1beta1.Exchange, error) ExchangeNamespaceListerExpansion } @@ -72,21 +72,21 @@ type exchangeNamespaceLister struct { } // List lists all Exchanges in the indexer for a given namespace. -func (s exchangeNamespaceLister) List(selector labels.Selector) (ret []*v1alpha2.Exchange, err error) { +func (s exchangeNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Exchange, err error) { err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.Exchange)) + ret = append(ret, m.(*v1beta1.Exchange)) }) return ret, err } // Get retrieves the Exchange from the indexer for a given namespace and name. -func (s exchangeNamespaceLister) Get(name string) (*v1alpha2.Exchange, error) { +func (s exchangeNamespaceLister) Get(name string) (*v1beta1.Exchange, error) { obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) if err != nil { return nil, err } if !exists { - return nil, errors.NewNotFound(v1alpha2.Resource("exchange"), name) + return nil, errors.NewNotFound(v1beta1.Resource("exchange"), name) } - return obj.(*v1alpha2.Exchange), nil + return obj.(*v1beta1.Exchange), nil } diff --git a/pkg/generated/listers/rabbitmq.com/v1alpha2/expansion_generated.go b/pkg/generated/listers/rabbitmq.com/v1beta1/expansion_generated.go similarity index 76% rename from pkg/generated/listers/rabbitmq.com/v1alpha2/expansion_generated.go rename to pkg/generated/listers/rabbitmq.com/v1beta1/expansion_generated.go index 5d32f0fc..5a655242 100644 --- a/pkg/generated/listers/rabbitmq.com/v1alpha2/expansion_generated.go +++ b/pkg/generated/listers/rabbitmq.com/v1beta1/expansion_generated.go @@ -9,7 +9,7 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by lister-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 // BindingListerExpansion allows custom methods to be added to // BindingLister. @@ -27,6 +27,14 @@ type ExchangeListerExpansion interface{} // ExchangeNamespaceLister. type ExchangeNamespaceListerExpansion interface{} +// PermissionListerExpansion allows custom methods to be added to +// PermissionLister. +type PermissionListerExpansion interface{} + +// PermissionNamespaceListerExpansion allows custom methods to be added to +// PermissionNamespaceLister. +type PermissionNamespaceListerExpansion interface{} + // PolicyListerExpansion allows custom methods to be added to // PolicyLister. type PolicyListerExpansion interface{} @@ -43,6 +51,14 @@ type QueueListerExpansion interface{} // QueueNamespaceLister. type QueueNamespaceListerExpansion interface{} +// SchemaReplicationListerExpansion allows custom methods to be added to +// SchemaReplicationLister. +type SchemaReplicationListerExpansion interface{} + +// SchemaReplicationNamespaceListerExpansion allows custom methods to be added to +// SchemaReplicationNamespaceLister. +type SchemaReplicationNamespaceListerExpansion interface{} + // UserListerExpansion allows custom methods to be added to // UserLister. type UserListerExpansion interface{} diff --git a/pkg/generated/listers/rabbitmq.com/v1beta1/permission.go b/pkg/generated/listers/rabbitmq.com/v1beta1/permission.go new file mode 100644 index 00000000..282c3b05 --- /dev/null +++ b/pkg/generated/listers/rabbitmq.com/v1beta1/permission.go @@ -0,0 +1,92 @@ +/* +RabbitMQ Messaging Topology Kubernetes Operator +Copyright 2021 VMware, Inc. + +This product is licensed to you under the Mozilla Public License 2.0 license (the "License"). You may not use this product except in compliance with the Mozilla 2.0 License. + +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. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1beta1 + +import ( + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// PermissionLister helps list Permissions. +// All objects returned here must be treated as read-only. +type PermissionLister interface { + // List lists all Permissions in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1beta1.Permission, err error) + // Permissions returns an object that can list and get Permissions. + Permissions(namespace string) PermissionNamespaceLister + PermissionListerExpansion +} + +// permissionLister implements the PermissionLister interface. +type permissionLister struct { + indexer cache.Indexer +} + +// NewPermissionLister returns a new PermissionLister. +func NewPermissionLister(indexer cache.Indexer) PermissionLister { + return &permissionLister{indexer: indexer} +} + +// List lists all Permissions in the indexer. +func (s *permissionLister) List(selector labels.Selector) (ret []*v1beta1.Permission, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.Permission)) + }) + return ret, err +} + +// Permissions returns an object that can list and get Permissions. +func (s *permissionLister) Permissions(namespace string) PermissionNamespaceLister { + return permissionNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// PermissionNamespaceLister helps list and get Permissions. +// All objects returned here must be treated as read-only. +type PermissionNamespaceLister interface { + // List lists all Permissions in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1beta1.Permission, err error) + // Get retrieves the Permission from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*v1beta1.Permission, error) + PermissionNamespaceListerExpansion +} + +// permissionNamespaceLister implements the PermissionNamespaceLister +// interface. +type permissionNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all Permissions in the indexer for a given namespace. +func (s permissionNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Permission, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.Permission)) + }) + return ret, err +} + +// Get retrieves the Permission from the indexer for a given namespace and name. +func (s permissionNamespaceLister) Get(name string) (*v1beta1.Permission, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1beta1.Resource("permission"), name) + } + return obj.(*v1beta1.Permission), nil +} diff --git a/pkg/generated/listers/rabbitmq.com/v1alpha2/policy.go b/pkg/generated/listers/rabbitmq.com/v1beta1/policy.go similarity index 82% rename from pkg/generated/listers/rabbitmq.com/v1alpha2/policy.go rename to pkg/generated/listers/rabbitmq.com/v1beta1/policy.go index aa27b474..de06e415 100644 --- a/pkg/generated/listers/rabbitmq.com/v1alpha2/policy.go +++ b/pkg/generated/listers/rabbitmq.com/v1beta1/policy.go @@ -9,10 +9,10 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by lister-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" @@ -23,7 +23,7 @@ import ( type PolicyLister interface { // List lists all Policies in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.Policy, err error) + List(selector labels.Selector) (ret []*v1beta1.Policy, err error) // Policies returns an object that can list and get Policies. Policies(namespace string) PolicyNamespaceLister PolicyListerExpansion @@ -40,9 +40,9 @@ func NewPolicyLister(indexer cache.Indexer) PolicyLister { } // List lists all Policies in the indexer. -func (s *policyLister) List(selector labels.Selector) (ret []*v1alpha2.Policy, err error) { +func (s *policyLister) List(selector labels.Selector) (ret []*v1beta1.Policy, err error) { err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.Policy)) + ret = append(ret, m.(*v1beta1.Policy)) }) return ret, err } @@ -57,10 +57,10 @@ func (s *policyLister) Policies(namespace string) PolicyNamespaceLister { type PolicyNamespaceLister interface { // List lists all Policies in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.Policy, err error) + List(selector labels.Selector) (ret []*v1beta1.Policy, err error) // Get retrieves the Policy from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha2.Policy, error) + Get(name string) (*v1beta1.Policy, error) PolicyNamespaceListerExpansion } @@ -72,21 +72,21 @@ type policyNamespaceLister struct { } // List lists all Policies in the indexer for a given namespace. -func (s policyNamespaceLister) List(selector labels.Selector) (ret []*v1alpha2.Policy, err error) { +func (s policyNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Policy, err error) { err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.Policy)) + ret = append(ret, m.(*v1beta1.Policy)) }) return ret, err } // Get retrieves the Policy from the indexer for a given namespace and name. -func (s policyNamespaceLister) Get(name string) (*v1alpha2.Policy, error) { +func (s policyNamespaceLister) Get(name string) (*v1beta1.Policy, error) { obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) if err != nil { return nil, err } if !exists { - return nil, errors.NewNotFound(v1alpha2.Resource("policy"), name) + return nil, errors.NewNotFound(v1beta1.Resource("policy"), name) } - return obj.(*v1alpha2.Policy), nil + return obj.(*v1beta1.Policy), nil } diff --git a/pkg/generated/listers/rabbitmq.com/v1alpha2/queue.go b/pkg/generated/listers/rabbitmq.com/v1beta1/queue.go similarity index 80% rename from pkg/generated/listers/rabbitmq.com/v1alpha2/queue.go rename to pkg/generated/listers/rabbitmq.com/v1beta1/queue.go index f8dff09f..374ba9ee 100644 --- a/pkg/generated/listers/rabbitmq.com/v1alpha2/queue.go +++ b/pkg/generated/listers/rabbitmq.com/v1beta1/queue.go @@ -9,10 +9,10 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by lister-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" @@ -23,7 +23,7 @@ import ( type QueueLister interface { // List lists all Queues in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.Queue, err error) + List(selector labels.Selector) (ret []*v1beta1.Queue, err error) // Queues returns an object that can list and get Queues. Queues(namespace string) QueueNamespaceLister QueueListerExpansion @@ -40,9 +40,9 @@ func NewQueueLister(indexer cache.Indexer) QueueLister { } // List lists all Queues in the indexer. -func (s *queueLister) List(selector labels.Selector) (ret []*v1alpha2.Queue, err error) { +func (s *queueLister) List(selector labels.Selector) (ret []*v1beta1.Queue, err error) { err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.Queue)) + ret = append(ret, m.(*v1beta1.Queue)) }) return ret, err } @@ -57,10 +57,10 @@ func (s *queueLister) Queues(namespace string) QueueNamespaceLister { type QueueNamespaceLister interface { // List lists all Queues in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.Queue, err error) + List(selector labels.Selector) (ret []*v1beta1.Queue, err error) // Get retrieves the Queue from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha2.Queue, error) + Get(name string) (*v1beta1.Queue, error) QueueNamespaceListerExpansion } @@ -72,21 +72,21 @@ type queueNamespaceLister struct { } // List lists all Queues in the indexer for a given namespace. -func (s queueNamespaceLister) List(selector labels.Selector) (ret []*v1alpha2.Queue, err error) { +func (s queueNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Queue, err error) { err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.Queue)) + ret = append(ret, m.(*v1beta1.Queue)) }) return ret, err } // Get retrieves the Queue from the indexer for a given namespace and name. -func (s queueNamespaceLister) Get(name string) (*v1alpha2.Queue, error) { +func (s queueNamespaceLister) Get(name string) (*v1beta1.Queue, error) { obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) if err != nil { return nil, err } if !exists { - return nil, errors.NewNotFound(v1alpha2.Resource("queue"), name) + return nil, errors.NewNotFound(v1beta1.Resource("queue"), name) } - return obj.(*v1alpha2.Queue), nil + return obj.(*v1beta1.Queue), nil } diff --git a/pkg/generated/listers/rabbitmq.com/v1beta1/schemareplication.go b/pkg/generated/listers/rabbitmq.com/v1beta1/schemareplication.go new file mode 100644 index 00000000..44d83a10 --- /dev/null +++ b/pkg/generated/listers/rabbitmq.com/v1beta1/schemareplication.go @@ -0,0 +1,92 @@ +/* +RabbitMQ Messaging Topology Kubernetes Operator +Copyright 2021 VMware, Inc. + +This product is licensed to you under the Mozilla Public License 2.0 license (the "License"). You may not use this product except in compliance with the Mozilla 2.0 License. + +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. +*/ + +// Code generated by lister-gen. DO NOT EDIT. + +package v1beta1 + +import ( + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" + "k8s.io/apimachinery/pkg/api/errors" + "k8s.io/apimachinery/pkg/labels" + "k8s.io/client-go/tools/cache" +) + +// SchemaReplicationLister helps list SchemaReplications. +// All objects returned here must be treated as read-only. +type SchemaReplicationLister interface { + // List lists all SchemaReplications in the indexer. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1beta1.SchemaReplication, err error) + // SchemaReplications returns an object that can list and get SchemaReplications. + SchemaReplications(namespace string) SchemaReplicationNamespaceLister + SchemaReplicationListerExpansion +} + +// schemaReplicationLister implements the SchemaReplicationLister interface. +type schemaReplicationLister struct { + indexer cache.Indexer +} + +// NewSchemaReplicationLister returns a new SchemaReplicationLister. +func NewSchemaReplicationLister(indexer cache.Indexer) SchemaReplicationLister { + return &schemaReplicationLister{indexer: indexer} +} + +// List lists all SchemaReplications in the indexer. +func (s *schemaReplicationLister) List(selector labels.Selector) (ret []*v1beta1.SchemaReplication, err error) { + err = cache.ListAll(s.indexer, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.SchemaReplication)) + }) + return ret, err +} + +// SchemaReplications returns an object that can list and get SchemaReplications. +func (s *schemaReplicationLister) SchemaReplications(namespace string) SchemaReplicationNamespaceLister { + return schemaReplicationNamespaceLister{indexer: s.indexer, namespace: namespace} +} + +// SchemaReplicationNamespaceLister helps list and get SchemaReplications. +// All objects returned here must be treated as read-only. +type SchemaReplicationNamespaceLister interface { + // List lists all SchemaReplications in the indexer for a given namespace. + // Objects returned here must be treated as read-only. + List(selector labels.Selector) (ret []*v1beta1.SchemaReplication, err error) + // Get retrieves the SchemaReplication from the indexer for a given namespace and name. + // Objects returned here must be treated as read-only. + Get(name string) (*v1beta1.SchemaReplication, error) + SchemaReplicationNamespaceListerExpansion +} + +// schemaReplicationNamespaceLister implements the SchemaReplicationNamespaceLister +// interface. +type schemaReplicationNamespaceLister struct { + indexer cache.Indexer + namespace string +} + +// List lists all SchemaReplications in the indexer for a given namespace. +func (s schemaReplicationNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.SchemaReplication, err error) { + err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { + ret = append(ret, m.(*v1beta1.SchemaReplication)) + }) + return ret, err +} + +// Get retrieves the SchemaReplication from the indexer for a given namespace and name. +func (s schemaReplicationNamespaceLister) Get(name string) (*v1beta1.SchemaReplication, error) { + obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) + if err != nil { + return nil, err + } + if !exists { + return nil, errors.NewNotFound(v1beta1.Resource("schemareplication"), name) + } + return obj.(*v1beta1.SchemaReplication), nil +} diff --git a/pkg/generated/listers/rabbitmq.com/v1alpha2/user.go b/pkg/generated/listers/rabbitmq.com/v1beta1/user.go similarity index 80% rename from pkg/generated/listers/rabbitmq.com/v1alpha2/user.go rename to pkg/generated/listers/rabbitmq.com/v1beta1/user.go index dfefe7df..c222200f 100644 --- a/pkg/generated/listers/rabbitmq.com/v1alpha2/user.go +++ b/pkg/generated/listers/rabbitmq.com/v1beta1/user.go @@ -9,10 +9,10 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by lister-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" @@ -23,7 +23,7 @@ import ( type UserLister interface { // List lists all Users in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.User, err error) + List(selector labels.Selector) (ret []*v1beta1.User, err error) // Users returns an object that can list and get Users. Users(namespace string) UserNamespaceLister UserListerExpansion @@ -40,9 +40,9 @@ func NewUserLister(indexer cache.Indexer) UserLister { } // List lists all Users in the indexer. -func (s *userLister) List(selector labels.Selector) (ret []*v1alpha2.User, err error) { +func (s *userLister) List(selector labels.Selector) (ret []*v1beta1.User, err error) { err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.User)) + ret = append(ret, m.(*v1beta1.User)) }) return ret, err } @@ -57,10 +57,10 @@ func (s *userLister) Users(namespace string) UserNamespaceLister { type UserNamespaceLister interface { // List lists all Users in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.User, err error) + List(selector labels.Selector) (ret []*v1beta1.User, err error) // Get retrieves the User from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha2.User, error) + Get(name string) (*v1beta1.User, error) UserNamespaceListerExpansion } @@ -72,21 +72,21 @@ type userNamespaceLister struct { } // List lists all Users in the indexer for a given namespace. -func (s userNamespaceLister) List(selector labels.Selector) (ret []*v1alpha2.User, err error) { +func (s userNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.User, err error) { err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.User)) + ret = append(ret, m.(*v1beta1.User)) }) return ret, err } // Get retrieves the User from the indexer for a given namespace and name. -func (s userNamespaceLister) Get(name string) (*v1alpha2.User, error) { +func (s userNamespaceLister) Get(name string) (*v1beta1.User, error) { obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) if err != nil { return nil, err } if !exists { - return nil, errors.NewNotFound(v1alpha2.Resource("user"), name) + return nil, errors.NewNotFound(v1beta1.Resource("user"), name) } - return obj.(*v1alpha2.User), nil + return obj.(*v1beta1.User), nil } diff --git a/pkg/generated/listers/rabbitmq.com/v1alpha2/vhost.go b/pkg/generated/listers/rabbitmq.com/v1beta1/vhost.go similarity index 80% rename from pkg/generated/listers/rabbitmq.com/v1alpha2/vhost.go rename to pkg/generated/listers/rabbitmq.com/v1beta1/vhost.go index 33a9a27e..458de634 100644 --- a/pkg/generated/listers/rabbitmq.com/v1alpha2/vhost.go +++ b/pkg/generated/listers/rabbitmq.com/v1beta1/vhost.go @@ -9,10 +9,10 @@ This product may include a number of subcomponents with separate copyright notic // Code generated by lister-gen. DO NOT EDIT. -package v1alpha2 +package v1beta1 import ( - v1alpha2 "github.com/rabbitmq/messaging-topology-operator/api/v1alpha2" + v1beta1 "github.com/rabbitmq/messaging-topology-operator/api/v1beta1" "k8s.io/apimachinery/pkg/api/errors" "k8s.io/apimachinery/pkg/labels" "k8s.io/client-go/tools/cache" @@ -23,7 +23,7 @@ import ( type VhostLister interface { // List lists all Vhosts in the indexer. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.Vhost, err error) + List(selector labels.Selector) (ret []*v1beta1.Vhost, err error) // Vhosts returns an object that can list and get Vhosts. Vhosts(namespace string) VhostNamespaceLister VhostListerExpansion @@ -40,9 +40,9 @@ func NewVhostLister(indexer cache.Indexer) VhostLister { } // List lists all Vhosts in the indexer. -func (s *vhostLister) List(selector labels.Selector) (ret []*v1alpha2.Vhost, err error) { +func (s *vhostLister) List(selector labels.Selector) (ret []*v1beta1.Vhost, err error) { err = cache.ListAll(s.indexer, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.Vhost)) + ret = append(ret, m.(*v1beta1.Vhost)) }) return ret, err } @@ -57,10 +57,10 @@ func (s *vhostLister) Vhosts(namespace string) VhostNamespaceLister { type VhostNamespaceLister interface { // List lists all Vhosts in the indexer for a given namespace. // Objects returned here must be treated as read-only. - List(selector labels.Selector) (ret []*v1alpha2.Vhost, err error) + List(selector labels.Selector) (ret []*v1beta1.Vhost, err error) // Get retrieves the Vhost from the indexer for a given namespace and name. // Objects returned here must be treated as read-only. - Get(name string) (*v1alpha2.Vhost, error) + Get(name string) (*v1beta1.Vhost, error) VhostNamespaceListerExpansion } @@ -72,21 +72,21 @@ type vhostNamespaceLister struct { } // List lists all Vhosts in the indexer for a given namespace. -func (s vhostNamespaceLister) List(selector labels.Selector) (ret []*v1alpha2.Vhost, err error) { +func (s vhostNamespaceLister) List(selector labels.Selector) (ret []*v1beta1.Vhost, err error) { err = cache.ListAllByNamespace(s.indexer, s.namespace, selector, func(m interface{}) { - ret = append(ret, m.(*v1alpha2.Vhost)) + ret = append(ret, m.(*v1beta1.Vhost)) }) return ret, err } // Get retrieves the Vhost from the indexer for a given namespace and name. -func (s vhostNamespaceLister) Get(name string) (*v1alpha2.Vhost, error) { +func (s vhostNamespaceLister) Get(name string) (*v1beta1.Vhost, error) { obj, exists, err := s.indexer.GetByKey(s.namespace + "/" + name) if err != nil { return nil, err } if !exists { - return nil, errors.NewNotFound(v1alpha2.Resource("vhost"), name) + return nil, errors.NewNotFound(v1beta1.Resource("vhost"), name) } - return obj.(*v1alpha2.Vhost), nil + return obj.(*v1beta1.Vhost), nil } From 1df8e1c3dd1849591b55157aab4bb6bebd41a853 Mon Sep 17 00:00:00 2001 From: Chunyi Lyu Date: Wed, 28 Apr 2021 14:47:28 +0100 Subject: [PATCH 3/3] Fix code generator go markers --- api/v1beta1/binding_types.go | 2 +- api/v1beta1/exchange_types.go | 1 - api/v1beta1/permission_types.go | 1 + api/v1beta1/policy_types.go | 1 - api/v1beta1/queue_types.go | 1 - api/v1beta1/schemareplication_types.go | 1 + api/v1beta1/user_types.go | 1 - api/v1beta1/vhost_types.go | 1 - 8 files changed, 3 insertions(+), 6 deletions(-) diff --git a/api/v1beta1/binding_types.go b/api/v1beta1/binding_types.go index 15d83edd..0eb09ab7 100644 --- a/api/v1beta1/binding_types.go +++ b/api/v1beta1/binding_types.go @@ -47,10 +47,10 @@ type BindingStatus struct { } // +genclient - // +kubebuilder:object:root=true // +kubebuilder:resource:categories=all // +kubebuilder:subresource:status + // Binding is the Schema for the bindings API type Binding struct { metav1.TypeMeta `json:",inline"` diff --git a/api/v1beta1/exchange_types.go b/api/v1beta1/exchange_types.go index 6565201c..56642df3 100644 --- a/api/v1beta1/exchange_types.go +++ b/api/v1beta1/exchange_types.go @@ -45,7 +45,6 @@ type ExchangeStatus struct { } // +genclient - // +kubebuilder:object:root=true // +kubebuilder:resource:categories=all // +kubebuilder:subresource:status diff --git a/api/v1beta1/permission_types.go b/api/v1beta1/permission_types.go index 0c179a7d..29c9cc73 100644 --- a/api/v1beta1/permission_types.go +++ b/api/v1beta1/permission_types.go @@ -42,6 +42,7 @@ type PermissionStatus struct { Conditions []Condition `json:"conditions,omitempty"` } +// +genclient // +kubebuilder:object:root=true // +kubebuilder:resource:categories=all // +kubebuilder:subresource:status diff --git a/api/v1beta1/policy_types.go b/api/v1beta1/policy_types.go index c760d2d2..2adba5b4 100644 --- a/api/v1beta1/policy_types.go +++ b/api/v1beta1/policy_types.go @@ -47,7 +47,6 @@ type PolicyStatus struct { } // +genclient - // +kubebuilder:object:root=true // +kubebuilder:resource:categories=all // +kubebuilder:subresource:status diff --git a/api/v1beta1/queue_types.go b/api/v1beta1/queue_types.go index 473f71b7..f6b81d63 100644 --- a/api/v1beta1/queue_types.go +++ b/api/v1beta1/queue_types.go @@ -56,7 +56,6 @@ type QueueStatus struct { } // +genclient - // +kubebuilder:object:root=true // +kubebuilder:resource:categories=all // +kubebuilder:subresource:status diff --git a/api/v1beta1/schemareplication_types.go b/api/v1beta1/schemareplication_types.go index e6a80dc2..7c02651e 100644 --- a/api/v1beta1/schemareplication_types.go +++ b/api/v1beta1/schemareplication_types.go @@ -35,6 +35,7 @@ type SchemaReplicationStatus struct { Conditions []Condition `json:"conditions,omitempty"` } +// +genclient // +kubebuilder:object:root=true // +kubebuilder:subresource:status diff --git a/api/v1beta1/user_types.go b/api/v1beta1/user_types.go index 174d6177..12481cc4 100644 --- a/api/v1beta1/user_types.go +++ b/api/v1beta1/user_types.go @@ -52,7 +52,6 @@ type UserStatus struct { type UserTag string // +genclient - // +kubebuilder:object:root=true // +kubebuilder:resource:categories=all // +kubebuilder:subresource:status diff --git a/api/v1beta1/vhost_types.go b/api/v1beta1/vhost_types.go index d114f60b..5e564179 100644 --- a/api/v1beta1/vhost_types.go +++ b/api/v1beta1/vhost_types.go @@ -35,7 +35,6 @@ type VhostStatus struct { } // +genclient - // +kubebuilder:object:root=true // +kubebuilder:resource:categories=all // +kubebuilder:subresource:status