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
I want to load the contents of a file into a string without running it through jinja templating.
So I basically need an equivalent of load_template() that does not template.
Why do you need that?
I have an application that takes a large non-YAML config file (I put it into a ConfigMap and mount it as a volume).
I want users to be able to load that file from disk instead of specifying it as an inline YAML string.
The text was updated successfully, but these errors were encountered:
Well to your req. I do understand your need, is valid. Load some file and dont render it (as you want to avoid escape sequences for {{ etc..
Sort of off-topic for discussion, but would not be more convenient to have a dedicated "config" sub-comand or dedicated config step on deployment.yml to deliver configuration, restart pods etc.. sth like https://github.com/kiwigrid/k8s-sidecar does. As from experience one day:
ConfigMap will be too big
Source is not file but Git repo, ...
You will only need to apply config to API of service, but want to avoid touch/restart pods
You need to run some API calls after the config is updated
You need to pre-process configs by some tool etc..
The issues you've mentioned could be solved with initContainers and Kubernetes Jobs.
However, because of the wide array of possible actions one could want to take to retrieve and apply config files, I'm not sure if it'd be good to implement it as part of kluctl.
If the interface is too specific to certain tasks, you wouldn't be able to do all the things you'd want. If it's too generic you'll just end up writing a Job/initContainer in your deployment.yaml
I also don't think configuration is a special in any sense relative to other applications of Jobs/InitContainers.
Command
Who are you?
DevOps Engineer
What do you want to do?
I want to load the contents of a file into a string without running it through jinja templating.
So I basically need an equivalent of
load_template()
that does not template.Why do you need that?
I have an application that takes a large non-YAML config file (I put it into a ConfigMap and mount it as a volume).
I want users to be able to load that file from disk instead of specifying it as an inline YAML string.
The text was updated successfully, but these errors were encountered: