kyma-project / community

Provides general guidelines, contributing, and maintaining rules for all who add content to Kyma.
https://kyma-project.io/community/
Apache License 2.0
44 stars 107 forks source link

Consistent categories for kyma CRDs #912

Closed a-thaler closed 3 days ago

a-thaler commented 4 months ago

Created on 2024-06-04} by Andreas Thaler(@a-thaler)

Decision log

Name Description
Title Consistent CRD categories
Due date 2024-06-30
Status Proposed on 202-06-04
Decision type Binary
Affected decisions -

Context

It is hard to get an overview across the modules and the kyma status as all entities are modeled in individual CRDs, so you need to know what to query for.

It should be possible to list and get relevant Kyma resources with simple commands using kubectl. A typical approach is to leverage CRD categories. Having that simple 'kubectl get ' will return all resources belonging to the category.

Considerations

There seem to be no official recommendation on when to use categories and how to name them. Istio is using:

gardener and calico seem to not use categories

Decision

All user facing CRDs should have categories attached in a consistent approach using the following pattern:

General categories:

Example CRD assignment categories:

a-thaler commented 3 days ago

Decision got accepted

a-thaler commented 2 days ago

We identified that the "kyma" category will collide with the CRD called "kyma" and will confuse end users. As the use case of listing all kyma resources is maybe not really existent, we decided to remove the category from the proposal, I adjusted the description.