mirror of https://github.com/k3s-io/k3s
77 lines
3.4 KiB
Python
77 lines
3.4 KiB
Python
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "go_default_library",
|
|
srcs = [
|
|
"defaults.go",
|
|
"dynamic.go",
|
|
"factory.go",
|
|
],
|
|
importmap = "k8s.io/kubernetes/vendor/k8s.io/apiserver/plugin/pkg/audit/dynamic",
|
|
importpath = "k8s.io/apiserver/plugin/pkg/audit/dynamic",
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//staging/src/k8s.io/api/auditregistration/v1alpha1:go_default_library",
|
|
"//staging/src/k8s.io/api/core/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/types:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/apis/audit:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/apis/audit/install:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/apis/audit/v1:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/audit:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/audit/policy:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/audit/util:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/util/webhook:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/plugin/pkg/audit/buffered:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/plugin/pkg/audit/dynamic/enforced:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/plugin/pkg/audit/webhook:go_default_library",
|
|
"//staging/src/k8s.io/client-go/informers/auditregistration/v1alpha1:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/cache:go_default_library",
|
|
"//staging/src/k8s.io/client-go/tools/record:go_default_library",
|
|
"//vendor/k8s.io/klog:go_default_library",
|
|
],
|
|
)
|
|
|
|
go_test(
|
|
name = "go_default_test",
|
|
srcs = [
|
|
"dynamic_test.go",
|
|
"factory_test.go",
|
|
],
|
|
embed = [":go_default_library"],
|
|
deps = [
|
|
"//staging/src/k8s.io/api/auditregistration/v1alpha1: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/types:go_default_library",
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/wait:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/apis/audit:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/apis/audit/v1:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/audit:go_default_library",
|
|
"//staging/src/k8s.io/apiserver/pkg/util/webhook:go_default_library",
|
|
"//staging/src/k8s.io/client-go/informers:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/fake:go_default_library",
|
|
"//staging/src/k8s.io/client-go/kubernetes/typed/core/v1:go_default_library",
|
|
"//vendor/github.com/stretchr/testify/require:go_default_library",
|
|
"//vendor/k8s.io/utils/pointer:go_default_library",
|
|
],
|
|
)
|
|
|
|
filegroup(
|
|
name = "package-srcs",
|
|
srcs = glob(["**"]),
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:private"],
|
|
)
|
|
|
|
filegroup(
|
|
name = "all-srcs",
|
|
srcs = [
|
|
":package-srcs",
|
|
"//staging/src/k8s.io/apiserver/plugin/pkg/audit/dynamic/enforced:all-srcs",
|
|
],
|
|
tags = ["automanaged"],
|
|
visibility = ["//visibility:public"],
|
|
)
|