BUILD 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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 = ["token.go"],
  10. importpath = "k8s.io/kubernetes/cmd/kubeadm/app/discovery/token",
  11. deps = [
  12. "//cmd/kubeadm/app/apis/kubeadm:go_default_library",
  13. "//cmd/kubeadm/app/apis/kubeadm/v1beta2:go_default_library",
  14. "//cmd/kubeadm/app/constants:go_default_library",
  15. "//cmd/kubeadm/app/util/kubeconfig:go_default_library",
  16. "//cmd/kubeadm/app/util/pubkeypin:go_default_library",
  17. "//staging/src/k8s.io/api/core/v1:go_default_library",
  18. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  19. "//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
  20. "//staging/src/k8s.io/client-go/kubernetes:go_default_library",
  21. "//staging/src/k8s.io/client-go/tools/clientcmd:go_default_library",
  22. "//staging/src/k8s.io/client-go/tools/clientcmd/api:go_default_library",
  23. "//staging/src/k8s.io/client-go/util/cert:go_default_library",
  24. "//staging/src/k8s.io/cluster-bootstrap/token/api:go_default_library",
  25. "//staging/src/k8s.io/cluster-bootstrap/token/jws:go_default_library",
  26. "//vendor/github.com/pkg/errors:go_default_library",
  27. "//vendor/k8s.io/klog:go_default_library",
  28. ],
  29. )
  30. filegroup(
  31. name = "package-srcs",
  32. srcs = glob(["**"]),
  33. tags = ["automanaged"],
  34. visibility = ["//visibility:private"],
  35. )
  36. filegroup(
  37. name = "all-srcs",
  38. srcs = [":package-srcs"],
  39. tags = ["automanaged"],
  40. )
  41. go_test(
  42. name = "go_default_test",
  43. srcs = ["token_test.go"],
  44. embed = [":go_default_library"],
  45. deps = [
  46. "//cmd/kubeadm/app/apis/kubeadm:go_default_library",
  47. "//cmd/kubeadm/app/util/apiclient:go_default_library",
  48. "//staging/src/k8s.io/api/core/v1:go_default_library",
  49. "//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
  50. "//staging/src/k8s.io/client-go/kubernetes:go_default_library",
  51. "//staging/src/k8s.io/client-go/kubernetes/fake:go_default_library",
  52. "//staging/src/k8s.io/client-go/tools/clientcmd:go_default_library",
  53. "//staging/src/k8s.io/cluster-bootstrap/token/api:go_default_library",
  54. "//staging/src/k8s.io/cluster-bootstrap/token/jws:go_default_library",
  55. "//vendor/github.com/pmezard/go-difflib/difflib:go_default_library",
  56. ],
  57. )