Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.13: [Bug]: Unable to parse modules key #5083

Closed
ishantagarwal-x213235 opened this issue Sep 13, 2023 · 7 comments · Fixed by #5324
Closed

0.13: [Bug]: Unable to parse modules key #5083

ishantagarwal-x213235 opened this issue Sep 13, 2023 · 7 comments · Fixed by #5324
Assignees

Comments

@ishantagarwal-x213235
Copy link
Contributor

ishantagarwal-x213235 commented Sep 13, 2023

Garden Bonsai (0.13) Bug

Current Behavior

When using garden plugins pulumi preview command, garden is unable to parse ${modules["${parent.name}-publish-image"].version}

An error occurred while reading pulumi varfiles for action spring-boot-service: Unable to load varfile at '/home/workstation/thx/workspace/garden-sample-project/garden-sample-project/config/global.yaml': Error: Invalid template string ( ################ ERROR ##########…): Could not find key modules. Available keys: command, datetime, environment, git, inputs, local, parent, project, secrets, template, this, var and variables.

Expected behavior

garden should parse the ${modules["${parent.name}-publish-image"].version} .

@vvagaytsev
Copy link
Collaborator

Hi @ishantagarwal-x213235, thanks for reporting the issue! Could you please provide the garden config to reproduce it? It might be that the ${modules} are referenced from the wrong context.

@ishantagarwal-x213235
Copy link
Contributor Author

@vvagaytsev Kindly use the project https://github.com/ishantagarwal-x213235/garden-sample-project for reproduce this issue.

Here is the yaml file having properties required for project
https://github.com/ishantagarwal-x213235/garden-sample-project/blob/main/config/global.yaml

here is the garden template
https://github.com/ishantagarwal-x213235/garden-sample-project/blob/main/template/garden/spring-service-module.garden.yml

@vvagaytsev
Copy link
Collaborator

vvagaytsev commented Sep 13, 2023

@ishantagarwal-x213235 which command did you use? Is the reproducible with garden validate?

I could not reproduce the issue in Garden 0.13.13 with the example above.

@ishantagarwal-x213235
Copy link
Contributor Author

@vvagaytsev
here is the command
garden plugins pulumi preview

@vvagaytsev
Copy link
Collaborator

Ah, sorry, I missed that in the description :)

@ishantagarwal-x213235
Copy link
Contributor Author

Hi @vvagaytsev
Could you kindly provide an update on the progress of the task, and please don't hesitate to reach out if you encounter any challenges or require assistance in reproducing it? Your support is greatly appreciated, and I'm here to help ensure a successful outcome

@vvagaytsev
Copy link
Collaborator

@ishantagarwal-x213235 sorry for the delayed reply. It's still in the backlog, I'm working on something else now. We'll check if someone can take this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants