Closed
Description
With IKubernetesObject and IMetadata<T> being completely separate, there is no single type that I can use to capture them both, which leads to a great proliferation of generics with type constraints, e.g.
Process<T>(T obj) where T : IKubernetesObject, IMetadata<V1ObjectMeta>
. Every place where such an object is passed or returned must be made generic and decorated with type constraints.
It'd be helpful to have an interface that encapsulates the combination of the above. I suggest:
interface IKubernetesObject<TMetadata> : IKubernetesObject, IMetadata<TMetadata> { }
Metadata
Metadata
Assignees
Labels
No labels