-
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 command and args in service create #635
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dsimansk: 0 warnings.
In response to this:
Fixes #604
Proposed Changes
- Add new flags
--cmd
and--arg
--cmd
accepts a singlestring
input--arg
can be used multiple times to provide as many as neeed- Examples:
- --cmd /app/start
- --cmd /app/start --arg myArg
- --arg myArg1 --arg --myArg2 --arg myArg3=3.
Even though
podSpec.Command
acceptsstringArray
and arguments can be passed directly to this field. Per discussion on #604 I've decided to follow more verbose and strict approach to make a clear distinction to improve usability and user-exp./assign @rhuss
/assign @navidshaikh
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.
Welcome @dsimansk! It looks like this is your first PR to knative/client 🎉 |
Hi @dsimansk. Thanks for your PR. I'm waiting for a knative member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
/ok-to-test |
The following is the coverage report on the affected files.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks ! Looks good to me.
Maybe you could add some E2E tests in an additional PR ? (like the other e2e tests that you find in the test/
directory.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, rhuss The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fixes #604
Proposed Changes
--cmd
and--arg
--cmd
accepts a singlestring
input--arg
can be used multiple times to provide as many as neeedEven though
podSpec.Command
acceptsstringArray
and arguments can be passed directly to this field. Per discussion on #604 I've decided to follow more verbose and strict approach to make a clear distinction to improve usability and user-exp./assign @rhuss
/assign @navidshaikh