-
Notifications
You must be signed in to change notification settings - Fork 11
txt records per hostname and owner #461
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
base: main
Are you sure you want to change the base?
Conversation
Record will be created with one target per key/value pair. | ||
Controller will be able to read records that will have multiple key/value pairs in one target. Also, if there are no extra labels to be stored the target will be `""` (not and empty string!) | ||
|
||
TXT records are stored alongside endpoints in the provider. Note that the deletion of the DNSRecord/endpoint not always results in the deletion of the corresponding endpoint in the provider but will always result in the deletion of the corresponding TXT record. The same is true about creation. This is because multiple owners can define the same endpoint, but they will always define unique TXT records. |
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.
Ignore this doc - I'll do it the last
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.
Updated. Hope this makes sense. I'm lacking in experience writing docs, but hopefully, this time it went ok.
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.
I only did a quick scan, left a couple of comments. I need to set some time aside to look at those txt registry changes more to better understand what is happening there.
f3a5d92
to
800baef
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.
I pulled this down and went through each provider using the multi record test, trying a few different combinations of records. It appears to create records correctly, but there are some issues with updates and deletes, in particular on GCP. I left some comments where i think you need to look at the code again relating to that, and also had a go at explaining how the length of the expected endpoints is being calculated for each provider in the tests.
I have not gone too deep into the code around labelling tbh, will wait and see where it ends up after you fix the issues with failing tests.
b71d4e7
to
7fd3c1b
Compare
--type=kuadrant.io/azure \ | ||
--from-file=azure.json=/local/path/to/azure.json | ||
``` |
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.
This one has nothing tto do with this PR but hope it will slide - just a formating of an .md
a.Targets.Same(b.Targets) && | ||
a.RecordType == b.RecordType && | ||
a.SetIdentifier == b.SetIdentifier && | ||
a.RecordTTL == b.RecordTTL && | ||
SameProviderSpecific(a.ProviderSpecific, b.ProviderSpecific) |
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.
Why are you removing the check on the labels being the same here? What implications does that have? Where is SameEndpoint
being used currently?
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.
Included labels check into the SameEndpoints()
The reason for the separation was to explicitly check for all labels in a few places. Rolled back to only check owner key
73c0e32
to
b1b4e62
Compare
Signed-off-by: Maskym Vavilov <[email protected]>
8fdc67c
to
98dac52
Compare
Signed-off-by: Maskym Vavilov <[email protected]>
closes #346
Rewrite of the TXT registry to create TXT records per owner.