-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Create new ListImagesWithOptions method in v10 #1129
Conversation
4020e18
to
8719f7d
Compare
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 good ⭐ Some minor shufflings requested.
remote/logging.go
Outdated
func (p *ErrorLoggingServer) ListImagesWithOptions(ctx context.Context, opts v10.ListImagesOptions) (_ []v6.ImageStatus, err error) { | ||
defer func() { | ||
if err != nil { | ||
p.logger.Log("method", "ListImages", "error", err) |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
"github.com/weaveworks/flux/remote" | ||
) | ||
|
||
// RPCClientV10 is the rpc-backed implementation of a server, for |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
remote/rpc/clientV6.go
Outdated
"github.com/weaveworks/flux/api/v6" | ||
"github.com/weaveworks/flux/daemon" |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
526391d
to
64be046
Compare
api/v10/api.go
Outdated
@@ -0,0 +1,25 @@ | |||
// This package defines the types for Flux API version 9. |
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
This comment was marked as abuse.
This comment was marked as abuse.
Sorry, something went wrong.
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.
Nice. Chomp that last morsel of copypasta and it's good to go.
We originally added options to
ListImages
in #1084 however we found out we couldn't make this change because of the RPC method signature.In this PR we revert the
ListImages
change and instead createListImagesWithOptions
in v10. For API versions before v10ListImagesWithOptions
will continue to work, with the WC service polyfilling the container fields filter option.