Skip to content

cli/command: remove unused args from ResolveDefaultContext() (step 2) - #3510

Draft
thaJeztah wants to merge 2 commits into
docker:masterfrom
thaJeztah:context_cleanup_part1
Draft

cli/command: remove unused args from ResolveDefaultContext() (step 2)#3510
thaJeztah wants to merge 2 commits into
docker:masterfrom
thaJeztah:context_cleanup_part1

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

- Description for the changelog

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

@thaJeztahthaJeztah added status/2-code-review area/context kind/refactor PR's that refactor, or clean-up code labels Mar 30, 2022
@thaJeztahthaJeztah added this to the 21.xx milestone Mar 30, 2022
@thaJeztah
thaJeztahforce-pushed the context_cleanup_part1 branch from 298b953 to 7770910CompareMarch 30, 2022 16:28
@codecov-commenter

codecov-commenter commented Mar 30, 2022

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 94.73684% with 1 line in your changes missing coverage. Please review.

Files with missing linesPatch %Lines
cli/command/cli.go66.66%1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@thaJeztah

Copy link
Copy Markdown
MemberAuthor

@silvin-lubecki@rumpl ptal

@thaJeztah

Copy link
Copy Markdown
MemberAuthor

@ndeloof@rumpl ptal

thaJeztah added a commit to thaJeztah/buildx that referenced this pull request Apr 8, 2022
just double-checking if docker/cli#3510 doesn't
break anything.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

// EndpointDefaultResolver is implemented by any EndpointMeta object
// which wants to be able to populate the store with whatever their default is.
type EndpointDefaultResolver interface {

@thaJeztahthaJeztahApr 8, 2022

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Looks like this is used in buildx (see docker/buildx#1054); let me check how/why and if it's strictly needed

+ xx-go build -ldflags '-X github.com/docker/buildx/version.Version=9e61f69 -X github.com/docker/buildx/version.Revision=9e61f69a5b83c3d6ee5545e488d5ad430c894276 -X github.com/docker/buildx/version.Package=github.com/docker/buildx -w -s' -o /usr/bin/buildx ./cmd/buildx
# github.com/docker/buildx/driver/kubernetes/context
driver/kubernetes/context/load.go:31:7: undefined: command.EndpointDefaultResolver

@thaJeztah

Copy link
Copy Markdown
MemberAuthor

let me move this temporarily back to draft, while we can discuss what to do with these options.

@thaJeztah
thaJeztah marked this pull request as draft April 8, 2022 14:52
@thaJeztah
thaJeztahforce-pushed the context_cleanup_part1 branch from c735e08 to 13edf41CompareJuly 21, 2022 16:12
@thaJeztahthaJeztah changed the title cli/command: remove unused args from ResolveDefaultContext()cli/command: remove unused args from ResolveDefaultContext() (step 2)Jul 21, 2022
@thaJeztah
thaJeztahforce-pushed the context_cleanup_part1 branch from 13edf41 to 624d62bCompareJuly 29, 2022 07:49
@thaJeztahthaJeztah modified the milestones: 23.0.0, 23.0.1Feb 2, 2023
@thaJeztahthaJeztah modified the milestones: 23.0.1, v-nextFeb 9, 2023
@thaJeztah
thaJeztahforce-pushed the context_cleanup_part1 branch from 624d62b to 6ea9cbaCompareApril 27, 2023 00:38
@thaJeztahthaJeztah modified the milestones: 24.0.0, 25.0.0May 5, 2023
@thaJeztah
thaJeztahforce-pushed the context_cleanup_part1 branch from 6ea9cba to d358867CompareMay 5, 2023 23:34
this was added as part of 520be05, but
is not used anywhere, so we may as well simplify things a bit.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This was added in 4f14c49, in preparation
of 1433e27, but no longer used, so we
can remove it.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztahthaJeztah removed this from the 25.0.0 milestone Jan 19, 2024
@thaJeztahthaJeztah added this to the 26.0.0 milestone Jan 19, 2024
@vvolandvvoland modified the milestones: 26.0.0, 27.0.0Mar 14, 2024
@vvolandvvoland modified the milestones: 27.0.0, v-futureJun 20, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/contextkind/refactorPR's that refactor, or clean-up codestatus/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@thaJeztah@codecov-commenter@ndeloof@vvoland