Skip to content

Commit

Permalink
feat: add proper categories for CRDs (#652)
Browse files Browse the repository at this point in the history
* feat: Add proper categories for CRDs

* fix
  • Loading branch information
a-thaler authored and marcobebway committed Oct 9, 2024
1 parent aba21c0 commit a843754
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions api/eventing/v1alpha2/subscription_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ type SubscriptionStatus struct {
// +kubebuilder:storageversion
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={kyma-eventing}
// +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=".status.ready"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp"

Expand Down
1 change: 1 addition & 0 deletions api/operator/v1alpha1/eventing_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ func getSupportedConditionsTypes() map[ConditionType]interface{} {
// Eventing is the Schema for the eventing API.
// +kubebuilder:object:root=true
// +kubebuilder:subresource:status
// +kubebuilder:resource:categories={kyma-modules,kyma-eventing}
// +kubebuilder:printcolumn:name="State",type="string",JSONPath=".status.state",description="State of Eventing"
// +kubebuilder:printcolumn:name="Backend",type="string",JSONPath=".spec.backend.type",description="Type of Eventing backend, either NATS or EventMesh"
// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="Age of the resource"
Expand Down
2 changes: 2 additions & 0 deletions config/crd/bases/eventing.kyma-project.io_subscriptions.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ metadata:
spec:
group: eventing.kyma-project.io
names:
categories:
- kyma-eventing
kind: Subscription
listKind: SubscriptionList
plural: subscriptions
Expand Down
3 changes: 3 additions & 0 deletions config/crd/bases/operator.kyma-project.io_eventings.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
spec:
group: operator.kyma-project.io
names:
categories:
- kyma-modules
- kyma-eventing
kind: Eventing
listKind: EventingList
plural: eventings
Expand Down

0 comments on commit a843754

Please sign in to comment.