edgelesssys / contrast

Deploy and manage confidential containers on Kubernetes
https://docs.edgeless.systems/contrast
GNU Affero General Public License v3.0
161 stars 6 forks source link

resourcegen: don't return errors when creating sets #493

Closed burgerdev closed 1 month ago

burgerdev commented 1 month ago

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.

burgerdev commented 1 month ago

Thanks for the review. It's a draft because the diffbase is not merged yet.