2017-02-01 00:45:59 +00:00
|
|
|
package(default_visibility = ["//visibility:public"])
|
|
|
|
|
|
|
|
licenses(["notice"])
|
|
|
|
|
|
|
|
load(
|
|
|
|
"@io_bazel_rules_go//go:def.bzl",
|
|
|
|
"go_library",
|
|
|
|
"go_test",
|
|
|
|
)
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"errors.go",
|
|
|
|
"request_cache.go",
|
|
|
|
"server.go",
|
|
|
|
],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/kubelet/api/v1alpha1/runtime:go_default_library",
|
|
|
|
"//pkg/kubelet/server/portforward:go_default_library",
|
|
|
|
"//pkg/kubelet/server/remotecommand:go_default_library",
|
|
|
|
"//pkg/util/term:go_default_library",
|
|
|
|
"//vendor:github.com/emicklei/go-restful",
|
|
|
|
"//vendor:google.golang.org/grpc",
|
|
|
|
"//vendor:google.golang.org/grpc/codes",
|
|
|
|
"//vendor:k8s.io/apimachinery/pkg/types",
|
2017-02-03 13:41:32 +00:00
|
|
|
"//vendor:k8s.io/client-go/util/clock",
|
2017-02-01 00:45:59 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"request_cache_test.go",
|
|
|
|
"server_test.go",
|
|
|
|
],
|
|
|
|
library = ":go_default_library",
|
|
|
|
tags = ["automanaged"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/client/unversioned/remotecommand:go_default_library",
|
|
|
|
"//pkg/kubelet/api/v1alpha1/runtime:go_default_library",
|
|
|
|
"//pkg/kubelet/server/portforward:go_default_library",
|
|
|
|
"//pkg/kubelet/server/remotecommand:go_default_library",
|
|
|
|
"//pkg/util/term:go_default_library",
|
|
|
|
"//vendor:github.com/stretchr/testify/assert",
|
|
|
|
"//vendor:github.com/stretchr/testify/require",
|
|
|
|
"//vendor:k8s.io/client-go/pkg/api",
|
2017-02-03 13:41:32 +00:00
|
|
|
"//vendor:k8s.io/client-go/rest",
|
|
|
|
"//vendor:k8s.io/client-go/util/clock",
|
2017-02-01 00:45:59 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [":package-srcs"],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
)
|