BUILD 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "checkpoint.go",
  6. "state.go",
  7. "state_checkpoint.go",
  8. "state_file.go",
  9. "state_mem.go",
  10. ],
  11. importpath = "k8s.io/kubernetes/pkg/kubelet/cm/cpumanager/state",
  12. visibility = ["//visibility:public"],
  13. deps = [
  14. "//pkg/kubelet/checkpointmanager:go_default_library",
  15. "//pkg/kubelet/checkpointmanager/checksum:go_default_library",
  16. "//pkg/kubelet/checkpointmanager/errors:go_default_library",
  17. "//pkg/kubelet/cm/cpumanager/containermap:go_default_library",
  18. "//pkg/kubelet/cm/cpuset:go_default_library",
  19. "//vendor/github.com/davecgh/go-spew/spew:go_default_library",
  20. "//vendor/k8s.io/klog:go_default_library",
  21. ],
  22. )
  23. go_test(
  24. name = "go_default_test",
  25. srcs = [
  26. "state_checkpoint_test.go",
  27. "state_compatibility_test.go",
  28. "state_file_test.go",
  29. ],
  30. embed = [":go_default_library"],
  31. deps = [
  32. "//pkg/kubelet/checkpointmanager:go_default_library",
  33. "//pkg/kubelet/cm/cpumanager/containermap:go_default_library",
  34. "//pkg/kubelet/cm/cpumanager/state/testing:go_default_library",
  35. "//pkg/kubelet/cm/cpuset:go_default_library",
  36. "//vendor/github.com/stretchr/testify/require:go_default_library",
  37. ],
  38. )
  39. filegroup(
  40. name = "package-srcs",
  41. srcs = glob(["**"]),
  42. tags = ["automanaged"],
  43. visibility = ["//visibility:private"],
  44. )
  45. filegroup(
  46. name = "all-srcs",
  47. srcs = [
  48. ":package-srcs",
  49. "//pkg/kubelet/cm/cpumanager/state/testing:all-srcs",
  50. ],
  51. tags = ["automanaged"],
  52. visibility = ["//visibility:public"],
  53. )