Skip to content

Commit

Permalink
Merge pull request #109 from rabbitmq/all-marker
Browse files Browse the repository at this point in the history
Use kubebuilder marker to add all resources to all
  • Loading branch information
ChunyiLyu authored Apr 13, 2021
2 parents 69bd967 + 42ff668 commit f83c792
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 15 deletions.
3 changes: 2 additions & 1 deletion api/v1alpha2/binding_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +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"`
Expand Down
2 changes: 2 additions & 0 deletions api/v1alpha2/exchange_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ type ExchangeStatus struct {
}

// +genclient

// +kubebuilder:object:root=true
// +kubebuilder:resource:categories=all
// +kubebuilder:subresource:status

// Exchange is the Schema for the exchanges API
Expand Down
1 change: 1 addition & 0 deletions api/v1alpha2/permission_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type PermissionStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:categories=all
// +kubebuilder:subresource:status

// Permission is the Schema for the permissions API
Expand Down
2 changes: 2 additions & 0 deletions api/v1alpha2/policy_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ type PolicyStatus struct {
}

// +genclient

// +kubebuilder:object:root=true
// +kubebuilder:resource:categories=all
// +kubebuilder:subresource:status

// Policy is the Schema for the policies API
Expand Down
2 changes: 2 additions & 0 deletions api/v1alpha2/queue_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ type QueueStatus struct {
}

// +genclient

// +kubebuilder:object:root=true
// +kubebuilder:resource:categories=all
// +kubebuilder:subresource:status

// Queue is the Schema for the queues API
Expand Down
2 changes: 2 additions & 0 deletions api/v1alpha2/user_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ type UserStatus struct {
type UserTag string

// +genclient

// +kubebuilder:object:root=true
// +kubebuilder:resource:categories=all
// +kubebuilder:subresource:status

// User is the Schema for the users API.
Expand Down
2 changes: 2 additions & 0 deletions api/v1alpha2/vhost_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ type VhostStatus struct {
}

// +genclient

// +kubebuilder:object:root=true
// +kubebuilder:resource:categories=all
// +kubebuilder:subresource:status

// Vhost is the Schema for the vhosts API
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/rabbitmq.com_bindings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ metadata:
spec:
group: rabbitmq.com
names:
categories:
- all
kind: Binding
listKind: BindingList
plural: bindings
singular: binding
categories:
- all
scope: Namespaced
versions:
- name: v1alpha2
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/rabbitmq.com_exchanges.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ metadata:
spec:
group: rabbitmq.com
names:
categories:
- all
kind: Exchange
listKind: ExchangeList
plural: exchanges
singular: exchange
categories:
- all
scope: Namespaced
versions:
- name: v1alpha2
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/rabbitmq.com_permissions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ metadata:
spec:
group: rabbitmq.com
names:
categories:
- all
kind: Permission
listKind: PermissionList
plural: permissions
singular: permission
categories:
- all
scope: Namespaced
versions:
- name: v1alpha2
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/rabbitmq.com_policies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ metadata:
spec:
group: rabbitmq.com
names:
categories:
- all
kind: Policy
listKind: PolicyList
plural: policies
singular: policy
categories:
- all
scope: Namespaced
versions:
- name: v1alpha2
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/rabbitmq.com_queues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ metadata:
spec:
group: rabbitmq.com
names:
categories:
- all
kind: Queue
listKind: QueueList
plural: queues
singular: queue
categories:
- all
scope: Namespaced
versions:
- name: v1alpha2
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/rabbitmq.com_users.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ metadata:
spec:
group: rabbitmq.com
names:
categories:
- all
kind: User
listKind: UserList
plural: users
singular: user
categories:
- all
scope: Namespaced
versions:
- name: v1alpha2
Expand Down
4 changes: 2 additions & 2 deletions config/crd/bases/rabbitmq.com_vhosts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ metadata:
spec:
group: rabbitmq.com
names:
categories:
- all
kind: Vhost
listKind: VhostList
plural: vhosts
singular: vhost
categories:
- all
scope: Namespaced
versions:
- name: v1alpha2
Expand Down

0 comments on commit f83c792

Please sign in to comment.