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

Allow overriding config in config.*.yaml using override_config: true, fixes #4100, fixes #4079, fixes #4099 #4118

Merged
merged 5 commits into from
Aug 17, 2022

Conversation

rfay
Copy link
Member

@rfay rfay commented Aug 13, 2022

The Problem/Issue/Bug:

DDEV v1.20.0 introduced the merging approach to config.*.yaml that most people seemed to expect over the years, but it turned out there were many people who had used the old (overwrite everything) behavior to good effect and needed the old behavior.

How this PR Solves The Problem:

Add override_config: true option that can be added to any config.*.yaml file to signal that its contents should override instead of merging.

Manual Testing Instructions:

Add override_config: true to any config.*.yaml and the behavior for that file only is changed to override instead of merge.

Try out the things people complained about:

  • nfs_mount_enabled: false
  • additional_hostnames: []

Automated Testing Overview:

  • TestConfigMerge gets a whole new section that tests this.

@github-actions
Copy link

github-actions bot commented Aug 13, 2022

@rfay rfay force-pushed the 20220813_config_yaml_override branch from a313b1e to f5cae68 Compare August 16, 2022 01:33
@nhp
Copy link

nhp commented Aug 17, 2022

Tested with nfs_mounts_enabled and works as expected.

@rfay rfay merged commit 2972c6a into ddev:master Aug 17, 2022
@rfay rfay deleted the 20220813_config_yaml_override branch August 17, 2022 13:17
@rfay
Copy link
Member Author

rfay commented May 3, 2023

A related advance in docker-compose, compose-spec/compose-spec#340

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

Successfully merging this pull request may close these issues.

None yet

2 participants