51 lines
1.1 KiB
Text
51 lines
1.1 KiB
Text
|
package(default_visibility = ["//visibility:public"])
|
||
|
|
||
|
licenses(["notice"])
|
||
|
|
||
|
load(
|
||
|
"@io_bazel_rules_go//go:def.bzl",
|
||
|
"go_library",
|
||
|
"go_test",
|
||
|
)
|
||
|
|
||
|
go_library(
|
||
|
name = "go_default_library",
|
||
|
srcs = [
|
||
|
"conversion.go",
|
||
|
"register.go",
|
||
|
"types.go",
|
||
|
],
|
||
|
tags = ["automanaged"],
|
||
|
deps = [
|
||
|
"//pkg/apis/abac:go_default_library",
|
||
|
"//vendor:k8s.io/apimachinery/pkg/apis/meta/v1",
|
||
|
"//vendor:k8s.io/apimachinery/pkg/conversion",
|
||
|
"//vendor:k8s.io/apimachinery/pkg/runtime",
|
||
|
"//vendor:k8s.io/apimachinery/pkg/runtime/schema",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
go_test(
|
||
|
name = "go_default_xtest",
|
||
|
srcs = ["conversion_test.go"],
|
||
|
tags = ["automanaged"],
|
||
|
deps = [
|
||
|
"//pkg/apis/abac:go_default_library",
|
||
|
"//pkg/apis/abac/v0:go_default_library",
|
||
|
"//vendor:k8s.io/apiserver/pkg/authentication/user",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "package-srcs",
|
||
|
srcs = glob(["**"]),
|
||
|
tags = ["automanaged"],
|
||
|
visibility = ["//visibility:private"],
|
||
|
)
|
||
|
|
||
|
filegroup(
|
||
|
name = "all-srcs",
|
||
|
srcs = [":package-srcs"],
|
||
|
tags = ["automanaged"],
|
||
|
)
|