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:
Define sharedContainer in _HULL_OBJECT_TYPE_DEFAULT_ or referenced sources
sharedContainers will be merged into individual pod spec
sharedContainers can be referenced same way as if defined for pod only
State
containers
andinitContainers
for a pod can be individually configured and defaulted using_HULL_OBJECT_TYPE_DEFAULT_
and ´sources
. Sometimes however the same container is used as aninitContainer
and acontainer
both and eg. setting many environment variables multiple times feels unnecessaryFeature Idea
Add a
sharedContainers
field topod
which allows to define properties of containers that are inheritable bycontainers
andinitContainers
both. ThesharedContainers
keys are referenceable by singlecontainers
andinitContainers
by key in a fieldsourceContainer
on thecontainer
spec.Feature should be compatible with
_HULL_OBJECT_TYPE_DEFAULT_
and ´sources
as well:sharedContainer
in_HULL_OBJECT_TYPE_DEFAULT_
or referencedsources
sharedContainers
will be merged into individualpod
specsharedContainers
can be referenced same way as if defined forpod
only