BUILD 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = ["pvc_protection_controller.go"],
  5. importpath = "k8s.io/kubernetes/pkg/controller/volume/pvcprotection",
  6. visibility = ["//visibility:public"],
  7. deps = [
  8. "//pkg/controller/volume/protectionutil:go_default_library",
  9. "//pkg/util/slice:go_default_library",
  10. "//pkg/volume/util:go_default_library",
  11. "//staging/src/k8s.io/api/core/v1:go_default_library",
  12. "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library",
  13. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  14. "//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
  15. "//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
  16. "//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
  17. "//staging/src/k8s.io/client-go/informers/core/v1:go_default_library",
  18. "//staging/src/k8s.io/client-go/kubernetes:go_default_library",
  19. "//staging/src/k8s.io/client-go/listers/core/v1:go_default_library",
  20. "//staging/src/k8s.io/client-go/tools/cache:go_default_library",
  21. "//staging/src/k8s.io/client-go/util/workqueue:go_default_library",
  22. "//staging/src/k8s.io/component-base/metrics/prometheus/ratelimiter:go_default_library",
  23. "//vendor/k8s.io/klog:go_default_library",
  24. ],
  25. )
  26. go_test(
  27. name = "go_default_test",
  28. srcs = ["pvc_protection_controller_test.go"],
  29. embed = [":go_default_library"],
  30. deps = [
  31. "//pkg/controller:go_default_library",
  32. "//pkg/volume/util:go_default_library",
  33. "//staging/src/k8s.io/api/core/v1:go_default_library",
  34. "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library",
  35. "//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library",
  36. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  37. "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
  38. "//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
  39. "//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
  40. "//staging/src/k8s.io/client-go/informers:go_default_library",
  41. "//staging/src/k8s.io/client-go/kubernetes/fake:go_default_library",
  42. "//staging/src/k8s.io/client-go/testing:go_default_library",
  43. "//vendor/github.com/davecgh/go-spew/spew:go_default_library",
  44. "//vendor/k8s.io/klog:go_default_library",
  45. ],
  46. )
  47. filegroup(
  48. name = "package-srcs",
  49. srcs = glob(["**"]),
  50. tags = ["automanaged"],
  51. visibility = ["//visibility:private"],
  52. )
  53. filegroup(
  54. name = "all-srcs",
  55. srcs = [":package-srcs"],
  56. tags = ["automanaged"],
  57. visibility = ["//visibility:public"],
  58. )