Skip to content

Commit

Permalink
Bump cluster and topology versions from v1beta1 to v1beta2 (less docu…
Browse files Browse the repository at this point in the history
…mentation)
  • Loading branch information
Nick Barber committed Jul 29, 2021
1 parent 75e8ec5 commit cd70537
Show file tree
Hide file tree
Showing 127 changed files with 242 additions and 242 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ manifests: install-tools
# Generate API reference documentation
api-reference:
crd-ref-docs \
--source-path ./api/v1beta1 \
--source-path ./api/v1beta2 \
--config ./docs/api/autogen/config.yaml \
--templates-dir ./docs/api/autogen/templates \
--output-path ./docs/api/rabbitmq.com.ref.asciidoc \
Expand Down
40 changes: 20 additions & 20 deletions PROJECT
Original file line number Diff line number Diff line change
Expand Up @@ -11,87 +11,87 @@ resources:
domain: rabbitmq.com
group: rabbitmq.com
kind: Queue
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta1
version: v1beta1
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta2
version: v1beta2
- api:
crdVersion: v1
namespaced: true
controller: true
domain: rabbitmq.com
group: rabbitmq.com
kind: Exchange
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta1
version: v1beta1
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta2
version: v1beta2
- api:
crdVersion: v1
namespaced: true
controller: true
domain: rabbitmq.com
group: rabbitmq.com
kind: Binding
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta1
version: v1beta1
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta2
version: v1beta2
- api:
crdVersion: v1
namespaced: true
controller: true
domain: rabbitmq.com
group: rabbitmq.com
kind: User
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta1
version: v1beta1
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta2
version: v1beta2
- api:
crdVersion: v1
namespaced: true
controller: true
domain: rabbitmq.com
group: rabbitmq.com
kind: Vhost
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta1
version: v1beta1
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta2
version: v1beta2
- api:
crdVersion: v1
namespaced: true
controller: true
domain: rabbitmq.com
group: rabbitmq.com
kind: Policy
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta1
version: v1beta1
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta2
version: v1beta2
- api:
crdVersion: v1
namespaced: true
controller: true
domain: rabbitmq.com
group: rabbitmq.com
kind: Permission
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta1
version: v1beta1
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta2
version: v1beta2
- api:
crdVersion: v1
namespaced: true
controller: true
domain: rabbitmq.com
group: rabbitmq.com
kind: SchemaReplication
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta1
version: v1beta1
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta2
version: v1beta2
- api:
crdVersion: v1
namespaced: true
controller: true
domain: rabbitmq.com
group: rabbitmq.com
kind: Federation
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta1
version: v1beta1
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta2
version: v1beta2
- api:
crdVersion: v1
namespaced: true
controller: true
domain: rabbitmq.com
group: rabbitmq.com
kind: Shovel
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta1
version: v1beta1
path: github.com/rabbitmq/messaging-topology-operator/api/v1beta2
version: v1beta2
version: "3"
Original file line number Diff line number Diff line change
Expand Up @@ -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 v1beta1
package v1beta2

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"fmt"
Expand All @@ -16,7 +16,7 @@ func (b *Binding) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +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
// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta2-binding,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=bindings,versions=v1beta2,name=vbinding.kb.io,sideEffects=none,admissionReviewVersions=v1

var _ webhook.Validator = &Binding{}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
. "github.com/onsi/ginkgo"
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/conditions.go → api/v1beta2/conditions.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
corev1 "k8s.io/api/core/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
. "github.com/onsi/ginkgo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 v1beta1
package v1beta2

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"fmt"
Expand All @@ -15,7 +15,7 @@ func (r *Exchange) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +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
// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta2-exchange,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=exchanges,versions=v1beta2,name=vexchange.kb.io,sideEffects=none,admissionReviewVersions=v1

var _ webhook.Validator = &Exchange{}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
. "github.com/onsi/ginkgo"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
corev1 "k8s.io/api/core/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"fmt"
Expand All @@ -14,7 +14,7 @@ func (f *Federation) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta1-federation,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=federations,versions=v1beta1,name=vfederation.kb.io,sideEffects=none,admissionReviewVersions=v1
// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta2-federation,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=federations,versions=v1beta2,name=vfederation.kb.io,sideEffects=none,admissionReviewVersions=v1

// no validation for create
func (f *Federation) ValidateCreate() error {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
. "github.com/onsi/ginkgo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 v1beta1 contains API Schema definitions for the rabbitmq.com v1beta1 API group
// Package v1beta2 contains API Schema definitions for the rabbitmq.com v1beta2 API group
// +kubebuilder:object:generate=true
// +groupName=rabbitmq.com
package v1beta1
package v1beta2

import (
"k8s.io/apimachinery/pkg/runtime/schema"
Expand All @@ -19,7 +19,7 @@ import (

var (
// GroupVersion is group version used to register these objects
GroupVersion = schema.GroupVersion{Group: "rabbitmq.com", Version: "v1beta1"}
GroupVersion = schema.GroupVersion{Group: "rabbitmq.com", Version: "v1beta2"}

// SchemeGroupVersion is group version used to register these objects
// added for generated clientset
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
corev1 "k8s.io/api/core/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"fmt"
Expand All @@ -16,7 +16,7 @@ func (p *Permission) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +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
// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta2-permission,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=permissions,versions=v1beta2,name=vpermission.kb.io,sideEffects=none,admissionReviewVersions=v1

var _ webhook.Validator = &Permission{}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
. "github.com/onsi/ginkgo"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"fmt"
Expand All @@ -15,7 +15,7 @@ func (p *Policy) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +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
// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta2-policy,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=policies,versions=v1beta2,name=vpolicy.kb.io,sideEffects=none,admissionReviewVersions=v1

var _ webhook.Validator = &Policy{}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
. "github.com/onsi/ginkgo"
Expand Down
2 changes: 1 addition & 1 deletion api/v1beta1/queue_types.go → api/v1beta2/queue_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 v1beta1
package v1beta2

import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"context"
Expand Down
4 changes: 2 additions & 2 deletions api/v1beta1/queue_webhook.go → api/v1beta2/queue_webhook.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"fmt"
Expand All @@ -15,7 +15,7 @@ func (r *Queue) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +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
// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta2-queue,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=queues,versions=v1beta2,name=vqueue.kb.io,sideEffects=none,admissionReviewVersions=v1sideEffects=none,admissionReviewVersions=v1

var _ webhook.Validator = &Queue{}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
. "github.com/onsi/ginkgo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 v1beta1
package v1beta2

import (
corev1 "k8s.io/api/core/v1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"context"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
"fmt"
Expand All @@ -15,7 +15,7 @@ func (s *SchemaReplication) SetupWebhookWithManager(mgr ctrl.Manager) error {
Complete()
}

// +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
// +kubebuilder:webhook:verbs=create;update,path=/validate-rabbitmq-com-v1beta2-schemareplication,mutating=false,failurePolicy=fail,groups=rabbitmq.com,resources=schemareplications,versions=v1beta2,name=vschemareplication.kb.io,sideEffects=none,admissionReviewVersions=v1

var _ webhook.Validator = &SchemaReplication{}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
. "github.com/onsi/ginkgo"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package v1beta1
package v1beta2

import (
corev1 "k8s.io/api/core/v1"
Expand Down
Loading

0 comments on commit cd70537

Please sign in to comment.