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'm trying to use compose-node-name option introduced here #933 and compile is failing.
To Reproduce
I used inventory from examples/terraform directory in this repo
cd into terraform example dir cd kapitan/examples/terraform
Update reclass-config sed -i '' 's/compose_node_name: false/compose_node_name: true/' inventory/reclass-config.yml
run kapitan compile (I used docker)
docker run -t --rm -u $(id -u) -v $(pwd):/src:delegated kapicorp/kapitan:v0.32.0 compile
Target "project1" is missing the corresponding yml file in /src/inventory/targets
Target name should match the name of the target yml file in inventory
Expected behavior
Compilation is finished without errors.
Not sure if this is a bug or some additional inventory changes are needed. Any help is appreciated.
The text was updated successfully, but these errors were encountered:
Hey @roman8422 ,
I see two potential errors from here.
You have to pass the --compose-node-name as an compile argument to enable the compose-node-name behavior in kapitan as well.
I looked into the examples/terraform/classes/type.yml file and noticed that the kapitan.vars.target is hardcoded, so reclass has no possibility to modify the targetname. This is actually bad style, so I'm gonna fix it in a PR. With setting that value to ${_reclass_:name:full} the correct (composed) target name gets passed into kapitan.
I hope that this helps you. Let me know if you have some more questions!
I'm trying to use
compose-node-name
option introduced here #933 and compile is failing.To Reproduce
I used inventory from
examples/terraform
directory in this repocd kapitan/examples/terraform
sed -i '' 's/compose_node_name: false/compose_node_name: true/' inventory/reclass-config.yml
kapitan compile
(I used docker)Expected behavior
Compilation is finished without errors.
Not sure if this is a bug or some additional inventory changes are needed. Any help is appreciated.
The text was updated successfully, but these errors were encountered: