We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Passing options or flags to the work command needs to be done using the --param parameter to override the params work command setting. https://receptor.readthedocs.io/en/latest/workceptor.html#runtime-parameters
--param
params
It can be read as pre-configured work command settings can be overwritten/replaced by using --param params="hoge".
--param params="hoge"
I think add or append would be more appropriate, since it is actually appending without replacing pre-defined params setting.
With following configuration file,
... - work-command: workType: listcontents command: ls params: -a allowruntimeparams: true
ls -a -l /root has been invoked by specifing --param params="-l".
ls -a -l /root
--param params="-l"
# receptorctl work submit --rm --follow --no-payload --param params="-l" listcontents /root total 40 dr-xr-x---. 2 root root 196 Dec 6 16:24 . drwxr-xr-x. 1 root root 17 Dec 23 22:29 .. -rw-r--r--. 1 root root 18 Aug 10 2021 .bash_logout -rw-r--r--. 1 root root 141 Aug 10 2021 .bash_profile -rw-r--r--. 1 root root 429 Aug 10 2021 .bashrc -rw-r--r--. 1 root root 100 Aug 10 2021 .cshrc -rw-r--r--. 1 root root 129 Aug 10 2021 .tcshrc -rw-------. 1 root root 4115 Dec 6 16:24 anaconda-ks.cfg -rw-r--r--. 1 root root 95 Dec 6 16:24 anaconda-post-nochroot.log -rw-r--r--. 1 root root 435 Dec 6 16:24 anaconda-post.log -rw-------. 1 root root 3850 Dec 6 16:24 original-ks.cfg # receptorctl work submit --rm --follow --no-payload listcontents -- -l /root total 40 dr-xr-x---. 2 root root 196 Dec 6 16:24 . drwxr-xr-x. 1 root root 17 Dec 23 22:29 .. -rw-r--r--. 1 root root 18 Aug 10 2021 .bash_logout -rw-r--r--. 1 root root 141 Aug 10 2021 .bash_profile -rw-r--r--. 1 root root 429 Aug 10 2021 .bashrc -rw-r--r--. 1 root root 100 Aug 10 2021 .cshrc -rw-r--r--. 1 root root 129 Aug 10 2021 .tcshrc -rw-------. 1 root root 4115 Dec 6 16:24 anaconda-ks.cfg -rw-r--r--. 1 root root 95 Dec 6 16:24 anaconda-post-nochroot.log -rw-r--r--. 1 root root 435 Dec 6 16:24 anaconda-post.log -rw-------. 1 root root 3850 Dec 6 16:24 original-ks.cfg
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
It can be read as pre-configured work command settings can be overwritten/replaced by using
--param params="hoge"
.I think add or append would be more appropriate, since it is actually appending without replacing pre-defined
params
setting.With following configuration file,
ls -a -l /root
has been invoked by specifing--param params="-l"
.The text was updated successfully, but these errors were encountered: