-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
OCPBUGS-36553: VSphere: add vips to machinenetwork #9526
base: main
Are you sure you want to change the base?
Conversation
@patrickdillon: This pull request references Jira Issue OCPBUGS-36553, which is invalid:
Comment 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. |
func vipsToCIDRs(vips []string) []configv1.CIDR { | ||
var cidrs []configv1.CIDR | ||
for _, vip := range vips { | ||
mask := "/32" | ||
if strings.Contains(vip, ":") { | ||
mask = "/64" | ||
} | ||
cidrs = append(cidrs, configv1.CIDR(vip+mask)) | ||
} | ||
return cidrs | ||
} |
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.
How bad is this? I have little idea what I'm doing, so please help!
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.
For IPv6 let's use :128
if the desire is to add a single IP address
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.
Also, the logic of checking if IP address is IPv6 by checking if it contains :
is quite error-prone, but for what we are doing here it should not matter (i.e. nothing is going to break if you add /32 when you wanted to add /128)
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.
Thanks! Updated.
/jira refresh |
@patrickdillon: This pull request references Jira Issue OCPBUGS-36553, 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: 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 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 |
Appends the ingress and api vips to the machinenetworks in the cluster infrastructure object, because the cluster network operator checks to ensure that the machinenetwork contains those vips. In some edge cases we have seen valid configurations fail when the VIPs appear to be outside the valid range.
Removes usage of the deprecated APIVIP and IngressVIP fields.
5c929d5
to
42e61c6
Compare
Added a new commit to remove the deprecated APIVIP & IngressVIP fields. |
/retest-required |
@patrickdillon: 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. |
Appends the ingress and api vips to the machinenetworks in the cluster infrastructure object, because the cluster network operator checks to ensure that the machinenetwork contains those vips. In some edge cases we have seen valid configurations fail when the VIPs appear to be outside the valid range.
Here are some dumps of what the infrastructure manifest looks like (these were captured during unit tests):
Single Stack
Spec:
Status:
Dual Stack
Spec
Status
/cc @mkowalski @jcpowermac @rvanderp3