Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Volumes grpc interface #683

Merged
merged 2 commits into from
Sep 28, 2020
Merged

Volumes grpc interface #683

merged 2 commits into from
Sep 28, 2020

Conversation

gtardif
Copy link
Contributor

@gtardif gtardif commented Sep 28, 2020

What I did
Replace #640 (including commit from @ulyssessouza) to follow up with things we did pair programming and fixes in metrics)

Related issue
#604

(not mandatory) A picture of a cute animal, if possible in relation with what you did

Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
@gtardif
Copy link
Contributor Author

gtardif commented Sep 28, 2020

CI workflows need to be fixed to include build happening on fork (green now for this PR)

@gtardif
Copy link
Contributor Author

gtardif commented Sep 28, 2020

This will require a follow up PR in node-sdk to add volumes API, and add a volume sample (already tested, working on ACI context)

Copy link
Contributor

@chris-crone chris-crone left a comment

Choose a reason for hiding this comment

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

Generally looks good, only minor issues

cli/cmd/serve.go Outdated Show resolved Hide resolved
protos/volumes/v1/volumes.pb.go Outdated Show resolved Hide resolved
protos/volumes/v1/volumes.proto Outdated Show resolved Hide resolved
protos/volumes/v1/volumes.proto Outdated Show resolved Hide resolved
server/proxy/volumes.go Outdated Show resolved Hide resolved
server/proxy/volumes.go Outdated Show resolved Hide resolved
@gtardif gtardif force-pushed the volumes-grpc branch 3 times, most recently from 88d9a85 to 4838da9 Compare September 28, 2020 12:35
server/proxy/volumes.go Outdated Show resolved Hide resolved
return nil, errors.Wrapf(errdefs.ErrNotImplemented, "volume API only available in ACI context")
}
aciReq := req.GetAciOption()
if aciReq == nil {
Copy link
Contributor

Choose a reason for hiding this comment

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

This check should be in the backend too no?

Copy link
Contributor Author

@gtardif gtardif Sep 28, 2020

Choose a reason for hiding this comment

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

Actually we need to read the gRPC param and convert it into params for the backend. We can just pass an empty storage account by default and let the backend return the error, that would avoid different errors for different code paths, yes.

…cific parameters, proxy volume creation

Signed-off-by: Guillaume Tardif <guillaume.tardif@docker.com>
@@ -36,9 +36,12 @@ var (
"/com.docker.api.protos.containers.v1.Containers/Kill": "kill",
"/com.docker.api.protos.containers.v1.Containers/Inspect": "inspect",
"/com.docker.api.protos.containers.v1.Containers/Logs": "logs",
"/com.docker.api.protos.streams.v1.Streaming/NewStream": "",
"/com.docker.api.protos.streams.v1.Streaming/NewStream": "streaming",
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I just didn't want to let this empty, if anyone calls this, we'll see something we can follow in the metrics

Copy link
Contributor

@rumpl rumpl left a comment

Choose a reason for hiding this comment

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

LGTM

@gtardif gtardif merged commit 50c80b8 into docker-archive:main Sep 28, 2020
@gtardif gtardif deleted the volumes-grpc branch December 2, 2020 16:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli cli
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants