Add more Editors and Selectors for Helm facility
This MR introduces more ObjectSelector and ObjectEditor helper functions. There are three categories of functions:
-
XyzSelectorvariables that areObjectSelectorfunctions forXyzresource type. -
NewXyzSelectorhelper functions that build anObjectSelectorwhich ensure the resource type isXyzand passes it to adelegatefunction for further checks, e.g. inspecting.ObjectMeta.Labelsor.Spec. -
NewXyzEditorhelper functions that build anObjectEditorforXyzresource type and passes its reference to adelegatefunction for editing.
This MR also change the signature of EditObjects function and removes the selector. With the new NewZyzEditor functions, the editor function satisfies both requirements.
The last change in this MR was using HELM_NAMESPACE environment variable in tests against a non-default namespace.
Closes #15 (closed)
Edited by Hossein Pursultani