2018-03-06 22:33:18 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
2018-01-09 18:57:14 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"convert.go",
|
|
|
|
"doc.go",
|
|
|
|
"docker_checkpoint.go",
|
|
|
|
"docker_container.go",
|
|
|
|
"docker_image.go",
|
2018-11-26 18:23:56 +00:00
|
|
|
"docker_image_linux.go",
|
|
|
|
"docker_image_unsupported.go",
|
|
|
|
"docker_image_windows.go",
|
2018-03-06 22:33:18 +00:00
|
|
|
"docker_legacy_service.go",
|
|
|
|
"docker_logs.go",
|
2018-01-09 18:57:14 +00:00
|
|
|
"docker_sandbox.go",
|
|
|
|
"docker_service.go",
|
2018-11-26 18:23:56 +00:00
|
|
|
"docker_stats_linux.go",
|
|
|
|
"docker_stats_unsupported.go",
|
|
|
|
"docker_stats_windows.go",
|
2018-01-09 18:57:14 +00:00
|
|
|
"docker_streaming.go",
|
|
|
|
"exec.go",
|
|
|
|
"helpers.go",
|
2018-11-26 18:23:56 +00:00
|
|
|
"helpers_linux.go",
|
|
|
|
"helpers_unsupported.go",
|
|
|
|
"helpers_windows.go",
|
2018-01-09 18:57:14 +00:00
|
|
|
"naming.go",
|
|
|
|
"security_context.go",
|
|
|
|
"selinux_util.go",
|
2018-11-26 18:23:56 +00:00
|
|
|
],
|
2018-01-09 18:57:14 +00:00
|
|
|
importpath = "k8s.io/kubernetes/pkg/kubelet/dockershim",
|
2018-03-06 22:33:18 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2018-01-09 18:57:14 +00:00
|
|
|
deps = [
|
|
|
|
"//pkg/credentialprovider:go_default_library",
|
2018-11-26 18:23:56 +00:00
|
|
|
"//pkg/kubelet/apis/config:go_default_library",
|
2018-03-06 22:33:18 +00:00
|
|
|
"//pkg/kubelet/apis/cri/runtime/v1alpha2:go_default_library",
|
2018-07-18 14:47:22 +00:00
|
|
|
"//pkg/kubelet/checkpointmanager:go_default_library",
|
|
|
|
"//pkg/kubelet/checkpointmanager/checksum:go_default_library",
|
|
|
|
"//pkg/kubelet/checkpointmanager/errors:go_default_library",
|
2018-01-09 18:57:14 +00:00
|
|
|
"//pkg/kubelet/container:go_default_library",
|
|
|
|
"//pkg/kubelet/dockershim/cm:go_default_library",
|
|
|
|
"//pkg/kubelet/dockershim/libdocker:go_default_library",
|
|
|
|
"//pkg/kubelet/dockershim/metrics:go_default_library",
|
2018-07-18 14:47:22 +00:00
|
|
|
"//pkg/kubelet/dockershim/network:go_default_library",
|
|
|
|
"//pkg/kubelet/dockershim/network/cni:go_default_library",
|
|
|
|
"//pkg/kubelet/dockershim/network/hostport:go_default_library",
|
|
|
|
"//pkg/kubelet/dockershim/network/kubenet:go_default_library",
|
2018-03-06 22:33:18 +00:00
|
|
|
"//pkg/kubelet/kuberuntime:go_default_library",
|
2018-01-09 18:57:14 +00:00
|
|
|
"//pkg/kubelet/leaky:go_default_library",
|
|
|
|
"//pkg/kubelet/qos:go_default_library",
|
|
|
|
"//pkg/kubelet/server/streaming:go_default_library",
|
|
|
|
"//pkg/kubelet/types:go_default_library",
|
|
|
|
"//pkg/kubelet/util/cache:go_default_library",
|
|
|
|
"//pkg/kubelet/util/ioutils:go_default_library",
|
|
|
|
"//pkg/security/apparmor:go_default_library",
|
|
|
|
"//pkg/util/parsers:go_default_library",
|
2018-11-26 18:23:56 +00:00
|
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/remotecommand:go_default_library",
|
2018-01-09 18:57:14 +00:00
|
|
|
"//vendor/github.com/armon/circbuf:go_default_library",
|
|
|
|
"//vendor/github.com/blang/semver:go_default_library",
|
|
|
|
"//vendor/github.com/docker/docker/api/types:go_default_library",
|
|
|
|
"//vendor/github.com/docker/docker/api/types/container:go_default_library",
|
|
|
|
"//vendor/github.com/docker/docker/api/types/filters:go_default_library",
|
|
|
|
"//vendor/github.com/docker/docker/api/types/strslice:go_default_library",
|
|
|
|
"//vendor/github.com/docker/docker/pkg/jsonmessage:go_default_library",
|
|
|
|
"//vendor/github.com/docker/go-connections/nat:go_default_library",
|
2018-11-26 18:23:56 +00:00
|
|
|
"//vendor/k8s.io/klog:go_default_library",
|
2018-03-06 22:33:18 +00:00
|
|
|
"//vendor/k8s.io/utils/exec:go_default_library",
|
|
|
|
] + select({
|
|
|
|
"@io_bazel_rules_go//go/platform:windows": [
|
|
|
|
"//pkg/kubelet/apis:go_default_library",
|
|
|
|
"//pkg/kubelet/winstats:go_default_library",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2018-01-09 18:57:14 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"convert_test.go",
|
|
|
|
"docker_checkpoint_test.go",
|
|
|
|
"docker_container_test.go",
|
|
|
|
"docker_image_test.go",
|
|
|
|
"docker_sandbox_test.go",
|
|
|
|
"docker_service_test.go",
|
2018-11-26 18:23:56 +00:00
|
|
|
"helpers_linux_test.go",
|
2018-01-09 18:57:14 +00:00
|
|
|
"helpers_test.go",
|
|
|
|
"naming_test.go",
|
|
|
|
"security_context_test.go",
|
|
|
|
"selinux_util_test.go",
|
2018-11-26 18:23:56 +00:00
|
|
|
],
|
2018-03-06 22:33:18 +00:00
|
|
|
embed = [":go_default_library"],
|
2018-01-09 18:57:14 +00:00
|
|
|
deps = [
|
2018-03-06 22:33:18 +00:00
|
|
|
"//pkg/kubelet/apis/cri/runtime/v1alpha2:go_default_library",
|
2018-07-18 14:47:22 +00:00
|
|
|
"//pkg/kubelet/checkpointmanager:go_default_library",
|
2018-01-09 18:57:14 +00:00
|
|
|
"//pkg/kubelet/container:go_default_library",
|
|
|
|
"//pkg/kubelet/container/testing:go_default_library",
|
|
|
|
"//pkg/kubelet/dockershim/libdocker:go_default_library",
|
2018-07-18 14:47:22 +00:00
|
|
|
"//pkg/kubelet/dockershim/network:go_default_library",
|
|
|
|
"//pkg/kubelet/dockershim/network/testing:go_default_library",
|
2018-01-09 18:57:14 +00:00
|
|
|
"//pkg/kubelet/types:go_default_library",
|
|
|
|
"//pkg/kubelet/util/cache:go_default_library",
|
|
|
|
"//pkg/security/apparmor:go_default_library",
|
2018-11-26 18:23:56 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/clock:go_default_library",
|
2018-01-09 18:57:14 +00:00
|
|
|
"//vendor/github.com/blang/semver:go_default_library",
|
|
|
|
"//vendor/github.com/docker/docker/api/types:go_default_library",
|
|
|
|
"//vendor/github.com/docker/docker/api/types/container:go_default_library",
|
|
|
|
"//vendor/github.com/docker/docker/pkg/jsonmessage:go_default_library",
|
|
|
|
"//vendor/github.com/docker/go-connections/nat:go_default_library",
|
|
|
|
"//vendor/github.com/golang/mock/gomock:go_default_library",
|
|
|
|
"//vendor/github.com/stretchr/testify/assert:go_default_library",
|
|
|
|
"//vendor/github.com/stretchr/testify/require:go_default_library",
|
2018-07-18 14:47:22 +00:00
|
|
|
] + select({
|
|
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
2018-11-26 18:23:56 +00:00
|
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
2018-07-18 14:47:22 +00:00
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2018-01-09 18:57:14 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [
|
|
|
|
":package-srcs",
|
|
|
|
"//pkg/kubelet/dockershim/cm:all-srcs",
|
|
|
|
"//pkg/kubelet/dockershim/libdocker:all-srcs",
|
|
|
|
"//pkg/kubelet/dockershim/metrics:all-srcs",
|
2018-07-18 14:47:22 +00:00
|
|
|
"//pkg/kubelet/dockershim/network:all-srcs",
|
2018-01-09 18:57:14 +00:00
|
|
|
"//pkg/kubelet/dockershim/remote:all-srcs",
|
|
|
|
],
|
|
|
|
tags = ["automanaged"],
|
2018-03-06 22:33:18 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2018-01-09 18:57:14 +00:00
|
|
|
)
|