You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A benefit of the existing approach is that the extra containers can refer to other template values, which we would lose if we made it behave similarly to extraManifests.
The text was updated successfully, but these errors were encountered:
Overview
Support configuring sidecars as YAML rather than a YAML string.
Current behavior
The
extraManifests
setting allows us to define a list of manifests to deploy, in list format:retool-helm/values.yaml
Lines 282 to 290 in 1e06cee
For example, my
extraManifests
looks like this:Given that
extraContainers
is defined as a list[]
by default, a reasonable assumption would be that we can add sidecar containers in the same way:retool-helm/values.yaml
Line 191 in 1e06cee
However, the following configuration results in an error message:
This results in an error:
We can fix this by changing the
extraContainers
to be a string, by adding a|
, like this:Unfortunately, this causes us to lose syntax highlighting support from IDEs, since it is interpreted as a simple string.
Desired behavior
Ideally, we should be able to specify containers using YAML rather than as a string. Compare this to how Bitnami charts allow users to configure
sidecars
: https://docs.bitnami.com/kubernetes/apps/wordpress/configuration/configure-sidecar-init-containers/In the template, it is implemented with code like this: https://github.com/bitnami/charts/blob/0c32e83bd5ac05cd9f2f17e60b0e3f3aaa6d0c8f/bitnami/postgresql/templates/primary/statefulset.yaml#L561-L563
Notes
A benefit of the existing approach is that the extra containers can refer to other template values, which we would lose if we made it behave similarly to
extraManifests
.The text was updated successfully, but these errors were encountered: