
This also incorporates the version string into the package name so that incompatibile versions will fail to connect. Arbitrary choices: - The proto3 package name is runtime.v1alpha2. The proto compiler normally translates this to a go package of "runtime_v1alpha2", but I renamed it to "v1alpha2" for consistency with existing packages. - kubelet/apis/cri is used as "internalapi". I left it alone and put the public "runtimeapi" in kubelet/apis/cri/runtime.
76 lines
2.0 KiB
Python
76 lines
2.0 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
licenses(["notice"])
|
|
|
|
load(
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
"go_library",
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"doc.go",
|
|
"fake_image_service.go",
|
|
"fake_runtime.go",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"endpoint.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
|
"endpoint.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:dragonfly": [
|
|
"endpoint.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd": [
|
|
"endpoint.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"endpoint.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:nacl": [
|
|
"endpoint.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd": [
|
|
"endpoint.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd": [
|
|
"endpoint.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:plan9": [
|
|
"endpoint.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:solaris": [
|
|
"endpoint.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:windows": [
|
|
"endpoint_windows.go",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
importpath = "k8s.io/kubernetes/pkg/kubelet/remote/fake",
|
|
tags = ["automanaged"],
|
|
deps = [
|
|
"//pkg/kubelet/apis/cri/runtime/v1alpha2:go_default_library",
|
|
"//pkg/kubelet/apis/cri/testing:go_default_library",
|
|
"//pkg/kubelet/util:go_default_library",
|
|
"//vendor/golang.org/x/net/context:go_default_library",
|
|
"//vendor/google.golang.org/grpc:go_default_library",
|
|
"//vendor/k8s.io/utils/exec:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
)
|