Replace multiple ResourceMeta implementations with a single type #11886
Labels
kind/improvement
Improvement on an existing feature
triage/accepted
The issue was reviewed and is complete enough to start working on it
Description
We have 9 different implementations of meta spread across various packages and 1
ResourceMeta
interface in thecore
package. This has downsides:ResourceMeta
interface, seeGetDisplayName
,IsReferenced
,ResourceOrigin
Single ResourceMeta type in
core
will be enough. ResourceMeta clients in various packages can create their own interfaces if needed.When it comes to KubernetesMetaAdapter, we don't have to store the entire
v1.ObjectMeta
object. We need to store onlyannotations
andUID
(UID can be encoded tometa.version
like{.ResourceVersion}/{.UID}
):The text was updated successfully, but these errors were encountered: