Merge pull request #89904 from alculquicondor/raw-extension-plugin-args

Use RawExtension and Object for external and internal, respectively, scheduling plugin args
This commit is contained in:
Kubernetes Prow Robot
2020-04-15 15:22:59 -07:00
committed by GitHub
45 changed files with 148 additions and 111 deletions

View File

@@ -204,6 +204,8 @@ profiles:
- name: baz
pluginConfig:
- name: foo
args:
bar: baz
`, configKubeconfig)), os.FileMode(0600)); err != nil {
t.Fatal(err)
}
@@ -543,7 +545,10 @@ profiles:
PluginConfig: []kubeschedulerconfig.PluginConfig{
{
Name: "foo",
Args: runtime.Unknown{},
Args: &runtime.Unknown{
Raw: []byte(`{"bar":"baz"}`),
ContentType: "application/json",
},
},
},
},
@@ -608,7 +613,6 @@ profiles:
PluginConfig: []kubeschedulerconfig.PluginConfig{
{
Name: "foo",
Args: runtime.Unknown{},
},
},
},
@@ -666,7 +670,7 @@ profiles:
PluginConfig: []kubeschedulerconfig.PluginConfig{
{
Name: "InterPodAffinity",
Args: runtime.Unknown{
Args: &runtime.Unknown{
Raw: []byte(`{"hardPodAffinityWeight":5}`),
},
},
@@ -760,7 +764,7 @@ profiles:
}
if diff := cmp.Diff(tc.expectedConfig, config.ComponentConfig); diff != "" {
t.Errorf("incorrect config (-want, +got):\n%s", diff)
t.Errorf("incorrect config (-want,+got):\n%s", diff)
}
// ensure we have a client