Skip to content

Conversation

@thaJeztah
Copy link
Member

@thaJeztah thaJeztah commented Nov 22, 2022

CommonOptions was inherited from when the cli and daemon were in the same repository, and some options would be shared between them. That's no longer the case, and some options are even "incorrect" (for example, while the daemon can be configured to run on multiple hosts, the CLI can only connect with a single host / connection). This patch does not (yet) address that, but merges the CommonOptions into the ClientOptions.

An alias is created for the old type, although it doesn't appear there's any external consumers using the CommonOptions type (or its constructor).

- Description for the changelog

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

CommonOptions was inherited from when the cli and daemon were in the same
repository, and some options would be shared between them. That's no longer
the case, and some options are even "incorrect" (for example, while the
daemon can be configured to run on multiple hosts, the CLI can only connect
with a single host / connection). This patch does not (yet) address that,
but merges the CommonOptions into the ClientOptions.

An alias is created for the old type, although it doesn't appear there's
any external consumers using the CommonOptions type (or its constructor).

Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah added status/2-code-review kind/refactor PR's that refactor, or clean-up code labels Nov 22, 2022
@thaJeztah thaJeztah added this to the 22.06.0 milestone Nov 22, 2022
@codecov-commenter
Copy link

codecov-commenter commented Nov 22, 2022

Codecov Report

Merging #3876 (3499669) into master (64e0a6c) will increase coverage by 0.00%.
The diff coverage is 64.28%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3876   +/-   ##
=======================================
  Coverage   59.22%   59.23%           
=======================================
  Files         288      287    -1     
  Lines       24661    24659    -2     
=======================================
  Hits        14606    14606           
+ Misses       9171     9169    -2     
  Partials      884      884           

@thaJeztah thaJeztah merged commit d0526ed into docker:master Nov 22, 2022
@thaJeztah thaJeztah deleted the merge_common_options branch November 22, 2022 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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