Closed johnbizokk closed 5 years ago
Hello @johnbizokk, thank you for filling this issue 👍
Hello @johnbizokk
This issue has been fixed in the master branch (#602 and #651). The character -
is now unauthorized in the name of variables in the application template. When this character is used in the template, an error message is now printed in the console.
Note that in the Compose file specification the -
character is used to specify a default value for a to-be-interpolated variable but in docker app these default values have be set in the parameters.yml
file.
Description
When we try to use dash symbol (-) as a part of the variable name (aka. key) and surround the variable with the double-quotes - docker app binary produces a render error. The problem doesn't appear when we do not use the dash symbol in the variable name, or we use a variable name in the docker-compose.yml file without double-quotes.
I also attached the working examples - see the Annex №4,5,6 and Annex №7,8,9 below.
Steps to reproduce the issue:
Describe the results you received:
Unfortunately, we've got the following error:
Error: render failed: Action "com.docker.app.render" failed: failed to load Compose file: invalid interpolation format for x-default-placement.placement.constraints.[]: "required variable constraints.node.labels.operating-system\" is missing a value". You may need to escape any $ with another $.
Describe the results you expected:
We expect from docker app binary to render template correctly.
Output of
docker version
:Output of
docker-app version
:Output of
docker info
:Annex №1 (docker-compose.yml) - render error - group №1
Annex №2 (parameters.yml) - render error - group №1
Annex №3 (metadata.yml) - render error - group №1
Annex №4 (docker-compose.yml) - successful render - group №2
Annex №5 (parameters.yml) - successful render - group №2
Annex №6 (metadata.yml) - successful render - group №2
Annex №7 (docker-compose.yml) - successful render - group №3
Annex №8 (parameters.yml) - successful render - group №3
Annex №9 (metadata.yml) - successful render - group №3