66 lines
1.8 KiB
Text
66 lines
1.8 KiB
Text
|
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 = [
|
||
|
"bootstrap.go",
|
||
|
"csr.go",
|
||
|
"discovery.go",
|
||
|
],
|
||
|
tags = ["automanaged"],
|
||
|
deps = [
|
||
|
"//cmd/kubeadm/app/apis/kubeadm:go_default_library",
|
||
|
"//cmd/kubeadm/app/phases/kubeconfig:go_default_library",
|
||
|
"//cmd/kubeadm/app/util:go_default_library",
|
||
|
"//pkg/api/v1:go_default_library",
|
||
|
"//pkg/apis/certificates:go_default_library",
|
||
|
"//pkg/client/clientset_generated/clientset:go_default_library",
|
||
|
"//pkg/client/unversioned/clientcmd:go_default_library",
|
||
|
"//pkg/client/unversioned/clientcmd/api:go_default_library",
|
||
|
"//pkg/kubelet/util/csr:go_default_library",
|
||
|
"//pkg/util/cert:go_default_library",
|
||
|
"//vendor:github.com/square/go-jose",
|
||
|
"//vendor:k8s.io/apimachinery/pkg/types",
|
||
|
"//vendor:k8s.io/apimachinery/pkg/util/wait",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
go_test(
|
||
|
name = "go_default_test",
|
||
|
srcs = [
|
||
|
"bootstrap_test.go",
|
||
|
"discovery_test.go",
|
||
|
],
|
||
|
library = ":go_default_library",
|
||
|
tags = ["automanaged"],
|
||
|
deps = [
|
||
|
"//cmd/kubeadm/app/apis/kubeadm:go_default_library",
|
||
|
"//pkg/client/clientset_generated/clientset:go_default_library",
|
||
|
"//pkg/client/restclient:go_default_library",
|
||
|
"//pkg/client/typed/discovery:go_default_library",
|
||
|
"//pkg/version:go_default_library",
|
||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "package-srcs",
|
||
|
srcs = glob(["**"]),
|
||
|
tags = ["automanaged"],
|
||
|
visibility = ["//visibility:private"],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "all-srcs",
|
||
|
srcs = [":package-srcs"],
|
||
|
tags = ["automanaged"],
|
||
|
)
|