-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
fix(oci): records with multiple IP addresses #4993
fix(oci): records with multiple IP addresses #4993
Conversation
Hi @jrosinsk. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
Hi @mloiseleur, this change will definitely impact a wide range of users who are dependent on the in-tree OCI provider. |
ac11c50
to
d854cef
Compare
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.
Just a single change request, rest lgm
/ok-to-test |
/retitle fix(oci): records with multiple IP addresses |
d854cef
to
71db397
Compare
2206609
to
6797848
Compare
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.
/lgtm
cc: @mloiseleur
… create a new record for each target.
6797848
to
97a9054
Compare
Added a couple more tests. |
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 to me!
/lgtm
/assign @Raffo |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ivankatliarchuk, jlamillan, mloiseleur 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 |
Description
The OCI provider currently does not support creating DNS records with multiple IP addresses. Below is example output from the current master branch code showing the failure.
This fix handles the case where multiple IP's are part of the operation request by breaking them apart into individual newRecordOperations and adjusts the endpoints so the records can be rectified accordingly.
Also adds a warning message, since OCI DNS does not support the set-identifier field in the actual DNS Record.
Below is the output and result of the same request that failed above on current master, but produces the expected results from this branch.
And here are the expected DNS results.
Updated the test framework and added tests to verify multiple records. Improved test code coverage from 67.2% -> 78.2%.
Also tested this change extensively in an OCI development cluster environment.
Fixes #4940
Checklist