-
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
fix: Fix service export example doc #1006
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:
Description
Example of
service export
doesn't contain actual--mode
parameters.Changes
- Fix parameters in the
service export
exampleReference
Fixes #N/A
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.
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.
Good catch and /lgtm
How cool would it be to have a test that scrapes all commands’ descriptions and try to execute and validate :) them? Turns out @cppforlife and I did that in knctl and I believe he kept that going on the k14s
tools. I never got around adding this here but not impossible...
Let me know if interested and we can add and track and execute this as a follow-up issue.
/ok-to-test
pkg/kn/commands/service/export.go
Outdated
# Export a service in JSON format | ||
kn service export foo -n bar -o json | ||
# Export a service with revisions | ||
kn service export foo --with-revisions --mode=resources -n bar -o json | ||
kn service export foo --with-revisions --mode=export -n bar -o json | ||
# Export services in kubectl friendly format, as a list kind, one service item for each revision | ||
kn service export foo --with-revisions --mode=kubernetes -n bar -o json`, | ||
kn service export foo --with-revisions --mode=replay -n bar -o json`, |
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.
should we add a line separator in each example with this to align with other command examples?
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.
Sure, will do.
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.
PTAL 4aaab55.
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.
/lgtm
/approve
thanks!
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk, maximilien, navidshaikh 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 |
* fix: Fix service export example doc * chore: Update changelog * fix: Add newline divider
Description
Example of
service export
doesn't contain actual--mode
parameters.Changes
service export
exampleReference
Fixes #N/A