-
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
Separate PodSpec flags from Service flags #943
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.
Looks good to me (with a minor renaming suggestion).
I think this would be also a candidate later for the /lib
shared code, which is still pending (#889)
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.
Missing a little bit of coverage. Thanks.
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.
Missing a little bit of coverage. Thanks.
Thank you. I added my unit tests in the new version.
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.
I think we can improve how we add the pod spec flags to configuration edit flags.
Please address comments, otherwise LGTM |
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
I see NamePrefix
carried forward, which is not referred any where, can we remove that and commented code? + please add CHANGELOG
Labels []string | ||
LabelsService []string | ||
LabelsRevision []string | ||
NamePrefix string |
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.
we dont seem to refer NamePrefix
anywhere?
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.
removed.
@navidshaikh I addressed your comments in the third commit. Please review again. Thank you. |
CHANGELOG.adoc
Outdated
@@ -18,6 +18,10 @@ | |||
|=== | |||
| | Description | PR | |||
|
|||
| 🐣 | |||
| Separate PodSpecFlags from Service ConfigurationEditFlags | |||
| https://github.com/knative/client/pull/915[#915] |
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.
| https://github.com/knative/client/pull/915[#915] | |
| https://github.com/knative/client/pull/943[#943] |
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.
thank you for finding this. I fixed it.
The following is the coverage report on the affected files.
|
/test pull-knative-client-integration-tests |
1 similar comment
/test pull-knative-client-integration-tests |
/retest |
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: daisy-ycguo, 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 |
* seperate PodSpec from Service flags * loop over flag names * remove NamePrefix and commented code, add changelog * update pr number in changelog.adoc
Description
Separate the PodSpec flags from Service flags. Create a common flag PodFlags which could be used for Service commands and ContainerSource commands
Changes
pkg/kn/flags
as a set of common flags for commands who accept PodSpec flagsReference
Fixes #935