-
Notifications
You must be signed in to change notification settings - Fork 190
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
USHIFT-2261 USHIFT-2459: Add namespace ownership support for router #3075
Conversation
@pacevedom: This pull request references USHIFT-2459 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
/hold |
wait until #3066 is merged |
It looks like this PR includes the contents of #3066, is that right? If so, that's good, I'd like to land the code change and tests at the same time. Maybe we can close the other PR? |
Yes, I was hoping for a quick review of the implementation (as its simple) and then land the tests later (which are more complex). To have them pass the tests I included all the other commits here too and planned to remove them once #3066 merged. |
/test microshift-metal-tests |
/jira refresh |
@pacevedom: This pull request references USHIFT-2459 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
/unhold |
The function worked well: By default, the ROUTER_DISABLE_NAMESPACE_OWNERSHIP_CHECK in the router deployment was "true", two route with same host names but with different path were admitted and could curl the routes successfully. % oc -n openshift-ingress get deployment -oyaml | grep -A1 ROUTER_DISABLE_NAMESPACE_OWNERSHIP_CHECK % oc -n test get route
|
/label qe-approved |
@pacevedom: This pull request references USHIFT-2459 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "4.16.0" version, but no target version was set. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
@@ -69,6 +70,26 @@ | |||
} | |||
} | |||
}, | |||
"ingress": { |
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.
In your EP, you said you intended to expose this via:
router:
routerAdmissionPolicy:
namespaceOwnership: <Strict|InterNamespaceAllowed> # Defaults to InterNamespaceAllowed.
here, you're exposing it via ingress.routerAdmissionPolicy.namespaceOwnership - if the implementation is what we want, you should probably go back and fixup the EP.
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, will update it right away.
You might consider adding a test case which checks that the default (unconfigured) code path works as expected. Maybe another one for invalid configuration, but I wouldn't consider either test a blocker for merging this. /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jerpeter1, pacevedom 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 |
@pacevedom: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
Will add them in a separate PR. Thanks! |
Which issue(s) this PR addresses:
Closes #