A mapping from predicates/priorities to pluing configuration.

This PR only implements the mapping, but does not use it. A followup PR will use this mapping to produce a framework configuration that redirects mapped predicates/priorites to be exected as plugins.
This commit is contained in:
Abdullah Gharaibeh
2019-09-25 20:41:48 -04:00
parent 0541d0bb79
commit a57ac0725a
4 changed files with 228 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
go_library(
name = "go_default_library",
@@ -6,6 +6,7 @@ go_library(
importpath = "k8s.io/kubernetes/pkg/scheduler/framework/plugins",
visibility = ["//visibility:public"],
deps = [
"//pkg/scheduler/apis/config:go_default_library",
"//pkg/scheduler/framework/plugins/noop:go_default_library",
"//pkg/scheduler/framework/v1alpha1:go_default_library",
],
@@ -28,3 +29,13 @@ filegroup(
tags = ["automanaged"],
visibility = ["//visibility:public"],
)
go_test(
name = "go_default_test",
srcs = ["default_registry_test.go"],
embed = [":go_default_library"],
deps = [
"//pkg/scheduler/apis/config:go_default_library",
"//vendor/github.com/google/go-cmp/cmp:go_default_library",
],
)