Merge pull request #10775 from rifelpet/kubetest2-space

Kubetest2 - Fix splitting of --create-args
This commit is contained in:
Kubernetes Prow Robot 2021-02-09 08:45:16 -08:00 committed by GitHub
commit 29047fff56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -94,7 +94,11 @@ func (d *deployer) createCluster(zones []string, adminAccess string) error {
}
if d.CreateArgs != "" {
args = append(args, shlex.Split(d.CreateArgs)...)
createArgs, err := shlex.Split(d.CreateArgs)
if err != nil {
return err
}
args = append(args, createArgs...)
}
args = appendIfUnset(args, "--admin-access", adminAccess)
args = appendIfUnset(args, "--master-count", "1")