-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/operator-sdk/build: fix handling of spaces within quotes
Before when running `operator-sdk build` with an `--image-build-arg` of something like `--label some.name="First Last"` then `operator-sdk` would invoke the builder with ["--label", "some.name=First", "Last"], when it was actually desired to be ["--label", "some.name=First Last"]. Using `shlex` handles all the appropriate parsing of spaces within quotes unlike `strings.Fields` which just splits on any spaces regardless of context like quotes. Switching to `shlex` enables `operator-sdk build` to now properly handle spaces within quotes.
- Loading branch information
1 parent
76b9041
commit 6d8048e
Showing
4 changed files
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters