This PR changes the implementation of PatchImages to use MapPodSpec. That way, we only implement the big switch statement once (in MapPodSpec) and automatically get support for all types that have a PodSpec - including StatefulSet, which is currently not supported.
Drive-by fixes:
Move Patch* functions to mutators (as they are not sets).
This PR changes the implementation of
PatchImages
to useMapPodSpec
. That way, we only implement the big switch statement once (inMapPodSpec
) and automatically get support for all types that have aPodSpec
- includingStatefulSet
, which is currently not supported.Drive-by fixes:
Patch*
functions to mutators (as they are not sets).