mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
246 lines
12 KiB
Python
246 lines
12 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",
|
|
"init_others.go",
|
|
"init_windows.go",
|
|
"server.go",
|
|
"server_others.go",
|
|
"server_windows.go",
|
|
],
|
|
importpath = "k8s.io/kubernetes/cmd/kube-proxy/app",
|
|
deps = [
|
|
"//pkg/apis/core:go_default_library",
|
|
"//pkg/features:go_default_library",
|
|
"//pkg/kubelet/qos:go_default_library",
|
|
"//pkg/master/ports:go_default_library",
|
|
"//pkg/proxy:go_default_library",
|
|
"//pkg/proxy/apis:go_default_library",
|
|
"//pkg/proxy/apis/config:go_default_library",
|
|
"//pkg/proxy/apis/config/scheme:go_default_library",
|
|
"//pkg/proxy/apis/config/v1alpha1:go_default_library",
|
|
"//pkg/proxy/apis/config/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/proxy/util:go_default_library",
|
|
"//pkg/util/configz:go_default_library",
|
|
"//pkg/util/filesystem: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/oom:go_default_library",
|
|
"//pkg/util/sysctl:go_default_library",
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/fields:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/labels:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/runtime:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/selection:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/server/healthz:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/server/mux:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/server/routes:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
"//staging/src/k8s.io/client-go/informers:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/rest:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/clientcmd:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/clientcmd/api:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
|
"//staging/src/k8s.io/component-base/cli/flag:go_default_library",
|
|
"//staging/src/k8s.io/component-base/config:go_default_library",
|
|
"//staging/src/k8s.io/component-base/metrics/legacyregistry:go_default_library",
|
|
"//staging/src/k8s.io/component-base/version:go_default_library",
|
|
"//staging/src/k8s.io/component-base/version/verflag:go_default_library",
|
|
"//staging/src/k8s.io/kube-proxy/config/v1alpha1:go_default_library",
|
|
"//vendor/github.com/fsnotify/fsnotify:go_default_library",
|
|
"//vendor/github.com/pkg/errors:go_default_library",
|
|
"//vendor/github.com/spf13/cobra:go_default_library",
|
|
"//vendor/github.com/spf13/pflag:go_default_library",
|
|
"//vendor/k8s.io/klog:go_default_library",
|
|
"//vendor/k8s.io/utils/exec:go_default_library",
|
|
"//vendor/k8s.io/utils/mount:go_default_library",
|
|
"//vendor/k8s.io/utils/pointer:go_default_library",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:dragonfly": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:ios": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:nacl": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:plan9": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:solaris": [
|
|
"//pkg/proxy/metrics:go_default_library",
|
|
"//pkg/util/node:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
"//vendor/github.com/opencontainers/runc/libcontainer/system:go_default_library",
|
|
"//vendor/k8s.io/utils/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",
|
|
"//pkg/util/node:go_default_library",
|
|
"//pkg/windows/service:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
],
|
|
"//conditions:default": [],
|
|
}),
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"server_others_test.go",
|
|
"server_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//pkg/proxy/apis/config:go_default_library",
|
|
"//pkg/util/configz:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/diff:go_default_library",
|
|
"//staging/src/k8s.io/component-base/config:go_default_library",
|
|
"//vendor/github.com/stretchr/testify/assert:go_default_library",
|
|
"//vendor/k8s.io/utils/pointer:go_default_library",
|
|
] + select({
|
|
"@io_bazel_rules_go//go/platform:android": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:darwin": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:dragonfly": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:freebsd": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:ios": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:linux": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:nacl": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:netbsd": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:openbsd": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:plan9": [
|
|
"//pkg/proxy/ipvs:go_default_library",
|
|
],
|
|
"@io_bazel_rules_go//go/platform:solaris": [
|
|
"//pkg/proxy/ipvs: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"],
|
|
)
|