-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Respect Topology when assigning floating ips or not #9701
Respect Topology when assigning floating ips or not #9701
Conversation
832fb51
to
99d6f3b
Compare
99d6f3b
to
e69ce0f
Compare
) | ||
|
||
func openstackValidateCluster(c *kops.Cluster) (errList field.ErrorList) { | ||
if c.Spec.CloudConfig.Openstack.Router != nil && c.Spec.CloudConfig.Openstack.Router.ExternalNetwork == nil { |
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.
But public topology doesn't require an external network when there's no router?
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.
Public topology means using floating IPs. In order to use floating IPs you need both an external network and you need a router (which handles traffic between internal and external network). So public topology is not possible without one.
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.
But this validation code skips the topology check if c.Spec.CloudConfig.Openstack.Router
is nil
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.
Ah. That is quite a bug. Fixed now. And added some tests as well.
e69ce0f
to
6ea564b
Compare
6ea564b
to
815b284
Compare
/retest |
815b284
to
fbcdeb2
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: johngmyers, olemarkus 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 |
This is a commit that got lost from #9560, I think. Without this, kops will unconditionally add floating IPs even though openstack setup doesn't support it resulting in an npr.
/kind bug