Skip to content

Commit c087657

Browse files
authored
Merge pull request #1333 from josesiqueira/add-crd-categories
Add categories to notification CRDs
2 parents 3dbca6b + 28486aa commit c087657

6 files changed

Lines changed: 15 additions & 0 deletions

api/v1/receiver_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,7 @@ func (in *Receiver) GetInterval() time.Duration {
251251
// +genclient
252252
// +kubebuilder:storageversion
253253
// +kubebuilder:object:root=true
254+
// +kubebuilder:resource:categories=all;fluxcd;fluxcd-notifications
254255
// +kubebuilder:subresource:status
255256
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
256257
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.conditions[?(@.type==\"Ready\")].status",description=""

api/v1beta3/alert_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ type AlertSpec struct {
8080
// +genclient
8181
// +kubebuilder:storageversion
8282
// +kubebuilder:object:root=true
83+
// +kubebuilder:resource:categories=all;fluxcd;fluxcd-notifications
8384
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
8485

8586
// Alert is the Schema for the alerts API

api/v1beta3/provider_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ type ProviderSpec struct {
170170
// +genclient
171171
// +kubebuilder:storageversion
172172
// +kubebuilder:object:root=true
173+
// +kubebuilder:resource:categories=all;fluxcd;fluxcd-notifications
173174
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""
174175

175176
// Provider is the Schema for the providers API

config/crd/bases/notification.toolkit.fluxcd.io_alerts.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ metadata:
88
spec:
99
group: notification.toolkit.fluxcd.io
1010
names:
11+
categories:
12+
- all
13+
- fluxcd
14+
- fluxcd-notifications
1115
kind: Alert
1216
listKind: AlertList
1317
plural: alerts

config/crd/bases/notification.toolkit.fluxcd.io_providers.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ metadata:
88
spec:
99
group: notification.toolkit.fluxcd.io
1010
names:
11+
categories:
12+
- all
13+
- fluxcd
14+
- fluxcd-notifications
1115
kind: Provider
1216
listKind: ProviderList
1317
plural: providers

config/crd/bases/notification.toolkit.fluxcd.io_receivers.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ metadata:
88
spec:
99
group: notification.toolkit.fluxcd.io
1010
names:
11+
categories:
12+
- all
13+
- fluxcd
14+
- fluxcd-notifications
1115
kind: Receiver
1216
listKind: ReceiverList
1317
plural: receivers

0 commit comments

Comments
 (0)