mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-02 11:10:18 +00:00
301 lines
13 KiB
Python
301 lines
13 KiB
Python
package(default_visibility = ["//visibility:public"])
|
|
|
|
load(
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
"go_library",
|
|
"go_test",
|
|
)
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"conntrack.go",
|
|
"server.go",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"server_others.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
|
"server_others.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:dragonfly": [
|
|
"server_others.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd": [
|
|
"server_others.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"server_others.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:nacl": [
|
|
"server_others.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd": [
|
|
"server_others.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd": [
|
|
"server_others.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:plan9": [
|
|
"server_others.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:solaris": [
|
|
"server_others.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:windows": [
|
|
"server_windows.go",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
importpath = "k8s.io/kubernetes/cmd/kube-proxy/app",
|
|
deps = [
|
|
"//pkg/apis/componentconfig:go_default_library",
|
|
"//pkg/apis/core:go_default_library",
|
|
"//pkg/client/clientset_generated/internalclientset:go_default_library",
|
|
"//pkg/client/informers/informers_generated/internalversion:go_default_library",
|
|
"//pkg/kubectl/cmd/util:go_default_library",
|
|
"//pkg/kubelet/qos:go_default_library",
|
|
"//pkg/master/ports:go_default_library",
|
|
"//pkg/proxy:go_default_library",
|
|
"//pkg/proxy/apis/kubeproxyconfig:go_default_library",
|
|
"//pkg/proxy/apis/kubeproxyconfig/scheme:go_default_library",
|
|
"//pkg/proxy/apis/kubeproxyconfig/v1alpha1:go_default_library",
|
|
"//pkg/proxy/apis/kubeproxyconfig/validation:go_default_library",
|
|
"//pkg/proxy/config:go_default_library",
|
|
"//pkg/proxy/healthcheck:go_default_library",
|
|
"//pkg/proxy/iptables:go_default_library",
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/proxy/userspace:go_default_library",
|
|
"//pkg/util/configz:go_default_library",
|
|
"//pkg/util/flag:go_default_library",
|
|
"//pkg/util/ipset:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//pkg/util/ipvs:go_default_library",
|
|
"//pkg/util/mount:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//pkg/util/oom:go_default_library",
|
|
"//pkg/util/pointer:go_default_library",
|
|
"//pkg/util/resourcecontainer:go_default_library",
|
|
"//pkg/util/sysctl:go_default_library",
|
|
"//pkg/version:go_default_library",
|
|
"//pkg/version/verflag:go_default_library",
|
|
"//vendor/github.com/golang/glog:go_default_library",
|
|
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
|
|
"//vendor/github.com/spf13/cobra:go_default_library",
|
|
"//vendor/github.com/spf13/pflag:go_default_library",
|
|
"//vendor/k8s.io/api/core/v1:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/runtime/serializer/json:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/server/healthz:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/server/mux:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/server/routes:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/flag:go_default_library",
|
|
"//vendor/k8s.io/client-go/kubernetes:go_default_library",
|
|
"//vendor/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
|
|
"//vendor/k8s.io/client-go/rest:go_default_library",
|
|
"//vendor/k8s.io/client-go/tools/clientcmd:go_default_library",
|
|
"//vendor/k8s.io/client-go/tools/clientcmd/api:go_default_library",
|
|
"//vendor/k8s.io/client-go/tools/record:go_default_library",
|
|
"//vendor/k8s.io/utils/exec:go_default_library",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/dbus:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/dbus:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:dragonfly": [
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/dbus:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd": [
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/dbus:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/dbus:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:nacl": [
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/dbus:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd": [
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/dbus:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd": [
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/dbus:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:plan9": [
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/dbus:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:solaris": [
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/dbus:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:windows": [
|
|
"//pkg/proxy/winkernel:go_default_library",
|
|
"//pkg/proxy/winuserspace:go_default_library",
|
|
"//pkg/util/netsh:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"server_test.go",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"server_others_test.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
|
"server_others_test.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:dragonfly": [
|
|
"server_others_test.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd": [
|
|
"server_others_test.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"server_others_test.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:nacl": [
|
|
"server_others_test.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd": [
|
|
"server_others_test.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd": [
|
|
"server_others_test.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:plan9": [
|
|
"server_others_test.go",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:solaris": [
|
|
"server_others_test.go",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//pkg/apis/core:go_default_library",
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/proxy/apis/kubeproxyconfig:go_default_library",
|
|
"//pkg/util/configz:go_default_library",
|
|
"//pkg/util/pointer:go_default_library",
|
|
"//vendor/github.com/stretchr/testify/assert:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//vendor/k8s.io/apimachinery/pkg/util/diff:go_default_library",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:dragonfly": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:nacl": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:plan9": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:solaris": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
"//pkg/util/iptables:go_default_library",
|
|
"//vendor/k8s.io/apiserver/pkg/util/feature: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"],
|
|
)
|