mirror of https://github.com/k3s-io/k3s
60 lines
1.8 KiB
Python
60 lines
1.8 KiB
Python
|
package(default_visibility = ["//visibility:public"])
|
||
|
|
||
|
load(
|
||
|
"@io_bazel_rules_go//go:def.bzl",
|
||
|
"go_library",
|
||
|
"go_test",
|
||
|
)
|
||
|
|
||
|
go_test(
|
||
|
name = "go_default_test",
|
||
|
srcs = [
|
||
|
"policy_compact_test.go",
|
||
|
"policy_comparator_test.go",
|
||
|
"rule_test.go",
|
||
|
],
|
||
|
embed = [":go_default_library"],
|
||
|
deps = [
|
||
|
"//pkg/apis/rbac/v1:go_default_library",
|
||
|
"//staging/src/k8s.io/api/rbac/v1:go_default_library",
|
||
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
||
|
"//staging/src/k8s.io/apimachinery/pkg/util/diff:go_default_library",
|
||
|
"//staging/src/k8s.io/apiserver/pkg/authentication/user:go_default_library",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
go_library(
|
||
|
name = "go_default_library",
|
||
|
srcs = [
|
||
|
"internal_version_adapter.go",
|
||
|
"policy_compact.go",
|
||
|
"policy_comparator.go",
|
||
|
"rule.go",
|
||
|
],
|
||
|
importpath = "k8s.io/kubernetes/pkg/registry/rbac/validation",
|
||
|
deps = [
|
||
|
"//pkg/apis/rbac:go_default_library",
|
||
|
"//pkg/apis/rbac/v1:go_default_library",
|
||
|
"//staging/src/k8s.io/api/rbac/v1:go_default_library",
|
||
|
"//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
|
||
|
"//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
||
|
"//staging/src/k8s.io/apiserver/pkg/authentication/serviceaccount:go_default_library",
|
||
|
"//staging/src/k8s.io/apiserver/pkg/authentication/user:go_default_library",
|
||
|
"//staging/src/k8s.io/apiserver/pkg/endpoints/request:go_default_library",
|
||
|
"//vendor/k8s.io/klog:go_default_library",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "package-srcs",
|
||
|
srcs = glob(["**"]),
|
||
|
tags = ["automanaged"],
|
||
|
visibility = ["//visibility:private"],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "all-srcs",
|
||
|
srcs = [":package-srcs"],
|
||
|
tags = ["automanaged"],
|
||
|
)
|