kubeadm: cri-socket is not allowed for mixed configuration

Set the `cri-socket` both in flags and config file will hit errors,
this should not be a valid case to validate in current testcases.

Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
Dave Chen 2022-11-03 10:30:31 +08:00
parent bd43394467
commit aae1f2a85f
2 changed files with 2 additions and 2 deletions

View File

@ -100,7 +100,7 @@ func TestNewInitData(t *testing.T) {
}, },
}, },
{ {
name: "--cri-socket and --node-name flags override config from file", name: "--node-name flags override config from file",
flags: map[string]string{ flags: map[string]string{
options.CfgPath: configFilePath, options.CfgPath: configFilePath,
options.NodeName: "anotherName", options.NodeName: "anotherName",

View File

@ -208,7 +208,7 @@ func TestNewJoinData(t *testing.T) {
}, },
}, },
{ {
name: "--cri-socket and --node-name flags override config from file", name: "--node-name flags override config from file",
flags: map[string]string{ flags: map[string]string{
options.CfgPath: configFilePath, options.CfgPath: configFilePath,
options.NodeName: "anotherName", options.NodeName: "anotherName",