BUILD 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. package(default_visibility = ["//visibility:public"])
  2. load(
  3. "@io_bazel_rules_go//go:def.bzl",
  4. "go_library",
  5. "go_test",
  6. )
  7. go_test(
  8. name = "go_default_test",
  9. srcs = [
  10. "eviction_manager_test.go",
  11. "helpers_test.go",
  12. "memory_threshold_notifier_test.go",
  13. "mock_threshold_notifier_test.go",
  14. ],
  15. embed = [":go_default_library"],
  16. deps = [
  17. "//pkg/apis/core:go_default_library",
  18. "//pkg/apis/scheduling:go_default_library",
  19. "//pkg/features:go_default_library",
  20. "//pkg/kubelet/apis/stats/v1alpha1:go_default_library",
  21. "//pkg/kubelet/eviction/api:go_default_library",
  22. "//pkg/kubelet/lifecycle:go_default_library",
  23. "//pkg/kubelet/types:go_default_library",
  24. "//staging/src/k8s.io/api/core/v1:go_default_library",
  25. "//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
  26. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  27. "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
  28. "//staging/src/k8s.io/apimachinery/pkg/util/clock:go_default_library",
  29. "//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
  30. "//staging/src/k8s.io/client-go/tools/record:go_default_library",
  31. "//staging/src/k8s.io/component-base/featuregate/testing:go_default_library",
  32. "//vendor/github.com/stretchr/testify/mock:go_default_library",
  33. ],
  34. )
  35. go_library(
  36. name = "go_default_library",
  37. srcs = [
  38. "doc.go",
  39. "eviction_manager.go",
  40. "helpers.go",
  41. "memory_threshold_notifier.go",
  42. "threshold_notifier_linux.go",
  43. "threshold_notifier_unsupported.go",
  44. "types.go",
  45. ],
  46. importpath = "k8s.io/kubernetes/pkg/kubelet/eviction",
  47. deps = [
  48. "//pkg/api/v1/pod:go_default_library",
  49. "//pkg/api/v1/resource:go_default_library",
  50. "//pkg/apis/core/v1/helper:go_default_library",
  51. "//pkg/apis/core/v1/helper/qos:go_default_library",
  52. "//pkg/features:go_default_library",
  53. "//pkg/kubelet/apis/stats/v1alpha1:go_default_library",
  54. "//pkg/kubelet/cm:go_default_library",
  55. "//pkg/kubelet/eviction/api:go_default_library",
  56. "//pkg/kubelet/lifecycle:go_default_library",
  57. "//pkg/kubelet/metrics:go_default_library",
  58. "//pkg/kubelet/server/stats:go_default_library",
  59. "//pkg/kubelet/types:go_default_library",
  60. "//pkg/kubelet/util/format:go_default_library",
  61. "//pkg/volume/util:go_default_library",
  62. "//staging/src/k8s.io/api/core/v1:go_default_library",
  63. "//staging/src/k8s.io/apimachinery/pkg/api/resource:go_default_library",
  64. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  65. "//staging/src/k8s.io/apimachinery/pkg/util/clock:go_default_library",
  66. "//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
  67. "//staging/src/k8s.io/client-go/tools/record:go_default_library",
  68. "//vendor/k8s.io/klog:go_default_library",
  69. ] + select({
  70. "@io_bazel_rules_go//go/platform:android": [
  71. "//vendor/golang.org/x/sys/unix:go_default_library",
  72. ],
  73. "@io_bazel_rules_go//go/platform:linux": [
  74. "//vendor/golang.org/x/sys/unix:go_default_library",
  75. ],
  76. "//conditions:default": [],
  77. }),
  78. )
  79. filegroup(
  80. name = "package-srcs",
  81. srcs = glob(["**"]),
  82. tags = ["automanaged"],
  83. visibility = ["//visibility:private"],
  84. )
  85. filegroup(
  86. name = "all-srcs",
  87. srcs = [
  88. ":package-srcs",
  89. "//pkg/kubelet/eviction/api:all-srcs",
  90. ],
  91. tags = ["automanaged"],
  92. )