Repository navigation
Add support for namespace for all commands that takes a --sink option - #1264
Conversation
knative-prow-robot
left a comment
There was a problem hiding this comment.
@Kaustubh-pande: 0 warnings.
Details
In response to this:
Description
This PR will add support for the namespace that takes a '--sink' option currently, we only resolve sink references in the current namespace but, with this PR user can able to refer the sink in another namespace.
if users pass the namespace--sink ksvc:mysvc:my-namespacewhich creates a destination that points to the my-namespace namespace, namespace support is optional, if the user not provided the namespace then-current namespace will be usedChanges
- Add support for namespaces for all commands that take a --sink option
Reference
Fixes #1143
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.
|
Hi @Kaustubh-pande. 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. DetailsInstructions 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. |
|
Thanks! |
|
@Kaustubh-pande We should add e2e tests for this. e2e tests under dir |
33cac16 to
27b9d47
Compare
maximilien
left a comment
There was a problem hiding this comment.
Thanks for this and adding all tests. Leaving it to others to review since I did not have a need for it but I can see the value
27b9d47 to
b71f93b
Compare
dsimansk
left a comment
There was a problem hiding this comment.
/lgtm
@navidshaikh could take a final look pls?
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dsimansk The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold Adding hold for other to take a look. |
navidshaikh
left a comment
There was a problem hiding this comment.
a nit otherwise lgtm
b71f93b to
95bbd13
Compare
|
The following is the coverage report on the affected files.
|
|
It should be good to go as Navid's last comment was addressed. |
|
@dsimansk @navidshaikh @Kaustubh-pande I see an issue here when using a sink without a prefix (which is a ksvc) with a namespace. How to distinguish this from the case prefix + service without namespace ? I.e. given |
|
@rhuss : Correct. When referring to knative service without prefix, it has to be in the same namespace else for knative service in different namespace, |
for referring to a Knative service in another namespace by 'ksvc' prefix explicitly, for e.g. 'ksvc:name:namespace' xref: knative#1264
for referring to a Knative service in another namespace by 'ksvc' prefix explicitly, for e.g. 'ksvc:name:namespace' xref: knative#1264
Do we get also an error when our service is called |
In this case, it'd try to resolve broker |
for referring to a Knative service in another namespace by 'ksvc' prefix explicitly, for e.g. 'ksvc:name:namespace' xref: #1264
Description
This PR will add support for the namespace that takes a '--sink' option currently, we only resolve sink references in the current namespace but, with this PR user can able to refer the sink in another namespace.
if users pass the namespace
--sink ksvc:mysvc:my-namespacewhich creates a destination that points to the my-namespace namespace, namespace support is optional, if the user not provided the namespace then-current namespace will be usedChanges
Reference
Fixes #1143