-
Notifications
You must be signed in to change notification settings - Fork 88
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
Add RecordNS support #170
base: master
Are you sure you want to change the base?
Add RecordNS support #170
Conversation
This adds AddRecordNS and DeleteRecordNS operations, this is a requirement to extend external-dns with NS record support. Signed-off-by: Dinar Valeev <[email protected]>
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.
Hi @k0da , Can you please provide us a working example of arguments passed to the CreateNSRecord() function?
var addresses []ZoneNameServer | ||
for _, addr := range addr { | ||
addresses = append(addresses, ZoneNameServer{Address: addr}) | ||
} |
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.
Hi @k0da , Can you please add some validations on errors that might rise?
Ex: if recordname == "" {
return nil, fmt.Errorf("recordname must not be empty")
}
var actualRef string | ||
var err error | ||
It("should pass expected NS record Ref to DeleteObject", func() { | ||
actualRef, err = objMgr.DeleteTXTRecord(deleteRef) |
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.
Hi @k0da , Please change this DeleteTXTRecord to DeleteNSRecord.
This adds AddRecordNS and DeleteRecordNS operations, this is a
requirement to extend external-dns with NS record support.
Signed-off-by: Dinar Valeev [email protected]