-
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 ResolvePodSpec to podspec.go and move the related utilities to podspec_helper #1024
Conversation
f01df84
to
89a44ab
Compare
89a44ab
to
4cfdb6e
Compare
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 for doing this.
/test pull-knative-client-integration-tests
4cfdb6e
to
610519d
Compare
/test pull-knative-client-integration-tests-latest-release |
610519d
to
a2993c7
Compare
a2993c7
to
8a07eea
Compare
/retest |
I will rebase it when #1068 gets merged. Let's see if the lint test could pass. |
3158cdc
to
487b022
Compare
@maximilien @rhuss @navidshaikh @dsimansk I think this one is ready for review. Will you take a look ? Thank you. |
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.
As per meeting yesterday, this is good to go, right @navidshaikh ?
LGTM
c5ac135
to
753a0f3
Compare
753a0f3
to
da55b40
Compare
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, please remove the commented code and add a CHANGELOG entry, we should be good to merge then.
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.
/lgtm
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: daisy-ycguo, 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 |
Description
It's a refactor PR. The goal is to add a method
in
flags/podspec.go
so that the logic to resolve a PodSpec from flags can be used by both service commands group and ContainerSource commands group.This PR demonstrates how
PodSpecFlags.ResolvePodSpec
is used in service commands. PR #1016 demonstrates howPodSpecFlags
andPodSpecFlags.ResolvePodSpec
is used in container source commands.Changes
ResolvePodSpec
inflags/podspec.go
serving/config_changes.go
toflags/podspec_helper.go
serving/config_changes.go
toutils/corev1_helper.go
Reference
Refer to PR #1016 and see how
PodSpecFlags.ResolvePodSpec
is used in container source commands group.