BUILD 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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 = [
  10. "kubenet.go",
  11. "kubenet_linux.go",
  12. "kubenet_unsupported.go",
  13. ],
  14. importpath = "k8s.io/kubernetes/pkg/kubelet/dockershim/network/kubenet",
  15. deps = select({
  16. "@io_bazel_rules_go//go/platform:android": [
  17. "//pkg/features:go_default_library",
  18. "//pkg/kubelet/apis/config:go_default_library",
  19. "//pkg/kubelet/container:go_default_library",
  20. "//pkg/kubelet/dockershim/network:go_default_library",
  21. "//pkg/kubelet/dockershim/network/hostport:go_default_library",
  22. "//pkg/util/bandwidth:go_default_library",
  23. "//pkg/util/ebtables:go_default_library",
  24. "//pkg/util/iptables:go_default_library",
  25. "//pkg/util/sysctl:go_default_library",
  26. "//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
  27. "//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
  28. "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
  29. "//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
  30. "//vendor/github.com/containernetworking/cni/libcni:go_default_library",
  31. "//vendor/github.com/containernetworking/cni/pkg/types:go_default_library",
  32. "//vendor/github.com/containernetworking/cni/pkg/types/020:go_default_library",
  33. "//vendor/github.com/vishvananda/netlink:go_default_library",
  34. "//vendor/golang.org/x/sys/unix:go_default_library",
  35. "//vendor/k8s.io/klog:go_default_library",
  36. "//vendor/k8s.io/utils/exec:go_default_library",
  37. "//vendor/k8s.io/utils/net:go_default_library",
  38. ],
  39. "@io_bazel_rules_go//go/platform:darwin": [
  40. "//pkg/kubelet/apis/config:go_default_library",
  41. "//pkg/kubelet/container:go_default_library",
  42. "//pkg/kubelet/dockershim/network:go_default_library",
  43. ],
  44. "@io_bazel_rules_go//go/platform:dragonfly": [
  45. "//pkg/kubelet/apis/config:go_default_library",
  46. "//pkg/kubelet/container:go_default_library",
  47. "//pkg/kubelet/dockershim/network:go_default_library",
  48. ],
  49. "@io_bazel_rules_go//go/platform:freebsd": [
  50. "//pkg/kubelet/apis/config:go_default_library",
  51. "//pkg/kubelet/container:go_default_library",
  52. "//pkg/kubelet/dockershim/network:go_default_library",
  53. ],
  54. "@io_bazel_rules_go//go/platform:ios": [
  55. "//pkg/kubelet/apis/config:go_default_library",
  56. "//pkg/kubelet/container:go_default_library",
  57. "//pkg/kubelet/dockershim/network:go_default_library",
  58. ],
  59. "@io_bazel_rules_go//go/platform:linux": [
  60. "//pkg/features:go_default_library",
  61. "//pkg/kubelet/apis/config:go_default_library",
  62. "//pkg/kubelet/container:go_default_library",
  63. "//pkg/kubelet/dockershim/network:go_default_library",
  64. "//pkg/kubelet/dockershim/network/hostport:go_default_library",
  65. "//pkg/util/bandwidth:go_default_library",
  66. "//pkg/util/ebtables:go_default_library",
  67. "//pkg/util/iptables:go_default_library",
  68. "//pkg/util/sysctl:go_default_library",
  69. "//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
  70. "//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
  71. "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
  72. "//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
  73. "//vendor/github.com/containernetworking/cni/libcni:go_default_library",
  74. "//vendor/github.com/containernetworking/cni/pkg/types:go_default_library",
  75. "//vendor/github.com/containernetworking/cni/pkg/types/020:go_default_library",
  76. "//vendor/github.com/vishvananda/netlink:go_default_library",
  77. "//vendor/golang.org/x/sys/unix:go_default_library",
  78. "//vendor/k8s.io/klog:go_default_library",
  79. "//vendor/k8s.io/utils/exec:go_default_library",
  80. "//vendor/k8s.io/utils/net:go_default_library",
  81. ],
  82. "@io_bazel_rules_go//go/platform:nacl": [
  83. "//pkg/kubelet/apis/config:go_default_library",
  84. "//pkg/kubelet/container:go_default_library",
  85. "//pkg/kubelet/dockershim/network:go_default_library",
  86. ],
  87. "@io_bazel_rules_go//go/platform:netbsd": [
  88. "//pkg/kubelet/apis/config:go_default_library",
  89. "//pkg/kubelet/container:go_default_library",
  90. "//pkg/kubelet/dockershim/network:go_default_library",
  91. ],
  92. "@io_bazel_rules_go//go/platform:openbsd": [
  93. "//pkg/kubelet/apis/config:go_default_library",
  94. "//pkg/kubelet/container:go_default_library",
  95. "//pkg/kubelet/dockershim/network:go_default_library",
  96. ],
  97. "@io_bazel_rules_go//go/platform:plan9": [
  98. "//pkg/kubelet/apis/config:go_default_library",
  99. "//pkg/kubelet/container:go_default_library",
  100. "//pkg/kubelet/dockershim/network:go_default_library",
  101. ],
  102. "@io_bazel_rules_go//go/platform:solaris": [
  103. "//pkg/kubelet/apis/config:go_default_library",
  104. "//pkg/kubelet/container:go_default_library",
  105. "//pkg/kubelet/dockershim/network:go_default_library",
  106. ],
  107. "@io_bazel_rules_go//go/platform:windows": [
  108. "//pkg/kubelet/apis/config:go_default_library",
  109. "//pkg/kubelet/container:go_default_library",
  110. "//pkg/kubelet/dockershim/network:go_default_library",
  111. ],
  112. "//conditions:default": [],
  113. }),
  114. )
  115. go_test(
  116. name = "go_default_test",
  117. srcs = ["kubenet_linux_test.go"],
  118. embed = [":go_default_library"],
  119. deps = select({
  120. "@io_bazel_rules_go//go/platform:android": [
  121. "//pkg/kubelet/apis/config:go_default_library",
  122. "//pkg/kubelet/container:go_default_library",
  123. "//pkg/kubelet/dockershim/network:go_default_library",
  124. "//pkg/kubelet/dockershim/network/cni/testing:go_default_library",
  125. "//pkg/kubelet/dockershim/network/hostport/testing:go_default_library",
  126. "//pkg/kubelet/dockershim/network/testing:go_default_library",
  127. "//pkg/util/bandwidth:go_default_library",
  128. "//pkg/util/iptables/testing:go_default_library",
  129. "//pkg/util/sysctl/testing:go_default_library",
  130. "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
  131. "//vendor/github.com/containernetworking/cni/libcni:go_default_library",
  132. "//vendor/github.com/containernetworking/cni/pkg/types:go_default_library",
  133. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  134. "//vendor/github.com/stretchr/testify/mock:go_default_library",
  135. "//vendor/k8s.io/utils/exec:go_default_library",
  136. "//vendor/k8s.io/utils/exec/testing:go_default_library",
  137. ],
  138. "@io_bazel_rules_go//go/platform:linux": [
  139. "//pkg/kubelet/apis/config:go_default_library",
  140. "//pkg/kubelet/container:go_default_library",
  141. "//pkg/kubelet/dockershim/network:go_default_library",
  142. "//pkg/kubelet/dockershim/network/cni/testing:go_default_library",
  143. "//pkg/kubelet/dockershim/network/hostport/testing:go_default_library",
  144. "//pkg/kubelet/dockershim/network/testing:go_default_library",
  145. "//pkg/util/bandwidth:go_default_library",
  146. "//pkg/util/iptables/testing:go_default_library",
  147. "//pkg/util/sysctl/testing:go_default_library",
  148. "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
  149. "//vendor/github.com/containernetworking/cni/libcni:go_default_library",
  150. "//vendor/github.com/containernetworking/cni/pkg/types:go_default_library",
  151. "//vendor/github.com/stretchr/testify/assert:go_default_library",
  152. "//vendor/github.com/stretchr/testify/mock:go_default_library",
  153. "//vendor/k8s.io/utils/exec:go_default_library",
  154. "//vendor/k8s.io/utils/exec/testing:go_default_library",
  155. ],
  156. "//conditions:default": [],
  157. }),
  158. )
  159. filegroup(
  160. name = "package-srcs",
  161. srcs = glob(["**"]),
  162. tags = ["automanaged"],
  163. visibility = ["//visibility:private"],
  164. )
  165. filegroup(
  166. name = "all-srcs",
  167. srcs = [":package-srcs"],
  168. tags = ["automanaged"],
  169. )