-
Notifications
You must be signed in to change notification settings - Fork 2.7k
feat(cloudflare): improve cloudflare regional hostnames implementation #5309
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
feat(cloudflare): improve cloudflare regional hostnames implementation #5309
Conversation
Hi @vflaux. 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. |
95d3d67
to
fd10d2b
Compare
probably worth to create cloudflare_regional file and move logic there. Would you be able to share manifests files and all arguments you are using and how you do integration testing? |
8fb6d98
to
f5eb952
Compare
@ivankatliarchuk I moved the logic & tests to their dedicated file as you suggested. I use the following flags to test :
I run external-dns with Tests :
|
A lot of stuff, but not sure if there is a way to split pull request. Do you think you could move to separate PRs
This may take time to get an approval as is |
/ok-to-test |
f5eb952
to
1aac3ec
Compare
I opened a new PR with some changes from this one: #5329 |
1aac3ec
to
ebb83d4
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.
let's fix linter so then we could review the rest
Could you also share manifest and end-2-end smoke tests results
2db4156
to
41a2798
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.
Would you be able to share the Kubernetes manifests and the results from your smoke tests?
41a2798
to
d24dc42
Compare
@vflaux Have you tested this PR on a real environment ? We will make a new release next week. If you can fix the ci issue on linter, maybe it can be a part of this release. @ivankatliarchuk Anything left on your side ? |
d24dc42
to
628f1f8
Compare
@ivankatliarchuk i've added new tests to cover failures cases. @mloiseleur I've run a previous version of this PR on testing & production environments but I now use the official build again. |
- add flag to enable regional hostname feature - support deletion of regional hostname on annotation edit - correctly support differences detection with cloudflare state - increased tests coverage
628f1f8
to
bbe5d42
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
Just a quick note for the future — I know we created a slice for this PR already, but next time this approach could be hardly acceptable. There are too many changes packed into one: slight refactoring, new features, and behavior improvements all in a single PR. This increases the risk significantly. A lot can go wrong in a scenario like this. From PC looks manageable, from phone - not really 😳 The bright side is the test coverage bump. Will see where or not we could trust or unit test framework ;-) Worth to update the PR description if it's not up to date. |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: 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 |
…5309) - add flag to enable regional hostname feature - support deletion of regional hostname on annotation edit - correctly support differences detection with cloudflare state - increased tests coverage Co-authored-by: Michel Loiseleur <[email protected]>
Description
Improves my previous implementation of Cloudflare Regional Services (aka Regional Hostnames) by:
This implementation use a call to list regional hostnames on the zone and use them to plan changes on cloudflare.
Checklist