Skip to content
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

Allow egress-router to connect to DNS IP #20115

Conversation

pravisankar
Copy link

This will address use case (2) in #20094 (comment)

@openshift-ci-robot openshift-ci-robot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Jun 27, 2018
@pravisankar
Copy link
Author

@openshift/sig-networking @knobunc @danwinship @ironcladlou PTAL

@@ -230,6 +230,22 @@ func (p *cniPlugin) CmdAdd(args *skel.CmdArgs) error {
if err := netlink.RouteAdd(route); err != nil {
return fmt.Errorf("failed to add route to service network: %v", err)
}

// Add a route to DNS IP via SDN
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should probably have a loop for this and the node IP and the service CIDR rather than having basically the same code three times. (If you just add "/32" to the end of the two IPs you can treat them all as CIDRs).

(And I think it does make sense to keep the node and service special cases, even with the DNS IP being handled explicitly, because there might be other reasons besides DNS that we care about access to those IPs in the future, and they are only available via the SDN interface.)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that was the same reason for keeping node IP and service CIDR routes.
Okay, I will create a loop for this.

@pravisankar pravisankar force-pushed the egress-router-add-dns-route branch from c28619b to 594e096 Compare June 27, 2018 23:35
@pravisankar
Copy link
Author

@danwinship @knobunc Updated, PTAL

@danwinship
Copy link
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 28, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: danwinship, pravisankar

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 28, 2018
@pravisankar
Copy link
Author

/retest

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

6 similar comments
@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jun 30, 2018

@pravisankar: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/launch-gcp c28619b link /test launch-gcp

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.

@openshift-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. sig/networking size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants