Add config flags to specify image values, closes #1181 #1182
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The Problem/Issue/Bug:
#1181: Giving troubleshooting/debugging instructions can be complicated when it involves changing web/db/dba image values because it requires editing .ddev/config.yaml.
How this PR Solves The Problem:
Adds several configuration flags to
ddev config
that will set the images being used:--web-image
--db-image
--dba-image
To unset these custom image configurations, the following flags have been added:
--web-image-default
--db-image-default
--dba-image-default
And the following flag has been added to unset all custom image configurations in one go:
--image-defaults
Some image reference getters have been added to
versions.go
to standardize things.Manual Testing Instructions:
Provide custom image names to
ddev config
:ddev config --web-image my-web-image
ddev config --db-image my-db-image:v1.2.3
ddev config --dba-image my-dba-image:latest
And combinations of the above. Ensure after each execution that .ddev/config.yaml has been updated to reflect the updated image, then test unsetting image values:
ddev config --web-image-default
ddev config --db-image-default
ddev config --dba-image-default
ddev config --image-defaults
Automated Testing Overview:
Automated tests have been expanded to test the new flags.
Related Issue Link(s):
#1181