BUILD 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "cpu_assignment.go",
  6. "cpu_manager.go",
  7. "fake_cpu_manager.go",
  8. "policy.go",
  9. "policy_none.go",
  10. "policy_static.go",
  11. ],
  12. importpath = "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager",
  13. visibility = ["//visibility:public"],
  14. deps = [
  15. "//pkg/apis/core/v1/helper/qos:go_default_library",
  16. "//pkg/kubelet/cm/cpumanager/containermap:go_default_library",
  17. "//pkg/kubelet/cm/cpumanager/state:go_default_library",
  18. "//pkg/kubelet/cm/cpumanager/topology:go_default_library",
  19. "//pkg/kubelet/cm/cpuset:go_default_library",
  20. "//pkg/kubelet/cm/topologymanager:go_default_library",
  21. "//pkg/kubelet/cm/topologymanager/bitmask:go_default_library",
  22. "//pkg/kubelet/config:go_default_library",
  23. "//pkg/kubelet/container:go_default_library",
  24. "//pkg/kubelet/status:go_default_library",
  25. "//staging/src/k8s.io/api/core/v1:go_default_library",
  26. "//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
  27. "//staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2:go_default_library",
  28. "//vendor/github.com/google/cadvisor/info/v1:go_default_library",
  29. "//vendor/k8s.io/klog:go_default_library",
  30. ],
  31. )
  32. go_test(
  33. name = "go_default_test",
  34. srcs = [
  35. "cpu_assignment_test.go",
  36. "cpu_manager_test.go",
  37. "policy_none_test.go",
  38. "policy_static_test.go",
  39. "policy_test.go",
  40. "topology_hints_test.go",
  41. ],
  42. embed = [":go_default_library"],
  43. deps = [
  44. "//pkg/kubelet/cm/cpumanager/containermap:go_default_library",
  45. "//pkg/kubelet/cm/cpumanager/state:go_default_library",
  46. "//pkg/kubelet/cm/cpumanager/topology:go_default_library",
  47. "//pkg/kubelet/cm/cpuset:go_default_library",
  48. "//pkg/kubelet/cm/topologymanager:go_default_library",
  49. "//pkg/kubelet/cm/topologymanager/bitmask:go_default_library",
  50. "//staging/src/k8s.io/api/core/v1:go_default_library",
  51. "//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
  52. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  53. "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
  54. "//staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2:go_default_library",
  55. "//vendor/github.com/google/cadvisor/info/v1:go_default_library",
  56. ],
  57. )
  58. filegroup(
  59. name = "package-srcs",
  60. srcs = glob(["**"]),
  61. tags = ["automanaged"],
  62. visibility = ["//visibility:private"],
  63. )
  64. filegroup(
  65. name = "all-srcs",
  66. srcs = [
  67. ":package-srcs",
  68. "//pkg/kubelet/cm/cpumanager/containermap:all-srcs",
  69. "//pkg/kubelet/cm/cpumanager/state:all-srcs",
  70. "//pkg/kubelet/cm/cpumanager/topology:all-srcs",
  71. ],
  72. tags = ["automanaged"],
  73. visibility = ["//visibility:public"],
  74. )