2020-03-26 21:07:15 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
|
2019-01-12 04:58:27 +00:00
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
|
|
|
srcs = [
|
|
|
|
"admission.go",
|
|
|
|
"authentication.go",
|
|
|
|
"authorization.go",
|
|
|
|
"cloudprovider.go",
|
|
|
|
"options.go",
|
|
|
|
"plugins.go",
|
|
|
|
"serving.go",
|
|
|
|
],
|
|
|
|
importpath = "k8s.io/kubernetes/pkg/kubeapiserver/options",
|
2020-03-26 21:07:15 +00:00
|
|
|
visibility = ["//visibility:public"],
|
2019-01-12 04:58:27 +00:00
|
|
|
deps = [
|
2020-06-23 22:12:14 +00:00
|
|
|
"//pkg/controller/serviceaccount:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//pkg/features:go_default_library",
|
|
|
|
"//pkg/kubeapiserver/authenticator:go_default_library",
|
|
|
|
"//pkg/kubeapiserver/authorizer:go_default_library",
|
|
|
|
"//pkg/kubeapiserver/authorizer/modes:go_default_library",
|
|
|
|
"//plugin/pkg/admission/admit:go_default_library",
|
|
|
|
"//plugin/pkg/admission/alwayspullimages:go_default_library",
|
|
|
|
"//plugin/pkg/admission/antiaffinity:go_default_library",
|
2020-03-26 21:07:15 +00:00
|
|
|
"//plugin/pkg/admission/certificates/approval:go_default_library",
|
|
|
|
"//plugin/pkg/admission/certificates/signing:go_default_library",
|
|
|
|
"//plugin/pkg/admission/certificates/subjectrestriction:go_default_library",
|
|
|
|
"//plugin/pkg/admission/defaultingressclass:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//plugin/pkg/admission/defaulttolerationseconds:go_default_library",
|
|
|
|
"//plugin/pkg/admission/deny:go_default_library",
|
|
|
|
"//plugin/pkg/admission/eventratelimit:go_default_library",
|
|
|
|
"//plugin/pkg/admission/exec:go_default_library",
|
|
|
|
"//plugin/pkg/admission/extendedresourcetoleration:go_default_library",
|
|
|
|
"//plugin/pkg/admission/gc:go_default_library",
|
|
|
|
"//plugin/pkg/admission/imagepolicy:go_default_library",
|
|
|
|
"//plugin/pkg/admission/limitranger:go_default_library",
|
|
|
|
"//plugin/pkg/admission/namespace/autoprovision:go_default_library",
|
|
|
|
"//plugin/pkg/admission/namespace/exists:go_default_library",
|
|
|
|
"//plugin/pkg/admission/noderestriction:go_default_library",
|
2019-01-31 22:42:07 +00:00
|
|
|
"//plugin/pkg/admission/nodetaint:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//plugin/pkg/admission/podnodeselector:go_default_library",
|
|
|
|
"//plugin/pkg/admission/podpreset:go_default_library",
|
|
|
|
"//plugin/pkg/admission/podtolerationrestriction:go_default_library",
|
|
|
|
"//plugin/pkg/admission/priority:go_default_library",
|
|
|
|
"//plugin/pkg/admission/resourcequota:go_default_library",
|
2019-09-27 21:51:53 +00:00
|
|
|
"//plugin/pkg/admission/runtimeclass:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//plugin/pkg/admission/security/podsecuritypolicy:go_default_library",
|
|
|
|
"//plugin/pkg/admission/securitycontext/scdeny:go_default_library",
|
|
|
|
"//plugin/pkg/admission/serviceaccount:go_default_library",
|
|
|
|
"//plugin/pkg/admission/storage/persistentvolume/label:go_default_library",
|
|
|
|
"//plugin/pkg/admission/storage/persistentvolume/resize:go_default_library",
|
|
|
|
"//plugin/pkg/admission/storage/storageclass/setdefault:go_default_library",
|
|
|
|
"//plugin/pkg/admission/storage/storageobjectinuseprotection:go_default_library",
|
2020-06-23 22:12:14 +00:00
|
|
|
"//plugin/pkg/auth/authenticator/token/bootstrap:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/net:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/sets:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/admission:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/mutating:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/validating:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/authenticator:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/server:go_default_library",
|
2020-06-23 22:12:14 +00:00
|
|
|
"//staging/src/k8s.io/apiserver/pkg/server/egressselector:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//staging/src/k8s.io/apiserver/pkg/server/options:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/util/feature:go_default_library",
|
|
|
|
"//staging/src/k8s.io/client-go/informers:go_default_library",
|
2020-06-23 22:12:14 +00:00
|
|
|
"//staging/src/k8s.io/client-go/kubernetes:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//staging/src/k8s.io/client-go/rest:go_default_library",
|
2019-04-07 17:07:55 +00:00
|
|
|
"//staging/src/k8s.io/component-base/cli/flag:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//staging/src/k8s.io/component-base/featuregate:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//vendor/github.com/spf13/pflag:go_default_library",
|
|
|
|
"//vendor/k8s.io/klog:go_default_library",
|
2020-06-23 22:12:14 +00:00
|
|
|
"//vendor/k8s.io/kube-openapi/pkg/common:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
)
|
|
|
|
|
|
|
|
go_test(
|
|
|
|
name = "go_default_test",
|
|
|
|
srcs = [
|
|
|
|
"admission_test.go",
|
|
|
|
"authentication_test.go",
|
|
|
|
"authorization_test.go",
|
2020-03-26 21:07:15 +00:00
|
|
|
"plugins_test.go",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
2020-03-26 21:07:15 +00:00
|
|
|
data = glob(["testdata/**"]),
|
2019-01-12 04:58:27 +00:00
|
|
|
embed = [":go_default_library"],
|
|
|
|
deps = [
|
|
|
|
"//pkg/kubeapiserver/authenticator:go_default_library",
|
|
|
|
"//pkg/kubeapiserver/authorizer/modes:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apimachinery/pkg/util/errors:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/authenticator:go_default_library",
|
|
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/authenticatorfactory:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//staging/src/k8s.io/apiserver/pkg/authentication/request/headerrequest:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
"//staging/src/k8s.io/apiserver/pkg/server/options:go_default_library",
|
2019-12-12 01:27:03 +00:00
|
|
|
"//vendor/github.com/google/go-cmp/cmp:go_default_library",
|
2019-01-12 04:58:27 +00:00
|
|
|
],
|
|
|
|
)
|
2020-03-26 21:07:15 +00:00
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "package-srcs",
|
|
|
|
srcs = glob(["**"]),
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:private"],
|
|
|
|
)
|
|
|
|
|
|
|
|
filegroup(
|
|
|
|
name = "all-srcs",
|
|
|
|
srcs = [":package-srcs"],
|
|
|
|
tags = ["automanaged"],
|
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
)
|