mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-16 06:32:32 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user