mirror of https://github.com/k3s-io/k3s
113 lines
4.8 KiB
Python
113 lines
4.8 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"create.go",
|
|
"create_clusterrole.go",
|
|
"create_clusterrolebinding.go",
|
|
"create_configmap.go",
|
|
"create_deployment.go",
|
|
"create_job.go",
|
|
"create_namespace.go",
|
|
"create_pdb.go",
|
|
"create_priorityclass.go",
|
|
"create_quota.go",
|
|
"create_role.go",
|
|
"create_rolebinding.go",
|
|
"create_secret.go",
|
|
"create_service.go",
|
|
"create_serviceaccount.go",
|
|
],
|
|
importpath = "k8s.io/kubernetes/pkg/kubectl/cmd/create",
|
|
visibility = ["//build/visible_to:pkg_kubectl_cmd_create_CONSUMERS"],
|
|
deps = [
|
|
"//pkg/kubectl:go_default_library",
|
|
"//pkg/kubectl/cmd/util:go_default_library",
|
|
"//pkg/kubectl/cmd/util/editor:go_default_library",
|
|
"//pkg/kubectl/generate:go_default_library",
|
|
"//pkg/kubectl/generate/versioned:go_default_library",
|
|
"//pkg/kubectl/scheme:go_default_library",
|
|
"//pkg/kubectl/util/i18n:go_default_library",
|
|
"//pkg/kubectl/util/templates:go_default_library",
|
|
"//staging/src/k8s.io/api/batch/v1:go_default_library",
|
|
"//staging/src/k8s.io/api/batch/v1beta1:go_default_library",
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
"//staging/src/k8s.io/api/rbac/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured: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/util/sets:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/util/flag:go_default_library",
|
|
"//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library",
|
|
"//staging/src/k8s.io/cli-runtime/pkg/genericclioptions/printers:go_default_library",
|
|
"//staging/src/k8s.io/cli-runtime/pkg/genericclioptions/resource:go_default_library",
|
|
"//staging/src/k8s.io/client-go/dynamic:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/batch/v1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1:go_default_library",
|
|
"//vendor/github.com/spf13/cobra:go_default_library",
|
|
"//vendor/k8s.io/klog:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"create_clusterrole_test.go",
|
|
"create_clusterrolebinding_test.go",
|
|
"create_configmap_test.go",
|
|
"create_deployment_test.go",
|
|
"create_job_test.go",
|
|
"create_namespace_test.go",
|
|
"create_pdb_test.go",
|
|
"create_priorityclass_test.go",
|
|
"create_quota_test.go",
|
|
"create_role_test.go",
|
|
"create_rolebinding_test.go",
|
|
"create_secret_test.go",
|
|
"create_service_test.go",
|
|
"create_serviceaccount_test.go",
|
|
"create_test.go",
|
|
],
|
|
data = [
|
|
"//test/e2e/testing-manifests:all-srcs",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//pkg/kubectl/cmd/testing:go_default_library",
|
|
"//pkg/kubectl/generate/versioned:go_default_library",
|
|
"//pkg/kubectl/scheme:go_default_library",
|
|
"//staging/src/k8s.io/api/batch/v1:go_default_library",
|
|
"//staging/src/k8s.io/api/batch/v1beta1:go_default_library",
|
|
"//staging/src/k8s.io/api/core/v1:go_default_library",
|
|
"//staging/src/k8s.io/api/rbac/v1:go_default_library",
|
|
"//staging/src/k8s.io/api/rbac/v1beta1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/equality: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/util/diff:go_default_library",
|
|
"//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library",
|
|
"//staging/src/k8s.io/cli-runtime/pkg/genericclioptions/resource:go_default_library",
|
|
"//staging/src/k8s.io/client-go/rest:go_default_library",
|
|
"//staging/src/k8s.io/client-go/rest/fake:go_default_library",
|
|
"//vendor/github.com/stretchr/testify/assert:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [":package-srcs"],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|