Skip to content
New issue

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

Misleading description about Runtime Parameters #713

Closed
kurokobo opened this issue Dec 23, 2022 · 0 comments · Fixed by #714
Closed

Misleading description about Runtime Parameters #713

kurokobo opened this issue Dec 23, 2022 · 0 comments · Fixed by #714

Comments

@kurokobo
Copy link
Contributor

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

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,

...
- work-command:
    workType: listcontents
    command: ls
    params: -a
    allowruntimeparams: true

ls -a -l /root has been invoked by specifing --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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant