123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175 |
- package(default_visibility = ["//visibility:public"])
- load(
- "@io_bazel_rules_go//go:def.bzl",
- "go_library",
- "go_test",
- )
- go_library(
- name = "go_default_library",
- srcs = [
- "kubenet.go",
- "kubenet_linux.go",
- "kubenet_unsupported.go",
- ],
- importpath = "k8s.io/kubernetes/pkg/kubelet/dockershim/network/kubenet",
- deps = select({
- "@io_bazel_rules_go//go/platform:android": [
- "//pkg/features:go_default_library",
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- "//pkg/kubelet/dockershim/network/hostport:go_default_library",
- "//pkg/util/bandwidth:go_default_library",
- "//pkg/util/ebtables:go_default_library",
- "//pkg/util/iptables:go_default_library",
- "//pkg/util/sysctl:go_default_library",
- "//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
- "//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
- "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
- "//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
- "//vendor/github.com/containernetworking/cni/libcni:go_default_library",
- "//vendor/github.com/containernetworking/cni/pkg/types:go_default_library",
- "//vendor/github.com/containernetworking/cni/pkg/types/020:go_default_library",
- "//vendor/github.com/vishvananda/netlink:go_default_library",
- "//vendor/golang.org/x/sys/unix:go_default_library",
- "//vendor/k8s.io/klog:go_default_library",
- "//vendor/k8s.io/utils/exec:go_default_library",
- "//vendor/k8s.io/utils/net:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:darwin": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:dragonfly": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:freebsd": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:ios": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:linux": [
- "//pkg/features:go_default_library",
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- "//pkg/kubelet/dockershim/network/hostport:go_default_library",
- "//pkg/util/bandwidth:go_default_library",
- "//pkg/util/ebtables:go_default_library",
- "//pkg/util/iptables:go_default_library",
- "//pkg/util/sysctl:go_default_library",
- "//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
- "//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
- "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
- "//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
- "//vendor/github.com/containernetworking/cni/libcni:go_default_library",
- "//vendor/github.com/containernetworking/cni/pkg/types:go_default_library",
- "//vendor/github.com/containernetworking/cni/pkg/types/020:go_default_library",
- "//vendor/github.com/vishvananda/netlink:go_default_library",
- "//vendor/golang.org/x/sys/unix:go_default_library",
- "//vendor/k8s.io/klog:go_default_library",
- "//vendor/k8s.io/utils/exec:go_default_library",
- "//vendor/k8s.io/utils/net:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:nacl": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:netbsd": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:openbsd": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:plan9": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:solaris": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:windows": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- ],
- "//conditions:default": [],
- }),
- )
- go_test(
- name = "go_default_test",
- srcs = ["kubenet_linux_test.go"],
- embed = [":go_default_library"],
- deps = select({
- "@io_bazel_rules_go//go/platform:android": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- "//pkg/kubelet/dockershim/network/cni/testing:go_default_library",
- "//pkg/kubelet/dockershim/network/hostport/testing:go_default_library",
- "//pkg/kubelet/dockershim/network/testing:go_default_library",
- "//pkg/util/bandwidth:go_default_library",
- "//pkg/util/iptables/testing:go_default_library",
- "//pkg/util/sysctl/testing:go_default_library",
- "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
- "//vendor/github.com/containernetworking/cni/libcni:go_default_library",
- "//vendor/github.com/containernetworking/cni/pkg/types:go_default_library",
- "//vendor/github.com/stretchr/testify/assert:go_default_library",
- "//vendor/github.com/stretchr/testify/mock:go_default_library",
- "//vendor/k8s.io/utils/exec:go_default_library",
- "//vendor/k8s.io/utils/exec/testing:go_default_library",
- ],
- "@io_bazel_rules_go//go/platform:linux": [
- "//pkg/kubelet/apis/config:go_default_library",
- "//pkg/kubelet/container:go_default_library",
- "//pkg/kubelet/dockershim/network:go_default_library",
- "//pkg/kubelet/dockershim/network/cni/testing:go_default_library",
- "//pkg/kubelet/dockershim/network/hostport/testing:go_default_library",
- "//pkg/kubelet/dockershim/network/testing:go_default_library",
- "//pkg/util/bandwidth:go_default_library",
- "//pkg/util/iptables/testing:go_default_library",
- "//pkg/util/sysctl/testing:go_default_library",
- "//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
- "//vendor/github.com/containernetworking/cni/libcni:go_default_library",
- "//vendor/github.com/containernetworking/cni/pkg/types:go_default_library",
- "//vendor/github.com/stretchr/testify/assert:go_default_library",
- "//vendor/github.com/stretchr/testify/mock:go_default_library",
- "//vendor/k8s.io/utils/exec:go_default_library",
- "//vendor/k8s.io/utils/exec/testing:go_default_library",
- ],
- "//conditions:default": [],
- }),
- )
- filegroup(
- name = "package-srcs",
- srcs = glob(["**"]),
- tags = ["automanaged"],
- visibility = ["//visibility:private"],
- )
- filegroup(
- name = "all-srcs",
- srcs = [":package-srcs"],
- tags = ["automanaged"],
- )
|