Skip to content
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 #1540 source: explicitly handle default annotations #1560

Closed
wants to merge 1 commit into from

Conversation

squat
Copy link
Contributor

@squat squat commented May 7, 2020

This commit fixes a bug that causes the Cloudflare provider to delete
and recreate all records every minute.
The controller is running into trouble when reconciling endpoints with
values with implicit defaults. This is caused because the providers
produce records with all values explicitly set, however the sources
generate endpoints with implicit provider-specific values, i.e. when an
annotation is not set. This causes the planner to always detect a diff.

Fixes: #1540

Signed-off-by: Lucas Servén Marín lserven@gmail.com

@k8s-ci-robot k8s-ci-robot added do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 7, 2020
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: squat
To complete the pull request process, please assign hjacobs
You can assign the PR to them by writing /assign @hjacobs in a comment when ready.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot requested review from hjacobs and Raffo May 7, 2020 13:49
@k8s-ci-robot
Copy link
Contributor

Welcome @squat!

It looks like this is your first PR to kubernetes-sigs/external-dns 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/external-dns has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label May 7, 2020
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label May 7, 2020
@squat squat changed the title source: explicitly handle default annotations Fix #1540 source: explicitly handle default annotations May 8, 2020
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 17, 2020
This commit fixes a bug that causes the Cloudflare provider to delete
and recreate all records every minute.
The controller is running into trouble when reconciling endpoints with
values with implicit defaults. This is caused because the providers
produce records with all values explicitly set, however the sources
generate endpoints with implicit provider-specific values, i.e. when an
annotation is not set. This causes the planner to always detect a diff.

xref: kubernetes-sigs#1540

Signed-off-by: Lucas Servén Marín <lserven@gmail.com>
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 18, 2020
@squat
Copy link
Contributor Author

squat commented May 18, 2020

ping @sheerun, since you are the new owner for the cloudflare provider :)
This PR fixes #1540. This is now rebased since the latest cloudflare changes were merged in the last day

@sheerun
Copy link
Contributor

sheerun commented May 18, 2020

@squat #1536 fixes this issue in more generalized way, allowing custom comparators

@squat
Copy link
Contributor Author

squat commented May 18, 2020

sounds good, I didn't want to go that route to avoid adding extra complexity to the system but I am happy with simply having a fix. Let's close 1540 as a dupe of 1463 for better visibility and you can close this PR if you like (:

@k8s-ci-robot
Copy link
Contributor

@squat: PR needs rebase.

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.

@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label May 18, 2020
@Raffo
Copy link
Contributor

Raffo commented May 30, 2020

Should we close this one @sheerun ?

@sheerun
Copy link
Contributor

sheerun commented May 30, 2020

Yes I think so, #1536 will be merged very soon

/close

@k8s-ci-robot
Copy link
Contributor

@sheerun: Closed this PR.

In response to this:

Yes I think so, #1536 will be merged very soon

/close

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

external-dns keep updating record every 1 min for provider cloudflare and upsert-only policy.
4 participants