You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
No response
Describe the solution you would like
In KubeOps 7 it was possible to use inheritance for GenericAdditionalPrinterColumnAttributes, which made it very simple to predefine as set of standard columns such as 'Ready' or 'Reason.
In kubeops 9 this is no longer supported so now we have to define it on each entity again and again.
KubeOps 7
[AttributeUsage(AttributeTargets.Class, AllowMultiple = true)]
public class ReadyPrinterColumnAttribute : GenericAdditionalPrinterColumnAttribute
{
public ReadyPrinterColumnAttribute()
: base(".status.conditions[?(@.type==\"Ready\")].status", "Ready", "string")
{
}
}
[KubernetesEntity(Group = "activedirectory", ApiVersion = "v1alpha1", Kind = "Group", PluralName = "groups")]
[ReadyPrinterColumn, ReasonPrinterColumn, AgePrinterColumn]
public partial class V1GroupEntity : CustomKubernetesEntity<V1GroupEntitySpec, V1GroupEntityStatus>
{
}
[KubernetesEntity(Group = "serviceaccount", ApiVersion = "v1alpha1", Kind = "Group", PluralName = "groups")]
[ReadyPrinterColumn, ReasonPrinterColumn, AgePrinterColumn]
public partial class V1ServiceAccount : CustomKubernetesEntity<V1GroupEntitySpec, V1GroupEntityStatus>
{
}
Is your feature request related to a problem? Please describe.
No response
Describe the solution you would like
In KubeOps 7 it was possible to use inheritance for GenericAdditionalPrinterColumnAttributes, which made it very simple to predefine as set of standard columns such as 'Ready' or 'Reason.
In kubeops 9 this is no longer supported so now we have to define it on each entity again and again.
KubeOps 7
KubeOps 9
Additional Context
No response
The text was updated successfully, but these errors were encountered: