Our sets are known at compile time and thus creating them should never cause an error. This PR changes the implementation of a couple of mutators to be error-less, by switching them to MapPodSpec, and adds tests to ensure that this mapping still works. As a byproduct, AddInitializer and AddServiceMesh can now be used with any pod-creating resource.
Our sets are known at compile time and thus creating them should never cause an error. This PR changes the implementation of a couple of mutators to be error-less, by switching them to
MapPodSpec
, and adds tests to ensure that this mapping still works. As a byproduct,AddInitializer
andAddServiceMesh
can now be used with any pod-creating resource.