Merge pull request #84148 from gongguan/filter_plugin

[migration phase 1] Add filter plugin for cloud provider storage predicate
This commit is contained in:
Kubernetes Prow Robot
2019-10-21 21:12:19 -07:00
committed by GitHub
14 changed files with 1794 additions and 64 deletions

View File

@@ -129,11 +129,6 @@ func TestSchedulerCreationFromConfigMap(t *testing.T) {
"kind" : "Policy",
"apiVersion" : "v1"
}`,
expectedPredicates: sets.NewString(
"MaxAzureDiskVolumeCount",
"MaxEBSVolumeCount",
"MaxGCEPDVolumeCount",
),
expectedPrioritizers: sets.NewString(
"InterPodAffinityPriority",
"SelectorSpreadPriority",
@@ -147,7 +142,10 @@ func TestSchedulerCreationFromConfigMap(t *testing.T) {
{Name: "NodeAffinity"},
{Name: "VolumeRestrictions"},
{Name: "TaintToleration"},
{Name: "EBSLimits"},
{Name: "GCEPDLimits"},
{Name: "NodeVolumeLimits"},
{Name: "AzureDiskLimits"},
{Name: "VolumeBinding"},
{Name: "VolumeZone"},
{Name: "InterPodAffinity"},
@@ -209,11 +207,6 @@ priorities:
policy: `apiVersion: v1
kind: Policy
`,
expectedPredicates: sets.NewString(
"MaxAzureDiskVolumeCount",
"MaxEBSVolumeCount",
"MaxGCEPDVolumeCount",
),
expectedPrioritizers: sets.NewString(
"InterPodAffinityPriority",
"SelectorSpreadPriority",
@@ -227,7 +220,10 @@ kind: Policy
{Name: "NodeAffinity"},
{Name: "VolumeRestrictions"},
{Name: "TaintToleration"},
{Name: "EBSLimits"},
{Name: "GCEPDLimits"},
{Name: "NodeVolumeLimits"},
{Name: "AzureDiskLimits"},
{Name: "VolumeBinding"},
{Name: "VolumeZone"},
{Name: "InterPodAffinity"},