-
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
Allow AWS Route53 routing policy change to/from simple to others. #3222
Allow AWS Route53 routing policy change to/from simple to others. #3222
Conversation
Apologies @Raffo, and others, for the failed tests in the original PR. I overlooked committing a stashed update. cc: @njuettner |
@jessegonzalez it was my fault not running the tests. :) |
And now we have CI running on this build. 🚀 |
cc: @szuecs @njuettner @seanmalloy (for visibility, please review when time permits) |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jessegonzalez, szuecs 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 |
/assign @njuettner |
Possibly test changing the set identifier from one non-empty value to another non-empty value? |
@johngmyers that's a good point, yes. |
… for the AWS provider.
…y change from weighted to latency based routing.
cd20d2e
to
569571a
Compare
…quiresDeleteCreate() to see if change is UPSERT capable.
569571a
to
6580182
Compare
@szuecs Things started to get a bit messy, so I decided to refactor I added test cases as requested. edit: also updated provider/ovh/ovh.go to fix linting error. |
"github.com/ovh/go-ovh/ovh" | ||
log "github.com/sirupsen/logrus" | ||
"golang.org/x/sync/errgroup" |
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.
can you remove this change of an unrelated file? Thanks
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 ok linter error to fix is fine
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.
awesome!
/lgtm |
This version has a fix for issues converting simple record types to weighted (and vice-versa). kubernetes-sigs/external-dns#3222 If this fix Just Works, then there was a regression at some point.
Signed-off-by: @jessegonzalez
Description
This PR allows Route53 record updates to change the routing policy to/from simple from/to other routing policies. These record modifications do not support UPSERT, but instead, require DELETE/CREATE to succeed.
The AWS provider function createUpdateChanges has been updated with another conditional to test if one of the old/new set identifiers is the empty string and the other is not.
The AWS Provider test TestAWSApplyChanges has been updated to validate the change, and validated before PR submission.
Original PR: #3159 did not include stashed changes.
Local test output
Fixes #3144
Checklist