diff options
author | Fabricio Voznika <fvoznika@google.com> | 2021-10-25 13:13:56 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-10-25 13:17:25 -0700 |
commit | 9262ea47a5d93d44b14f298663982b75ed2e4898 (patch) | |
tree | a7f1c8e67d9c3180e30f309186e63a83aa099449 /pkg/shim/runtimeoptions/v14/BUILD | |
parent | 7c267106d1d7d162d6204e6b0402d3063b1bf468 (diff) |
Add support for containerd 1.5
"cri.runtimeoptions.v1" moved to "runtimeoptions.v1" and containerd
configuration format version 2 is required.
Updates #6449
PiperOrigin-RevId: 405474653
Diffstat (limited to 'pkg/shim/runtimeoptions/v14/BUILD')
-rw-r--r-- | pkg/shim/runtimeoptions/v14/BUILD | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkg/shim/runtimeoptions/v14/BUILD b/pkg/shim/runtimeoptions/v14/BUILD new file mode 100644 index 000000000..e25716eca --- /dev/null +++ b/pkg/shim/runtimeoptions/v14/BUILD @@ -0,0 +1,32 @@ +load("//tools:defs.bzl", "go_library", "go_test", "proto_library") + +package(licenses = ["notice"]) + +proto_library( + name = "api", + srcs = [ + "runtimeoptions.proto", + ], +) + +go_library( + name = "v14", + srcs = [ + "runtimeoptions.go", + "runtimeoptions_cri.go", + ], + visibility = ["//pkg/shim:__pkg__"], + deps = ["@com_github_gogo_protobuf//proto:go_default_library"], +) + +go_test( + name = "runtimeoptions_test", + size = "small", + srcs = ["runtimeoptions_test.go"], + library = ":v14", + deps = [ + "@com_github_containerd_containerd//runtime/v1/shim/v1:go_default_library", + "@com_github_containerd_typeurl//:go_default_library", + "@com_github_gogo_protobuf//proto:go_default_library", + ], +) |