utilise project_root when referencing other objects id relatively #368
-
In all my configurations my references to other objects ids are via relative paths for example
This works fine if i run monao from the projects root folder and Chris is a project folder in my root project folder. However if i choose to run monaco from another working dir and pass it the project root dir, while it will use that to find the projects, it will not be able to resolve the object references.
In this scenario all the project files are discovered and referenced from the project root i passed in however my references to other objects are relative and fail.
Is it possible to have monaco apply the project root paths to objects references the same way as it does for projects and configs. This removing the need to be tied in to running monaco from the project root or having to put absolute paths in the yaml configs which would break between each devs environment or OS. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, Details on how the new system work can be found in PR #261 And here a link to a sample with the new config https://github.com/patrickpichler/dynatrace-monitoring-as-code/tree/poc-new-config/examples/singe-project |
Beta Was this translation helpful? Give feedback.
Hi,
Config references will be completely reworked with monaco v2.
Please have a look at #351 and the corresponding discussion #165
Details on how the new system work can be found in PR #261
Here a link to the new parameter documentation https://github.com/patrickpichler/dynatrace-monitoring-as-code/blob/poc-new-config/documentation/docs/configuration/parameters.md#reference-parameter]
And here a link to a sample with the new config https://github.com/patrickpichler/dynatrace-monitoring-as-code/tree/poc-new-config/examples/singe-project