Use client.Object instead of concrete resource types in Helm Query interface
Summary
client.Object gives access to type and object metadata fields. With this type everything that we need for querying objects is available and we don't have to use concrete resources types. This makes the helm.Query interface much smaller.
Acceptance criteria
-
Replace type-specific functions of helm.Querywith generic counterparts that accept resource kind as a parameter. -
Use client.Objectinstead of concrete types with inhelm.Query. -
Change all the references to type-specific query functions and use the generic parametrized version. Use type assertion where needed.