2019-01-12 04:58:27 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"cgroup_manager_linux.go",
|
|
|
|
"cgroup_manager_unsupported.go",
|
|
|
|
"container_manager.go",
|
|
|
|
"container_manager_linux.go",
|
|
|
|
"container_manager_stub.go",
|
|
|
|
"container_manager_unsupported.go",
|
|
|
|
"container_manager_windows.go",
|
|
|
|
"fake_internal_container_lifecycle.go",
|
|
|
|
"helpers.go",
|
|
|
|
"helpers_linux.go",
|
|
|
|
"helpers_unsupported.go",
|
|
|
|
"internal_container_lifecycle.go",
|
|
|
|
"node_container_manager_linux.go",
|
|
|
|
"pod_container_manager_linux.go",
|
|
|
|
"pod_container_manager_stub.go",
|
|
|
|
"pod_container_manager_unsupported.go",
|
|
|
|
"qos_container_manager_linux.go",
|
|
|
|
"types.go",
|
|
|
|
],
|
|
|
|
importpath = "k8s.io/kubernetes/pkg/kubelet/cm",
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/features:go_default_library",
|
|
|
|
"//pkg/kubelet/apis/podresources/v1alpha1:go_default_library",
|
|
|
|
"//pkg/kubelet/cm/cpumanager:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//pkg/kubelet/cm/cpuset:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//pkg/kubelet/cm/topologymanager:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/kubelet/config:go_default_library",
|
|
|
|
"//pkg/kubelet/container:go_default_library",
|
|
|
|
"//pkg/kubelet/eviction/api:go_default_library",
|
|
|
|
"//pkg/kubelet/lifecycle:go_default_library",
|
2019-08-30 18:33:25 +00:00
|
|
|
"//pkg/kubelet/pluginmanager/cache:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/kubelet/status:go_default_library",
|
2019-04-07 17:07:55 +00:00
|
|
|
"//pkg/scheduler/nodeinfo:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
2019-08-30 18:33:25 +00:00
|
|
|
"//staging/src/k8s.io/cri-api/pkg/apis:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//vendor/k8s.io/klog:go_default_library",
|
|
|
|
] + select({
|
|
|
|
"@io_bazel_rules_go//go/platform:android": [
|
2019-12-12 01:27:03 +00:00
|
|
|
"//pkg/api/v1/resource:go_default_library",
|
|
|
|
"//pkg/apis/core/v1/helper:go_default_library",
|
|
|
|
"//pkg/apis/core/v1/helper/qos:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//pkg/kubelet/cm/cpumanager/topology:go_default_library",
|
|
|
|
"//pkg/kubelet/cm/devicemanager:go_default_library",
|
|
|
|
"//pkg/kubelet/cm/util:go_default_library",
|
|
|
|
"//pkg/kubelet/events:go_default_library",
|
|
|
|
"//pkg/kubelet/metrics:go_default_library",
|
|
|
|
"//pkg/kubelet/qos:go_default_library",
|
|
|
|
"//pkg/kubelet/stats/pidlimit:go_default_library",
|
|
|
|
"//pkg/kubelet/types:go_default_library",
|
|
|
|
"//pkg/util/oom:go_default_library",
|
|
|
|
"//pkg/util/procfs:go_default_library",
|
|
|
|
"//pkg/util/sysctl:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/version:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/github.com/docker/go-units:go_default_library",
|
|
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/cgroups:go_default_library",
|
|
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs:go_default_library",
|
|
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd:go_default_library",
|
|
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/configs:go_default_library",
|
|
|
|
"//vendor/k8s.io/utils/io:go_default_library",
|
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
|
|
|
"//vendor/k8s.io/utils/path:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:dragonfly": [
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:freebsd": [
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:ios": [
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
|
|
"//pkg/api/v1/resource:go_default_library",
|
|
|
|
"//pkg/apis/core/v1/helper:go_default_library",
|
|
|
|
"//pkg/apis/core/v1/helper/qos:go_default_library",
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//pkg/kubelet/cm/cpumanager/topology:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/kubelet/cm/devicemanager:go_default_library",
|
|
|
|
"//pkg/kubelet/cm/util:go_default_library",
|
|
|
|
"//pkg/kubelet/events:go_default_library",
|
|
|
|
"//pkg/kubelet/metrics:go_default_library",
|
|
|
|
"//pkg/kubelet/qos:go_default_library",
|
2019-04-07 17:07:55 +00:00
|
|
|
"//pkg/kubelet/stats/pidlimit:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/kubelet/types:go_default_library",
|
|
|
|
"//pkg/util/oom:go_default_library",
|
|
|
|
"//pkg/util/procfs:go_default_library",
|
|
|
|
"//pkg/util/sysctl:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/version:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
|
|
|
"//vendor/github.com/docker/go-units:go_default_library",
|
|
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/cgroups:go_default_library",
|
|
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/cgroups/fs:go_default_library",
|
|
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/cgroups/systemd:go_default_library",
|
|
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/configs:go_default_library",
|
2019-08-30 18:33:25 +00:00
|
|
|
"//vendor/k8s.io/utils/io:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-04-07 17:07:55 +00:00
|
|
|
"//vendor/k8s.io/utils/path:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:nacl": [
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:netbsd": [
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:openbsd": [
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:plan9": [
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:solaris": [
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"@io_bazel_rules_go//go/platform:windows": [
|
|
|
|
"//pkg/kubelet/cadvisor:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"cgroup_manager_linux_test.go",
|
|
|
|
"cgroup_manager_test.go",
|
|
|
|
"container_manager_linux_test.go",
|
|
|
|
"helpers_linux_test.go",
|
|
|
|
"node_container_manager_linux_test.go",
|
|
|
|
"pod_container_manager_linux_test.go",
|
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = select({
|
2019-12-12 01:27:03 +00:00
|
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
|
|
"//pkg/features:go_default_library",
|
|
|
|
"//pkg/kubelet/eviction/api:go_default_library",
|
|
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
|
|
"//staging/src/k8s.io/component-base/featuregate/testing:go_default_library",
|
|
|
|
"//vendor/github.com/stretchr/testify/assert:go_default_library",
|
|
|
|
"//vendor/github.com/stretchr/testify/require:go_default_library",
|
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
|
|
|
],
|
2019-01-12 04:58:27 +00:00
|
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
|
|
"//pkg/features:go_default_library",
|
|
|
|
"//pkg/kubelet/eviction/api:go_default_library",
|
|
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
2019-08-30 18:33:25 +00:00
|
|
|
"//staging/src/k8s.io/component-base/featuregate/testing:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//vendor/github.com/stretchr/testify/assert:go_default_library",
|
|
|
|
"//vendor/github.com/stretchr/testify/require:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [
|
|
|
|
":package-srcs",
|
|
|
|
"//pkg/kubelet/cm/cpumanager:all-srcs",
|
|
|
|
"//pkg/kubelet/cm/cpuset:all-srcs",
|
|
|
|
"//pkg/kubelet/cm/devicemanager:all-srcs",
|
2019-08-30 18:33:25 +00:00
|
|
|
"//pkg/kubelet/cm/topologymanager:all-srcs",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/kubelet/cm/util:all-srcs",
|
|
|
|
],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|