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

GH-38 validatie record on deletion #72

Merged
merged 1 commit into from
Apr 16, 2024
Merged

GH-38 validatie record on deletion #72

merged 1 commit into from
Apr 16, 2024

Conversation

maksymvavilov
Copy link
Contributor

Before removing the finalizer ensure that the DNS provider removed records

@maksymvavilov maksymvavilov linked an issue Apr 10, 2024 that may be closed by this pull request
@maksymvavilov maksymvavilov force-pushed the GH-38 branch 2 times, most recently from 90f705a to 26aa0b2 Compare April 11, 2024 14:35
@maksymvavilov maksymvavilov marked this pull request as ready for review April 11, 2024 14:50
@maksymvavilov maksymvavilov changed the title [WIP] GH-38 GH-38 Apr 11, 2024
@maksymvavilov maksymvavilov changed the title GH-38 GH-38 validatie record on deletion Apr 12, 2024
return ctrl.Result{RequeueAfter: requeueTime}, err
}
// requeue for validation
if requeueTime == validationRequeueTime {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok so delete was successful but we need to revalidate. Hmm this took me a while to figure out. Could we add a comment explaining that is what is happening here and why we do this comparison?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added more detailed comment

}
return err
return noRequeueDuration, err
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does noRequeueDuration have the effect as returning ctrl.Result{}, updateError?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes. The way it is interpreted: if err != nil it will ignore ctrl.Result{} entirely and will requeue immediately. If err == nil then it will look at instructions for requeue.
This makes me think that I might made it more confusing than it should be. There was a suggestion to just roam with the boolean flag saying if there were changes published or not and we decide on how to requeue in the very last step. I'm planning on having that implemented after the code freeze (but if that will make more sense could have it ready by the end of a day)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no leave as is for now and can follow up with improvements

@maleck13 maleck13 added this pull request to the merge queue Apr 16, 2024
Merged via the queue into main with commit e333baf Apr 16, 2024
9 checks passed
@maksymvavilov maksymvavilov deleted the GH-38 branch May 23, 2024 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Schedule removal of finalizer from DNS Records
2 participants