Skip to content

Commit d31861e

Browse files
authored
Add warning about queue arguments in crd api description (#175)
* Add warning about queue arguments in crd api description - recommend people to use policies instead
1 parent d6e20bc commit d31861e

12 files changed

+26
-23
lines changed

api/v1beta1/queue_types.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,19 @@ import (
2121

2222
// QueueSpec defines the desired state of Queue
2323
type QueueSpec struct {
24-
// Name of the queue; required property
24+
// Name of the queue; required property.
2525
// +kubebuilder:validation:Required
2626
Name string `json:"name"`
2727
// Default to vhost '/'
2828
// +kubebuilder:default:=/
2929
Vhost string `json:"vhost,omitempty"`
3030
Type string `json:"type,omitempty"`
31-
// When set to false queues does not survive server restart
31+
// When set to false queues does not survive server restart.
3232
Durable bool `json:"durable,omitempty"`
33-
// when set to true, queues that has at least one consumer before, are deleted after last consumer unsubscribes
33+
// when set to true, queues that have had at least one consumer before are deleted after the last consumer unsubscribes.
3434
AutoDelete bool `json:"autoDelete,omitempty"`
35-
// Queue arguments in the format of KEY: VALUE. e.g. x-delivery-limit: 10000
35+
// Queue arguments in the format of KEY: VALUE. e.g. x-delivery-limit: 10000.
36+
// Configuring queues through arguments is not recommended because they cannot be updated once set; we recommend configuring queues through policies instead.
3637
// +kubebuilder:validation:Type=object
3738
// +kubebuilder:pruning:PreserveUnknownFields
3839
Arguments *runtime.RawExtension `json:"arguments,omitempty"`

config/crd/bases/rabbitmq.com_bindings.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.6.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: bindings.rabbitmq.com
1010
spec:

config/crd/bases/rabbitmq.com_exchanges.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.6.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: exchanges.rabbitmq.com
1010
spec:

config/crd/bases/rabbitmq.com_federations.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.6.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: federations.rabbitmq.com
1010
spec:

config/crd/bases/rabbitmq.com_permissions.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.6.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: permissions.rabbitmq.com
1010
spec:

config/crd/bases/rabbitmq.com_policies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.6.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: policies.rabbitmq.com
1010
spec:

config/crd/bases/rabbitmq.com_queues.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.6.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: queues.rabbitmq.com
1010
spec:
@@ -40,18 +40,20 @@ spec:
4040
properties:
4141
arguments:
4242
description: 'Queue arguments in the format of KEY: VALUE. e.g. x-delivery-limit:
43-
10000'
43+
10000. Configuring queues through arguments is not recommended because
44+
they cannot be updated once set; we recommend configuring queues
45+
through policies instead.'
4446
type: object
4547
x-kubernetes-preserve-unknown-fields: true
4648
autoDelete:
47-
description: when set to true, queues that has at least one consumer
48-
before, are deleted after last consumer unsubscribes
49+
description: when set to true, queues that have had at least one consumer
50+
before are deleted after the last consumer unsubscribes.
4951
type: boolean
5052
durable:
51-
description: When set to false queues does not survive server restart
53+
description: When set to false queues does not survive server restart.
5254
type: boolean
5355
name:
54-
description: Name of the queue; required property
56+
description: Name of the queue; required property.
5557
type: string
5658
rabbitmqClusterReference:
5759
description: Reference to the RabbitmqCluster that the queue will

config/crd/bases/rabbitmq.com_schemareplications.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.6.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: schemareplications.rabbitmq.com
1010
spec:

config/crd/bases/rabbitmq.com_shovels.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.6.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: shovels.rabbitmq.com
1010
spec:

config/crd/bases/rabbitmq.com_users.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ apiVersion: apiextensions.k8s.io/v1
44
kind: CustomResourceDefinition
55
metadata:
66
annotations:
7-
controller-gen.kubebuilder.io/version: v0.6.0
7+
controller-gen.kubebuilder.io/version: v0.6.1
88
creationTimestamp: null
99
name: users.rabbitmq.com
1010
spec:

0 commit comments

Comments
 (0)