-
-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't munge types in Docker registry config values. (#21649)
We document a schema for the registries dict, including specifying that certain fields should be bool-valued. I see no need to coerce those values into bools if they were actually strings, especially since we don't document that we do that (AFAICT). We should require users to adhere to the published schema. If this "breaks" users, well, they were accidentally relying on unadvertised leniency, and the fix is extremely easy. Note that this coercion was very ad hoc. We don't apply it uniformly across all fields in the docker registry config, and we certainly don't do this in other dict-valued options across the repo. This gets rid of a spurious dependency of the Docker backend on internal code of the legacy options parser.
- Loading branch information
Showing
6 changed files
with
24 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters