Add more Editors and Selectors for Helm facility
This MR introduces more ObjectSelector
and ObjectEditor
helper functions. There are three categories of functions:
-
XyzSelector
variables that areObjectSelector
functions forXyz
resource type. -
NewXyzSelector
helper functions that build anObjectSelector
which ensure the resource type isXyz
and passes it to adelegate
function for further checks, e.g. inspecting.ObjectMeta.Labels
or.Spec
. -
NewXyzEditor
helper functions that build anObjectEditor
forXyz
resource type and passes its reference to adelegate
function 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