BUILD 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 = ["uploadconfig.go"],
  10. importpath = "k8s.io/kubernetes/cmd/kubeadm/app/phases/uploadconfig",
  11. deps = [
  12. "//cmd/kubeadm/app/apis/kubeadm:go_default_library",
  13. "//cmd/kubeadm/app/constants:go_default_library",
  14. "//cmd/kubeadm/app/util/apiclient:go_default_library",
  15. "//cmd/kubeadm/app/util/config:go_default_library",
  16. "//staging/src/k8s.io/api/core/v1:go_default_library",
  17. "//staging/src/k8s.io/api/rbac/v1:go_default_library",
  18. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  19. "//staging/src/k8s.io/client-go/kubernetes:go_default_library",
  20. "//vendor/github.com/pkg/errors:go_default_library",
  21. "//vendor/k8s.io/klog:go_default_library",
  22. ],
  23. )
  24. filegroup(
  25. name = "package-srcs",
  26. srcs = glob(["**"]),
  27. tags = ["automanaged"],
  28. visibility = ["//visibility:private"],
  29. )
  30. filegroup(
  31. name = "all-srcs",
  32. srcs = [":package-srcs"],
  33. tags = ["automanaged"],
  34. )
  35. go_test(
  36. name = "go_default_test",
  37. srcs = ["uploadconfig_test.go"],
  38. embed = [":go_default_library"],
  39. deps = [
  40. "//cmd/kubeadm/app/apis/kubeadm:go_default_library",
  41. "//cmd/kubeadm/app/apis/kubeadm/scheme: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/api/errors:go_default_library",
  47. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  48. "//staging/src/k8s.io/apimachinery/pkg/runtime: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. ],
  52. )