Add no-interpolate
to allow the generated files to keep the variable placeholder
#1953
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
What would you like to be added?
Context:
Sometimes we want the generated file to keep the environment variable placeholder, so we can take advantage os scenarios where the generated files still act as a template where the environment variables could be interpolated in a later moment.
Example:
to generate:
How:
Just like we have with
docker compose config --no-interpolate
, we can use the same feature idea.Known Problems:
Some of the code we have at this moment "dont support/take in consideration" the possibility of having a "env var placeholder" value like:
as ports expects a integer and not string (and it may have some logic related also). But there is more like labels, for example
kompose.image-pull-policy: "${IMAGE_PULL_POLICY:-IfNotPresent}"
also didn't work because it expect to be have specific "pre-defined" values.I think initial work in this is to support the basics like "image" and "environments" keys. I believe all the others attributes, can be done in a on-demand basis by others issues specific to each need.
Why is this needed?
Allow the generated files to keep the environment variable placeholders in order to be interpolated in a later moment.
The text was updated successfully, but these errors were encountered: