@@ -749,9 +749,11 @@ func TestValidateMixedArguments(t *testing.T) {
749
749
// Expected to succeed, --config is mixed with skip-* flags only or no other flags
750
750
{[]string {"--config=hello" , "--skip-token-print=true" }, true },
751
751
{[]string {"--config=hello" , "--ignore-preflight-errors=baz" , "--skip-token-print" }, true },
752
+ {[]string {"--config=hello" , "--yes=true" }, true },
752
753
// Expected to fail, --config is mixed with the --foo flag
753
754
{[]string {"--config=hello" , "--ignore-preflight-errors=baz" , "--foo=bar" }, false },
754
755
{[]string {"--config=hello" , "--foo=bar" }, false },
756
+ {[]string {"--config=hello" , "--yes=true" , "--foo=bar" }, false },
755
757
// Expected to fail, --config is mixed with the upgrade related flag
756
758
{[]string {"--config=hello" , "--allow-experimental-upgrades" }, false },
757
759
}
@@ -767,6 +769,7 @@ func TestValidateMixedArguments(t *testing.T) {
767
769
f .StringSliceVar (& ignorePreflightErrors , "ignore-preflight-errors" , ignorePreflightErrors , "flag not bound to config object" )
768
770
f .Bool ("allow-experimental-upgrades" , true , "upgrade flags for plan and apply command" )
769
771
f .Bool ("skip-token-print" , false , "flag not bound to config object" )
772
+ f .Bool ("yes" , false , "flag not bound to config object" )
770
773
f .StringVar (& cfgPath , "config" , cfgPath , "Path to kubeadm config file" )
771
774
if err := f .Parse (rt .args ); err != nil {
772
775
t .Fatal (err )
0 commit comments