Skip to content

Commit f83c792

Browse files
authored
Merge pull request #109 from rabbitmq/all-marker
Use kubebuilder marker to add all resources to all
2 parents 69bd967 + 42ff668 commit f83c792

14 files changed

+27
-15
lines changed

api/v1alpha2/binding_types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ type BindingStatus struct {
4747
}
4848

4949
// +genclient
50+
5051
// +kubebuilder:object:root=true
52+
// +kubebuilder:resource:categories=all
5153
// +kubebuilder:subresource:status
52-
5354
// Binding is the Schema for the bindings API
5455
type Binding struct {
5556
metav1.TypeMeta `json:",inline"`

api/v1alpha2/exchange_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ type ExchangeStatus struct {
4545
}
4646

4747
// +genclient
48+
4849
// +kubebuilder:object:root=true
50+
// +kubebuilder:resource:categories=all
4951
// +kubebuilder:subresource:status
5052

5153
// Exchange is the Schema for the exchanges API

api/v1alpha2/permission_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type PermissionStatus struct {
4343
}
4444

4545
// +kubebuilder:object:root=true
46+
// +kubebuilder:resource:categories=all
4647
// +kubebuilder:subresource:status
4748

4849
// Permission is the Schema for the permissions API

api/v1alpha2/policy_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ type PolicyStatus struct {
4747
}
4848

4949
// +genclient
50+
5051
// +kubebuilder:object:root=true
52+
// +kubebuilder:resource:categories=all
5153
// +kubebuilder:subresource:status
5254

5355
// Policy is the Schema for the policies API

api/v1alpha2/queue_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ type QueueStatus struct {
5656
}
5757

5858
// +genclient
59+
5960
// +kubebuilder:object:root=true
61+
// +kubebuilder:resource:categories=all
6062
// +kubebuilder:subresource:status
6163

6264
// Queue is the Schema for the queues API

api/v1alpha2/user_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ type UserStatus struct {
5252
type UserTag string
5353

5454
// +genclient
55+
5556
// +kubebuilder:object:root=true
57+
// +kubebuilder:resource:categories=all
5658
// +kubebuilder:subresource:status
5759

5860
// User is the Schema for the users API.

api/v1alpha2/vhost_types.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ type VhostStatus struct {
3535
}
3636

3737
// +genclient
38+
3839
// +kubebuilder:object:root=true
40+
// +kubebuilder:resource:categories=all
3941
// +kubebuilder:subresource:status
4042

4143
// Vhost is the Schema for the vhosts API

config/crd/bases/rabbitmq.com_bindings.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ metadata:
1010
spec:
1111
group: rabbitmq.com
1212
names:
13+
categories:
14+
- all
1315
kind: Binding
1416
listKind: BindingList
1517
plural: bindings
1618
singular: binding
17-
categories:
18-
- all
1919
scope: Namespaced
2020
versions:
2121
- name: v1alpha2

config/crd/bases/rabbitmq.com_exchanges.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ metadata:
1010
spec:
1111
group: rabbitmq.com
1212
names:
13+
categories:
14+
- all
1315
kind: Exchange
1416
listKind: ExchangeList
1517
plural: exchanges
1618
singular: exchange
17-
categories:
18-
- all
1919
scope: Namespaced
2020
versions:
2121
- name: v1alpha2

config/crd/bases/rabbitmq.com_permissions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ metadata:
1010
spec:
1111
group: rabbitmq.com
1212
names:
13+
categories:
14+
- all
1315
kind: Permission
1416
listKind: PermissionList
1517
plural: permissions
1618
singular: permission
17-
categories:
18-
- all
1919
scope: Namespaced
2020
versions:
2121
- name: v1alpha2

0 commit comments

Comments
 (0)