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