With manage_variables_by_yaml on, Buddy YAML owns the variables and UI edits get overwritten
Guide With manage_variables_by_yaml on, Buddy YAML owns the variables and UI edits get overwritten: Pick one owner and stick with it. If manage_variables_by_yaml is true on a pipeline, treat the YAML file as the single source of truth for variables: edits made in the Buddy UI will be overwritten by. Use this when you hit exactly this in With. Not for different errors or different tools.
TL;DR: Pick one owner and stick with it. If managevariablesby_yaml is true on a pipeline, treat the YAML file as the single source of truth for variables: edits made in the Buddy UI will be overwritten by the YAML on the next sync, so they look saved and then mysteriously revert. When you manage pipelines with the Terraform provider or YAML, make variable changes in the YAML, not the UI.
Fix
Pick one owner and stick with it. Expected: this specific failure stops.
Details
The same applies to managepermissionsby_yaml for permissions.
When to use
You hit exactly this: With managevariablesby_yaml on, Buddy YAML owns the variables and UI edits get overwritten in With.
When not to use
A different error, or the same symptom in a different tool. This page only covers the failure above.
Compatibility
With.
Root cause
If managevariablesbyyaml is true on a pipeline, treat the YAML file as the single source of truth for variables: edits made in the Buddy UI will be overwritten by the YAML on the next sync, so they look saved and then mysteriously revert. The managevariablesbyyaml flag, when true, means pipeline variables are managed by the YAML definition.
Edge cases
- When you manage pipelines with the Terraform provider or YAML, make variable changes in the YAML, not the UI.
- Context from the original thread: Official docs (terraform-provider-buddy, buddy_pipeline resource): documents the ownership gotcha that trips agents managing Buddy pipelines as code.