-
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 in sync.paths[].mode not working since 0.13.53 #6843
Comments
Hi @andreavocado, thanks for reporting this. Apologies for the issues this might be causing. |
Thanks for reporting this @andreavocado! How to you define the variables? Do you use |
@vvagaytsev I'm using both: In the
The
The variable
|
@andreavocado how to you import the It should be declared as: kind: Project
varfile: garden.remote.env
... in the Project-config or kind: Deploy
varfiles: [garden.remote.env]
... in the Action-config. The config varfiles:
- garden.sync.yaml looks looks like a snippet of a Unfortunately, I still cannot reproduce it. Can you please share the Project-level config and the Action-config that declares the deployment in sync-mode? Feel free to omit all sensitive data. It would be very helpful to have a minimal config to proroduce the issue. |
@vvagaytsev I do my best of showing my setup ;) The Here are the other project files: project.garden.yml
garden.yml
garden.sync.yaml
|
Thanks for sharing the config, @andreavocado! I was able to reproduce the issue. This regression was caused by #6745 and was already fixed in #6844. I've tested it with the PR branch locally and got no error. The PR with the fix is still in review. Once it's merged and built, you can try out the Update (see the next comment)
Syncing . to /app/ in Deployment/service (one-way-safe)
varfiles:
- garden.sync.yml
- garden.${environment.name}.env |
@andreavocado sorry for the confusion, I tried a wrong config. My default env varfile was in the wrong location :) |
@andreavocado feel free to try out the latest edge release, it should fix the issue. You can get it by running this command: garden self-update edge-bonsai |
@vvagaytsev I tried the newest version and the sync works as expected. Thanks for your good job! |
Bug
Current behavior
Given following YAML:
produces following output when running
deploy service
Expected behavior
It evaluates the expresion and uses the variable
syncmode
if given, otherwise the default'one-way-safe'
Reproducible example
s.a.
Workaround
Use no expresions:
Suggested solution(s)
Revert or fix changes made in 0.13.53
Additional context
Works as expected untill 0.13.52.
Your environment
garden version: 0.13.53
The text was updated successfully, but these errors were encountered: