summaryrefslogtreecommitdiffhomepage
path: root/pkg/v2/service.go
diff options
context:
space:
mode:
authorLantao Liu <lantaol@google.com>2019-10-09 15:57:05 -0700
committerGitHub <noreply@github.com>2019-10-09 15:57:05 -0700
commitf299b553afdd8455a0057862004061ea12e660f5 (patch)
treef1ea4ffe1b4c4719e79493c2321ff9313a328b52 /pkg/v2/service.go
parent3168afab03d52e160f6accaeea8d4ed304c1aba1 (diff)
Support volume annotations (#40)
* Add volume annotation support Signed-off-by: Lantao Liu <lantaol@google.com> * Add unit test. Signed-off-by: Lantao Liu <lantaol@google.com>
Diffstat (limited to 'pkg/v2/service.go')
-rw-r--r--pkg/v2/service.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/v2/service.go b/pkg/v2/service.go
index 63a2f0da6..eade660c9 100644
--- a/pkg/v2/service.go
+++ b/pkg/v2/service.go
@@ -709,6 +709,9 @@ func newInit(ctx context.Context, path, workDir, namespace string, platform rpro
if err != nil {
return nil, errors.Wrap(err, "read oci spec")
}
+ if err := utils.UpdateVolumeAnnotations(r.Bundle, spec); err != nil {
+ return nil, errors.Wrap(err, "update volume annotations")
+ }
runsc.FormatLogPath(r.ID, options.RunscConfig)
runtime := proc.NewRunsc(options.Root, path, namespace, options.BinaryName, options.RunscConfig)
p := proc.New(r.ID, runtime, rproc.Stdio{