vidispine / hull

The incredible HULL - Helm Uniform Layer Library - is a Helm library chart to improve Helm chart based workflows
https://github.com/vidispine/hull
Apache License 2.0
213 stars 12 forks source link

Add `sharedContainers` feature #305

Open gre9ory opened 6 months ago

gre9ory commented 6 months ago

State

containers and initContainers for a pod can be individually configured and defaulted using _HULL_OBJECT_TYPE_DEFAULT_ and ´sources. Sometimes however the same container is used as an initContainer and a container both and eg. setting many environment variables multiple times feels unnecessary

Feature Idea

Add a sharedContainers field to pod which allows to define properties of containers that are inheritable by containers and initContainers both. The sharedContainers keys are referenceable by single containers and initContainers by key in a field sourceContainer on the container spec.

Feature should be compatible with _HULL_OBJECT_TYPE_DEFAULT_ and ´sources as well:

  1. Define sharedContainer in _HULL_OBJECT_TYPE_DEFAULT_ or referenced sources
  2. sharedContainers will be merged into individual pod spec
  3. sharedContainers can be referenced same way as if defined for pod only