BUILD 961 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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_library(
  8. name = "go_default_library",
  9. srcs = [
  10. "namespace.go",
  11. "whitelist.go",
  12. ],
  13. importpath = "k8s.io/kubernetes/pkg/kubelet/sysctl",
  14. deps = [
  15. "//pkg/apis/core/validation:go_default_library",
  16. "//pkg/apis/policy/validation:go_default_library",
  17. "//pkg/kubelet/lifecycle:go_default_library",
  18. ],
  19. )
  20. go_test(
  21. name = "go_default_test",
  22. srcs = [
  23. "namespace_test.go",
  24. "whitelist_test.go",
  25. ],
  26. embed = [":go_default_library"],
  27. deps = ["//pkg/security/podsecuritypolicy/sysctl:go_default_library"],
  28. )
  29. filegroup(
  30. name = "package-srcs",
  31. srcs = glob(["**"]),
  32. tags = ["automanaged"],
  33. visibility = ["//visibility:private"],
  34. )
  35. filegroup(
  36. name = "all-srcs",
  37. srcs = [":package-srcs"],
  38. tags = ["automanaged"],
  39. )