-
Notifications
You must be signed in to change notification settings - Fork 157
OCPBUGS-55962: Inter advertised UDN isolation configurable #2569
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
base: master
Are you sure you want to change the base?
OCPBUGS-55962: Inter advertised UDN isolation configurable #2569
Conversation
b8124a9
to
2f9dcd9
Compare
2f9dcd9
to
cbf902e
Compare
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: pperiyasamy The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
b8fad75
to
b09dee2
Compare
@pperiyasamy: This pull request references Jira Issue OCPBUGS-55962, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: The bug has been updated to refer to the pull request using the external bug tracker. 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. |
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 overall.
I think you are missing a check in configureAdvertisedNetworkIsolation
as well.
// UDNLooseIsolation allows communication between two advertised UDN networks. | ||
UDNLooseIsolation string = "loose" | ||
// UDNLooseIsolation drops communication between two advertised UDN networks. | ||
UDNSecureIsolation string = "secure" |
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.
NIT: I would remove this variable since it is not used 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.
done.
@@ -1554,3 +1562,10 @@ func ParseNetworkName(networkName string) (udnNamespace, udnName string) { | |||
} | |||
return "", "" | |||
} | |||
|
|||
// IsLooseUDNIsolation returns true if two UDN networks are not configured to be |
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 would mention that this regards pod to pod on advertised networks isolation. The host->udn isolation is still in place with this pr.
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.
updated the comment.
The ovnk by default isolates advertised UDN networks isolated from each other, but there is a requirement to disable isolation so that BGP routing functionality can be tested between different UDN networks. Hence this commit consumes the UDN_ISOLATION_MODE env variable and isolation can be determined accordingly. By default it uses secure mode to isolate the networks and it can be overridden by CNO via config map. Signed-off-by: Periyasamy Palanisamy <[email protected]>
b09dee2
to
45d72b1
Compare
ok @kyrtapz, thought it would be no harm having those address sets lying there. but anyway added check now for |
@pperiyasamy: The following tests failed, say
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-sigs/prow repository. I understand the commands that are listed here. |
No description provided.