Skip to content

dockerd: fix docs, improve validation and improve coverage of "--feature" flag#48502

Merged
thaJeztah merged 5 commits intomoby:masterfrom
thaJeztah:dockerd_typo
Sep 16, 2024
Merged

dockerd: fix docs, improve validation and improve coverage of "--feature" flag#48502
thaJeztah merged 5 commits intomoby:masterfrom
thaJeztah:dockerd_typo

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Sep 16, 2024

man: fix duplicate word in --feature flag description

man: dockerd: value is optional for --feature flag

The --feature flag allows the boolean value to be omitted. If only a name is provided, the default is "true".

internal/opts: SetOpts,NamedSetOpts: test for optional value

The value is optional for SetOpts (and NamedSetOpts), and implied "true" when omitted.

This patch adds a test-case for this.

internal/opts: SetOpts.Set: remove redundant var assignment

internal/opts: SetOpts: invalidate empty option-names

@thaJeztah
Copy link
Copy Markdown
Member Author

Some more things to address in this area; temporarily moving to draft

The --feature flag allows the boolean value to be omitted.
If only a name is provided, the default is "true".

Signed-off-by: Sebastiaan van Stijn <[email protected]>
The value is optional for SetOpts (and NamedSetOpts), and implied
"true" when omitted.

This patch adds a test-case for this.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah changed the title man: fix duplicate word in --feature flag description dockerd: fix docs, improve validation and improve coverage of "--feature" flag Sep 16, 2024
@thaJeztah thaJeztah marked this pull request as ready for review September 16, 2024 09:05
Copy link
Copy Markdown
Member

@laurazard laurazard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thaJeztah thaJeztah self-assigned this Sep 16, 2024
@thaJeztah thaJeztah merged commit e8139af into moby:master Sep 16, 2024
@thaJeztah thaJeztah deleted the dockerd_typo branch September 16, 2024 12:12
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