mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
c6950d2cb0
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
131 lines
6.3 KiB
Python
131 lines
6.3 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_cronjob.go",
|
|
"create_deployment.go",
|
|
"create_ingress.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",
|
|
],
|
|
importmap = "k8s.io/kubernetes/vendor/k8s.io/kubectl/pkg/cmd/create",
|
|
importpath = "k8s.io/kubectl/pkg/cmd/create",
|
|
visibility = ["//build/visible_to:pkg_kubectl_cmd_create_CONSUMERS"],
|
|
deps = [
|
|
"//staging/src/k8s.io/api/apps/v1: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/networking/v1:go_default_library",
|
|
"//staging/src/k8s.io/api/rbac/v1:go_default_library",
|
|
"//staging/src/k8s.io/api/scheduling/v1:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/meta:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/api/resource: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/intstr:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/rand:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/validation:go_default_library",
|
|
"//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library",
|
|
"//staging/src/k8s.io/cli-runtime/pkg/printers:go_default_library",
|
|
"//staging/src/k8s.io/cli-runtime/pkg/resource:go_default_library",
|
|
"//staging/src/k8s.io/client-go/dynamic:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/apps/v1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/batch/v1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/batch/v1beta1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/networking/v1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/rbac/v1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/scheduling/v1:go_default_library",
|
|
"//staging/src/k8s.io/component-base/cli/flag:go_default_library",
|
|
"//staging/src/k8s.io/kubectl/pkg/cmd/util:go_default_library",
|
|
"//staging/src/k8s.io/kubectl/pkg/cmd/util/editor:go_default_library",
|
|
"//staging/src/k8s.io/kubectl/pkg/generate:go_default_library",
|
|
"//staging/src/k8s.io/kubectl/pkg/generate/versioned:go_default_library",
|
|
"//staging/src/k8s.io/kubectl/pkg/rawhttp:go_default_library",
|
|
"//staging/src/k8s.io/kubectl/pkg/scheme:go_default_library",
|
|
"//staging/src/k8s.io/kubectl/pkg/util: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",
|
|
"//vendor/github.com/spf13/cobra:go_default_library",
|
|
"//vendor/k8s.io/klog/v2:go_default_library",
|
|
"//vendor/k8s.io/utils/net:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"create_clusterrole_test.go",
|
|
"create_clusterrolebinding_test.go",
|
|
"create_configmap_test.go",
|
|
"create_cronjob_test.go",
|
|
"create_deployment_test.go",
|
|
"create_ingress_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 = ["//staging/src/k8s.io/kubectl/testdata"],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//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/networking/v1:go_default_library",
|
|
"//staging/src/k8s.io/api/rbac/v1: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/apimachinery/pkg/util/intstr:go_default_library",
|
|
"//staging/src/k8s.io/cli-runtime/pkg/genericclioptions:go_default_library",
|
|
"//staging/src/k8s.io/cli-runtime/pkg/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",
|
|
"//staging/src/k8s.io/kubectl/pkg/cmd/testing:go_default_library",
|
|
"//staging/src/k8s.io/kubectl/pkg/cmd/util:go_default_library",
|
|
"//staging/src/k8s.io/kubectl/pkg/scheme: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"],
|
|
)
|