gcloud run jobs update --args="--my_arg my,comma,delim,value"
results in the following job config yaml settings:
args:
- --my_arg my
- comma
- delim
- value
Using single quotes does NOT help:
gcloud run jobs update --args="--my_arg 'my,comma,delim,value'"
results in:
args:
- --my_arg 'my
- comma
- delim
- value'
So, the gcloud run jobs CLI appears to not comma-delimited arg values AT ALL, since for some reason, users MUST provide multiple args with comma delimiters (e.g., `
–args=“–arg1=foo,–arg2=bar”`).
Why doesn’t gcloud run jobs allow for multiple --args parameters, as is done for --env with docker run? That would make more sense, given the limitations of requiring comma-delimitation among parameters in --args.
I guess that works, but it’s a bit of a hack. I’m quite surprised that there parser doesn’t properly handle quoted text. It seems like a simple edit to the codebase.