Strip strings of container commands before splitting by whitespace.
A trailing whitespace will result an extra empty argument which will then be parsed to a newline on the pod yaml and prevent the container from getting its arguments (if provided from the container args field).
A leading whitespace will result in the command itself being parsed as an argument.
ps.
I remove trailing whitespace on save, so the PR include some cleanups of unrelated code.
Strip strings of container commands before splitting by whitespace. A trailing whitespace will result an extra empty argument which will then be parsed to a newline on the pod yaml and prevent the container from getting its arguments (if provided from the container args field). A leading whitespace will result in the command itself being parsed as an argument.
ps. I remove trailing whitespace on save, so the PR include some cleanups of unrelated code.