-
Notifications
You must be signed in to change notification settings - Fork 263
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
Add support for cmd and args when creating a new service #604
Comments
Thanks this would be a very helpful addition (i hope tha cmd and args are part of the Knative contract ;-). I suggest to use the following additional options:
For |
Another option for the args is to make it the last thing on the command line, then they could just do: |
Well, that interfers with the name (imaging someone forgets the name then the first arg is taken as name). I'd like to reserve non-option slot explicitly for names/identifiers, not for rarely used features. Also, there is no support for detecting whether arguments come last or in between. |
The |
Yes, but then you could have to put the service name after the double dash, too, intermixing identifiers and args. Also, you would then require to use the dash. Imo not something easy to memorize. Is it really that important and do you expect many args to make |
I didn't follow your intermixing comment. But, my mind jumps to something like So, unless we can think of another set of cmd line args that might want to make sure of I do agree, this isn't huge since I don't expect it to be used very often, but if |
Ah, I see now where you come from: kubectl run (and to some degree But have you tried this with
all are the same, some of them more confusing than others. (btw, just can just drop the All what matters here is the order of arguments (regardless of the --), and the first argument is the name of the pod, all others are arguments. You can put the arguments anywhere in between options, its just doesn't matter. For Docker its even more confusing, as there will be an implicit |
Tbh, I really would like to keep that convention: The only argument is the name. (Remember the discussion about adding the image as an argument, because its not an 'option' but mandatory for |
/assign @dsimansk |
@navidshaikh: GitHub didn't allow me to assign the following users: dsimansk. Note that only knative members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign @dsimansk |
In what area(s)?
Classifications:
/kind good-first-issue
/kind feature
/kind proposal
Describe the feature:
Knative, via yaml, supports specifying the cmd and args in the podSpec - kn should support this too since there are times when people may need to specify which exe in the image to run or what args to pass to the exe. Sometimes the default values in the image are not sufficient.
The text was updated successfully, but these errors were encountered: