2019-01-12 04:58:27 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
load(
|
|
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
|
|
"go_library",
|
|
|
|
"go_test",
|
|
|
|
)
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"auth.go",
|
|
|
|
"doc.go",
|
|
|
|
"server.go",
|
|
|
|
],
|
|
|
|
importpath = "k8s.io/kubernetes/pkg/kubelet/server",
|
|
|
|
deps = [
|
|
|
|
"//pkg/api/legacyscheme:go_default_library",
|
|
|
|
"//pkg/apis/core:go_default_library",
|
|
|
|
"//pkg/apis/core/v1/validation:go_default_library",
|
|
|
|
"//pkg/kubelet/apis/podresources:go_default_library",
|
|
|
|
"//pkg/kubelet/apis/podresources/v1alpha1:go_default_library",
|
2019-04-07 17:07:55 +00:00
|
|
|
"//pkg/kubelet/apis/resourcemetrics/v1alpha1:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/kubelet/container:go_default_library",
|
|
|
|
"//pkg/kubelet/prober:go_default_library",
|
2019-08-30 18:33:25 +00:00
|
|
|
"//pkg/kubelet/server/metrics:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/kubelet/server/portforward:go_default_library",
|
|
|
|
"//pkg/kubelet/server/remotecommand:go_default_library",
|
|
|
|
"//pkg/kubelet/server/stats:go_default_library",
|
|
|
|
"//pkg/kubelet/server/streaming:go_default_library",
|
|
|
|
"//pkg/kubelet/types:go_default_library",
|
|
|
|
"//pkg/kubelet/util:go_default_library",
|
|
|
|
"//pkg/util/configz: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/runtime:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/types:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/proxy:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/runtime:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/authenticator:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/user:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/authorization/authorizer:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/server/healthz:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/server/httplog:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/server/routes:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/flushwriter:go_default_library",
|
2019-04-07 17:07:55 +00:00
|
|
|
"//staging/src/k8s.io/component-base/logs:go_default_library",
|
2019-08-30 18:33:25 +00:00
|
|
|
"//staging/src/k8s.io/component-base/metrics:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//staging/src/k8s.io/component-base/metrics/legacyregistry:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//vendor/github.com/emicklei/go-restful:go_default_library",
|
|
|
|
"//vendor/github.com/google/cadvisor/container:go_default_library",
|
|
|
|
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
|
|
|
|
"//vendor/github.com/google/cadvisor/metrics:go_default_library",
|
|
|
|
"//vendor/google.golang.org/grpc:go_default_library",
|
|
|
|
"//vendor/k8s.io/klog:go_default_library",
|
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"auth_test.go",
|
|
|
|
"server_test.go",
|
|
|
|
"server_websocket_test.go",
|
|
|
|
],
|
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/apis/core:go_default_library",
|
|
|
|
"//pkg/apis/core/install:go_default_library",
|
|
|
|
"//pkg/kubelet/apis/stats/v1alpha1:go_default_library",
|
|
|
|
"//pkg/kubelet/cm:go_default_library",
|
|
|
|
"//pkg/kubelet/container:go_default_library",
|
|
|
|
"//pkg/kubelet/server/portforward:go_default_library",
|
|
|
|
"//pkg/kubelet/server/remotecommand:go_default_library",
|
|
|
|
"//pkg/kubelet/server/stats:go_default_library",
|
|
|
|
"//pkg/kubelet/server/streaming:go_default_library",
|
|
|
|
"//pkg/volume: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/types:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/httpstream:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/authenticator:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/user:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/authorization/authorizer:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/tools/remotecommand:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/util/testing:go_default_library",
|
2019-08-30 18:33:25 +00:00
|
|
|
"//staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//vendor/github.com/google/cadvisor/info/v1:go_default_library",
|
|
|
|
"//vendor/github.com/stretchr/testify/assert:go_default_library",
|
|
|
|
"//vendor/github.com/stretchr/testify/require:go_default_library",
|
|
|
|
"//vendor/golang.org/x/net/websocket:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/k8s.io/utils/pointer:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [
|
|
|
|
":package-srcs",
|
2019-08-30 18:33:25 +00:00
|
|
|
"//pkg/kubelet/server/metrics:all-srcs",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/kubelet/server/portforward:all-srcs",
|
|
|
|
"//pkg/kubelet/server/remotecommand:all-srcs",
|
|
|
|
"//pkg/kubelet/server/stats:all-srcs",
|
|
|
|
"//pkg/kubelet/server/streaming:all-srcs",
|
|
|
|
],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
)
|