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
[release-4.9] Bug 2057518: Normalize the AWS internal LB annotation value #706
[release-4.9] Bug 2057518: Normalize the AWS internal LB annotation value #706
Conversation
The AWS cloud-provider implementation checks the service.beta.kubernetes.io/aws-load-balancer-internal service annotation to determine whether a service load-balancer (SLB) should be internal. The cloud-provider implementation recognizes both the value "0.0.0.0/0" and the value "true" as indicating that the SLB should be internal. OpenShift 4.7 and earlier use the value "0.0.0.0/0", and OpenShift 4.8 and later use the value "true". A service that was created on an older cluster might have the value "0.0.0.0/0", which can cause comparisons that check for the "true" value to return the wrong result. This commit adds logic to normalize the annotation value to "true". Follow-up to commit 3abcba5 and commit 4cc59f5. This commit fixes bug 2055470. https://bugzilla.redhat.com/show_bug.cgi?id=2055470 * pkg/operator/controller/ingress/load_balancer_service.go (ensureLoadBalancerService): Call the new normalizeLoadBalancerServiceAnnotations method to normalize the AWS internal LB annotation. (normalizeLoadBalancerServiceAnnotations): New method. Normalize the service.beta.kubernetes.io/aws-load-balancer-internal service annotation by replacing the value "0.0.0.0/0" with the value "true". * test/e2e/operator_test.go (TestInternalLoadBalancer): Verify that the operator updates the old "0.0.0.0/0" annotation value to "true".
@Miciah: This pull request references Bugzilla bug 2057518, which is invalid:
Comment 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 kubernetes/test-infra repository. |
/lgtm /retest-required |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Miciah, rfredette 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 |
/bugzilla refresh Recalculating validity in case the underlying Bugzilla bug has changed. |
@openshift-bot: This pull request references Bugzilla bug 2057518, which is invalid:
Comment 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 kubernetes/test-infra repository. |
/bugzilla refresh |
@Miciah: This pull request references Bugzilla bug 2057518, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 6 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 kubernetes/test-infra repository. |
/label qe-approved |
/label cherry-pick-approved |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
4 similar comments
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
/retest-required Please review the full test history for this PR and help us cut down flakes. |
@Miciah: 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. |
@Miciah: All pull requests linked via external trackers have merged: Bugzilla bug 2057518 has been moved to the MODIFIED state. 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 kubernetes/test-infra repository. |
This is a manual cherry-pick of #705.
/assign @rfredette