k3s/vendor/k8s.io/kubernetes/pkg/kubectl/cmd/BUILD

94 lines
4.6 KiB
Python
Raw Normal View History

2019-09-27 21:51:53 +00:00
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
2019-01-12 04:58:27 +00:00
go_library(
name = "go_default_library",
srcs = [
"cmd.go",
"profiling.go",
],
importpath = "k8s.io/kubernetes/pkg/kubectl/cmd",
2019-09-27 21:51:53 +00:00
visibility = ["//visibility:public"],
2019-01-12 04:58:27 +00:00
deps = [
"//pkg/kubectl/cmd/auth:go_default_library",
"//pkg/kubectl/cmd/convert:go_default_library",
"//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library",
2020-08-10 17:43:49 +00:00
"//staging/src/k8s.io/client-go/rest:go_default_library",
2019-01-12 04:58:27 +00:00
"//staging/src/k8s.io/client-go/tools/clientcmd:go_default_library",
2019-04-07 17:07:55 +00:00
"//staging/src/k8s.io/component-base/cli/flag:go_default_library",
2019-09-27 21:51:53 +00:00
"//staging/src/k8s.io/kubectl/pkg/cmd:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/annotate:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/apiresources:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/apply:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/attach:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/autoscale:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/certificates:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/clusterinfo:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/completion:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/config:go_default_library",
2020-08-10 17:43:49 +00:00
"//staging/src/k8s.io/kubectl/pkg/cmd/cp:go_default_library",
2019-09-27 21:51:53 +00:00
"//staging/src/k8s.io/kubectl/pkg/cmd/create:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/delete:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/describe:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/diff:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/drain:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/edit:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/exec:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/explain:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/expose:go_default_library",
2019-12-12 01:27:03 +00:00
"//staging/src/k8s.io/kubectl/pkg/cmd/get:go_default_library",
2019-09-27 21:51:53 +00:00
"//staging/src/k8s.io/kubectl/pkg/cmd/kustomize:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/label:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/logs:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/options:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/patch:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/plugin:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/portforward:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/proxy:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/replace:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/rollout:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/run:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/scale:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/set:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/taint:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/top:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/util:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/version:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/cmd/wait:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/util/i18n:go_default_library",
"//staging/src/k8s.io/kubectl/pkg/util/templates:go_default_library",
2020-08-10 17:43:49 +00:00
"//staging/src/k8s.io/kubectl/pkg/util/term:go_default_library",
2019-01-12 04:58:27 +00:00
"//vendor/github.com/spf13/cobra:go_default_library",
"//vendor/github.com/spf13/pflag:go_default_library",
],
)
go_test(
name = "go_default_test",
srcs = ["cmd_test.go"],
2019-09-27 21:51:53 +00:00
data = ["//pkg/kubectl/cmd/plugin/testdata"],
2019-01-12 04:58:27 +00:00
embed = [":go_default_library"],
deps = [
"//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library",
2019-09-27 21:51:53 +00:00
"//staging/src/k8s.io/kubectl/pkg/cmd/util:go_default_library",
2019-01-12 04:58:27 +00:00
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
2019-09-27 21:51:53 +00:00
visibility = ["//visibility:private"],
2019-01-12 04:58:27 +00:00
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//pkg/kubectl/cmd/auth:all-srcs",
"//pkg/kubectl/cmd/convert:all-srcs",
2019-09-27 21:51:53 +00:00
"//pkg/kubectl/cmd/plugin/testdata:all-srcs",
2019-01-12 04:58:27 +00:00
],
tags = ["automanaged"],
2019-09-27 21:51:53 +00:00
visibility = ["//visibility:public"],
2019-01-12 04:58:27 +00:00
)