Skip to content

Comments

daemon/config: some refactor and deprecate Config.ValidatePlatformConfig#48985

Merged
thaJeztah merged 4 commits intomoby:masterfrom
thaJeztah:daemon_config_cleanup
Nov 28, 2024
Merged

daemon/config: some refactor and deprecate Config.ValidatePlatformConfig#48985
thaJeztah merged 4 commits intomoby:masterfrom
thaJeztah:daemon_config_cleanup

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Nov 28, 2024

daemon/config: verifyDefaultCgroupNsMode: update error message for consistency

Most validation errors have the "invalid xxxxx" prefix; format this error
to be consitent with other errors.

daemon/config: move utility-functions separate from Config methods

daemon/config: deprecate Config.ValidatePlatformConfig

This method was only used internally as part of config.Validate; deprecate
it in favor of config.Validate and make it a non-exported function.

daemon/config: extract validation of userland-proxy config

- Description for the changelog

- Deprecate daemon/config.Config.ValidatePlatformConfig(). This method was used as helper for config.Validate, which should be used instead.

- A picture of a cute animal (not mandatory but encouraged)

…nsistency

Most validation errors have the "invalid xxxxx" prefix; format this error
to be consitent with other errors.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
This method was only used internally as part of config.Validate; deprecate
it in favor of config.Validate and make it a non-exported function.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah merged commit 781dd8a into moby:master Nov 28, 2024
@thaJeztah thaJeztah deleted the daemon_config_cleanup branch November 28, 2024 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants