-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cli/command: remove unused args from ResolveDefaultContext() (step 2) #3510
base: master
Are you sure you want to change the base?
Conversation
298b953
to
7770910
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #3510 +/- ##
==========================================
+ Coverage 59.72% 59.77% +0.05%
==========================================
Files 287 287
Lines 24832 24806 -26
==========================================
- Hits 14831 14828 -3
+ Misses 9115 9092 -23
Partials 886 886 |
@silvin-lubecki @rumpl ptal |
just double-checking if docker/cli#3510 doesn't break anything. Signed-off-by: Sebastiaan van Stijn <[email protected]>
@@ -31,66 +29,32 @@ type ContextStoreWithDefault struct { | |||
Resolver DefaultContextResolver | |||
} | |||
|
|||
// EndpointDefaultResolver is implemented by any EndpointMeta object | |||
// which wants to be able to populate the store with whatever their default is. | |||
type EndpointDefaultResolver interface { |
There was a problem hiding this comment.
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
let me move this temporarily back to draft, while we can discuss what to do with these options. |
c735e08
to
13edf41
Compare
13edf41
to
624d62b
Compare
624d62b
to
6ea9cba
Compare
6ea9cba
to
d358867
Compare
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 <[email protected]>
This was added in 4f14c49, in preparation of 1433e27, but no longer used, so we can remove it. Signed-off-by: Sebastiaan van Stijn <[email protected]>
d358867
to
13bccd3
Compare
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)