From a8437543a66a03c3ccf73ad8b8c092a9624ea3b0 Mon Sep 17 00:00:00 2001 From: Andreas Thaler Date: Tue, 8 Oct 2024 14:02:47 +0200 Subject: [PATCH] feat: add proper categories for CRDs (#652) * feat: Add proper categories for CRDs * fix --- api/eventing/v1alpha2/subscription_types.go | 1 + api/operator/v1alpha1/eventing_types.go | 1 + config/crd/bases/eventing.kyma-project.io_subscriptions.yaml | 2 ++ config/crd/bases/operator.kyma-project.io_eventings.yaml | 3 +++ 4 files changed, 7 insertions(+) diff --git a/api/eventing/v1alpha2/subscription_types.go b/api/eventing/v1alpha2/subscription_types.go index db566ea8..65267c5d 100644 --- a/api/eventing/v1alpha2/subscription_types.go +++ b/api/eventing/v1alpha2/subscription_types.go @@ -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" diff --git a/api/operator/v1alpha1/eventing_types.go b/api/operator/v1alpha1/eventing_types.go index 9f6a3948..9f139724 100644 --- a/api/operator/v1alpha1/eventing_types.go +++ b/api/operator/v1alpha1/eventing_types.go @@ -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" diff --git a/config/crd/bases/eventing.kyma-project.io_subscriptions.yaml b/config/crd/bases/eventing.kyma-project.io_subscriptions.yaml index 4f9291b7..3c10989f 100644 --- a/config/crd/bases/eventing.kyma-project.io_subscriptions.yaml +++ b/config/crd/bases/eventing.kyma-project.io_subscriptions.yaml @@ -8,6 +8,8 @@ metadata: spec: group: eventing.kyma-project.io names: + categories: + - kyma-eventing kind: Subscription listKind: SubscriptionList plural: subscriptions diff --git a/config/crd/bases/operator.kyma-project.io_eventings.yaml b/config/crd/bases/operator.kyma-project.io_eventings.yaml index e8cf39c9..efab2633 100644 --- a/config/crd/bases/operator.kyma-project.io_eventings.yaml +++ b/config/crd/bases/operator.kyma-project.io_eventings.yaml @@ -8,6 +8,9 @@ metadata: spec: group: operator.kyma-project.io names: + categories: + - kyma-modules + - kyma-eventing kind: Eventing listKind: EventingList plural: eventings