BUILD 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
  2. go_library(
  3. name = "go_default_library",
  4. srcs = [
  5. "config.go",
  6. "dynamic.go",
  7. "flags.go",
  8. "kubelet.go",
  9. ],
  10. importpath = "k8s.io/kubernetes/cmd/kubeadm/app/phases/kubelet",
  11. visibility = ["//visibility:public"],
  12. deps = [
  13. "//cmd/kubeadm/app/apis/kubeadm:go_default_library",
  14. "//cmd/kubeadm/app/componentconfigs:go_default_library",
  15. "//cmd/kubeadm/app/constants:go_default_library",
  16. "//cmd/kubeadm/app/features:go_default_library",
  17. "//cmd/kubeadm/app/images:go_default_library",
  18. "//cmd/kubeadm/app/util:go_default_library",
  19. "//cmd/kubeadm/app/util/apiclient:go_default_library",
  20. "//cmd/kubeadm/app/util/initsystem:go_default_library",
  21. "//staging/src/k8s.io/api/core/v1:go_default_library",
  22. "//staging/src/k8s.io/api/rbac/v1:go_default_library",
  23. "//staging/src/k8s.io/apimachinery/pkg/api/errors:go_default_library",
  24. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  25. "//staging/src/k8s.io/apimachinery/pkg/util/version:go_default_library",
  26. "//staging/src/k8s.io/client-go/kubernetes:go_default_library",
  27. "//vendor/github.com/pkg/errors:go_default_library",
  28. "//vendor/k8s.io/klog:go_default_library",
  29. "//vendor/k8s.io/utils/exec:go_default_library",
  30. ],
  31. )
  32. go_test(
  33. name = "go_default_test",
  34. srcs = [
  35. "config_test.go",
  36. "dynamic_test.go",
  37. "flags_test.go",
  38. ],
  39. embed = [":go_default_library"],
  40. deps = [
  41. "//cmd/kubeadm/app/apis/kubeadm:go_default_library",
  42. "//cmd/kubeadm/app/apis/kubeadm/v1beta2:go_default_library",
  43. "//cmd/kubeadm/app/constants:go_default_library",
  44. "//cmd/kubeadm/app/util/config:go_default_library",
  45. "//staging/src/k8s.io/api/core/v1:go_default_library",
  46. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  47. "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
  48. "//staging/src/k8s.io/apimachinery/pkg/util/version:go_default_library",
  49. "//staging/src/k8s.io/client-go/kubernetes/fake:go_default_library",
  50. "//staging/src/k8s.io/client-go/testing:go_default_library",
  51. "//vendor/github.com/pkg/errors:go_default_library",
  52. "//vendor/k8s.io/utils/exec:go_default_library",
  53. ],
  54. )
  55. filegroup(
  56. name = "package-srcs",
  57. srcs = glob(["**"]),
  58. tags = ["automanaged"],
  59. visibility = ["//visibility:private"],
  60. )
  61. filegroup(
  62. name = "all-srcs",
  63. srcs = [":package-srcs"],
  64. tags = ["automanaged"],
  65. visibility = ["//visibility:public"],
  66. )