-
Notifications
You must be signed in to change notification settings - Fork 274
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
[Bug]: Templating logic change in garden 0.13.46 breaks deploys #6711
Comments
Thank you @alexkuretz, we'll have a look and working on this with high priority |
@alexkuretz can you also share a snippet of the module or action code? Thank you |
@alexkuretz never mind, we understand the problem now. Would you be able to verify that the change in #6713 solves the problem for you? You can download garden for this PR here:
Thank you so much for reporting this @alexkuretz . |
@alexkuretz now you can update to edge bonsai using |
This works, thank you. I'm reading through the discussion in the PR, are we doing something in an unorthodox way? What's the guidance on the "proper" way to be handling variables in the manifests? I see mention of |
Search in garden docs shows no mention of patchManifests? |
Hi @alexkuretz thank you, sorry that was a typo on my end, I mean You are not doing something unorthodox, but there are some issues with the current implementation of template string evaluation in kubernetes manifest files, for example there is no error if a user references a variable that does not exist, and the value of variables referenced in the kubernetes manifest is not correctly taken into account in version calculation. Fixing this requires breaking changes, so we will only be able to fully resolve these issues in 0.14; in the mean time you can use inline manifests using |
There was another regression in the template parser that could cause issues like this, so I'm reopening this |
Ok thanks for the explanation and quick action on the fix. |
One of our devs is trying the edge-bonsai release and encountering a different error that doesn't happen on 0.13.45
He tried cleaning namespace and re-running but same failure. |
@alexkuretz that happened because of the Mutagen version upgrade (Mutagen is the tool that we use for file syncing). Did any warn message with hints appear in the console? If not, please let us know. The issue could be fixed by manual Mutagen daemon restart by running the command: garden util mutagen daemon stop from the project root directory. If the command above doesn't help, please try to kill all active Mutagen processes by running kill -9 $(pgrep mutagen) |
Dev here. Restarting the daemon fixed it for me. I didn't see any warn other than what Alex posted above i.e. This is the output I received:
|
Thank you for letting us know @th-ao we'll also fix that |
@alexkuretz we just released 0.13.47 with these fixes, let us know if you encounter any further issues ❤️ |
Bug
Current behavior
Expected behavior
To work the way it has
Reproducible example
Not entirely sure, so here's some snippets.
project.garden.yml:
manifest:
Workaround
Reverting to 0.13.45 works.
Suggested solution(s)
Additional context
Your environment
garden version
0.13.46
The text was updated successfully, but these errors were encountered: