BUILD 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. load("@io_bazel_rules_go//go:def.bzl", "go_test")
  2. load("@io_k8s_repo_infra//defs:pkg.bzl", "pkg_tar")
  3. load("@io_k8s_repo_infra//defs:build.bzl", "release_filegroup")
  4. go_test(
  5. name = "go_default_test",
  6. srcs = [
  7. "apiserver_manifest_test.go",
  8. "configure_helper_test.go",
  9. ],
  10. data = [
  11. ":scripts-test-data",
  12. "//cluster/gce/manifests",
  13. ],
  14. deps = [
  15. "//pkg/api/legacyscheme:go_default_library",
  16. "//staging/src/k8s.io/api/core/v1:go_default_library",
  17. "//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
  18. ],
  19. )
  20. # Having the COS code from the GCE cluster deploy hosted with the release is
  21. # useful for GKE. This list should match the list in
  22. # kubernetes/release/lib/releaselib.sh.
  23. release_filegroup(
  24. name = "gcs-release-artifacts",
  25. srcs = [
  26. "configure.sh",
  27. "master.yaml",
  28. "node.yaml",
  29. "shutdown.sh",
  30. ],
  31. visibility = ["//visibility:public"],
  32. )
  33. pkg_tar(
  34. name = "gci-trusty-manifests",
  35. srcs = glob(["gke-internal-configure-helper.sh"]),
  36. files = {
  37. "//cluster/gce/gci/mounter": "gci-mounter",
  38. "configure-helper.sh": "gci-configure-helper.sh",
  39. "health-monitor.sh": "health-monitor.sh",
  40. },
  41. mode = "0755",
  42. strip_prefix = ".",
  43. visibility = ["//visibility:public"],
  44. )
  45. filegroup(
  46. name = "package-srcs",
  47. srcs = glob(["**"]),
  48. tags = ["automanaged"],
  49. visibility = ["//visibility:private"],
  50. )
  51. filegroup(
  52. name = "all-srcs",
  53. srcs = [
  54. ":package-srcs",
  55. "//cluster/gce/gci/mounter:all-srcs",
  56. ],
  57. tags = ["automanaged"],
  58. visibility = ["//visibility:public"],
  59. )
  60. filegroup(
  61. name = "scripts-test-data",
  62. srcs = [
  63. "configure-helper.sh",
  64. ],
  65. )