Skip to content

daemon: remove configsSupported, secretsSupported utilities#48703

Merged
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:daemon_remove_configsSupported
Oct 23, 2024
Merged

daemon: remove configsSupported, secretsSupported utilities#48703
thaJeztah merged 2 commits intomoby:masterfrom
thaJeztah:daemon_remove_configsSupported

Conversation

@thaJeztah
Copy link
Member

daemon: remove configsSupported utility

This utility was originally added in 9e9fc7b
at which time it was not yet implemented for Windows, so this utility was
used to print a warning when trying to use it on that platform.

Windows support was added in e0d533b, which
kept the utility, but adjusted it to support for both Windows and Linux, and
excluding any other platform.

Let's remove this utility, given that we currently only support Windows and
Linux (there's been some partial support for other platforms, but they are
very likely broken in many ways).

daemon: remove secretsSupported utility

This utility was originally added in 3716ec2
at which time it was not yet implemented for Windows, so this utility was
used to print a warning when trying to use it on that platform.

Windows support was added in bd4e8aa, which
kept the utility, but adjusted it to support for both Windows and Linux, and
excluding any other platform.

Let's remove this utility, given that we currently only support Windows and
Linux (there's been some partial support for other platforms, but they are
very likely broken in many ways).

This utility was originally added in 9e9fc7b
at which time it was not yet implemented for Windows, so this utility was
used to print a warning when trying to use it on that platform.

Windows support was added in e0d533b, which
kept the utility, but adjusted it to support for both Windows and Linux, and
excluding any other platform.

Let's remove this utility, given that we currently only support Windows and
Linux (there's been some partial support for other platforms, but they are
very likely broken in many ways).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This utility was originally added in 3716ec2
at which time it was not yet implemented for Windows, so this utility was
used to print a warning when trying to use it on that platform.

Windows support was added in bd4e8aa, which
kept the utility, but adjusted it to support for both Windows and Linux, and
excluding any other platform.

Let's remove this utility, given that we currently only support Windows and
Linux (there's been some partial support for other platforms, but they are
very likely broken in many ways).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah thaJeztah added status/2-code-review area/swarm area/daemon Core Engine kind/refactor PR's that refactor, or clean-up code labels Oct 20, 2024
@thaJeztah thaJeztah added this to the 28.0.0 milestone Oct 20, 2024
@thaJeztah thaJeztah self-assigned this Oct 20, 2024
return err
}

c.SecretReferences = refs
Copy link
Member Author

Choose a reason for hiding this comment

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

Interestingly, the Configs implementation is slightly different here, and it appends, not replaces;

c.ConfigReferences = append(c.ConfigReferences, refs...)

@thaJeztah thaJeztah requested a review from vvoland October 21, 2024 11:23
@thaJeztah thaJeztah merged commit 9369a39 into moby:master Oct 23, 2024
@thaJeztah thaJeztah deleted the daemon_remove_configsSupported branch October 23, 2024 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/daemon Core Engine area/swarm kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants