-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 --txt-suffix feature #1483
add --txt-suffix feature #1483
Conversation
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://git.k8s.io/community/CLA.md#the-contributor-license-agreement to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
Welcome @jgrumboe! |
I signed it |
/assign @hjacobs |
/assign @Raffo |
Just for clarification: |
registry/txt.go
Outdated
/* func (pr affixNameMapper) toEndpointName(txtDNSName string) string { | ||
lowerDNSName := strings.ToLower(txtDNSName) | ||
if strings.HasPrefix(lowerDNSName, pr.prefix) { | ||
regex := regexp.MustCompile(`\.`) | ||
DNSName := regex.Split(lowerDNSName, 2) | ||
if (strings.HasPrefix(DNSName[0], pr.prefix) && strings.HasSuffix(DNSName[0], pr.suffix)) { | ||
DNSName[0] = strings.TrimPrefix(DNSName[0], pr.prefix) | ||
DNSName[0] = strings.TrimSuffix(DNSName[0], pr.suffix) | ||
return DNSName[0] + "." + DNSName[1] | ||
} | ||
return "" | ||
}*/ |
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 think the commented code should be removed.
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.
You're right. Missed this one after testing.
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.
@ruudk Done
Any news? |
@njuettner @Raffo @hjacobs |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jgrumboe, Raffo 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 |
This PR solves #1482
It adds a new --txt-suffix feature which creates TXT-records where the suffix is appended to the host portion of the DNSName.
Example:
DNSName test.example.com
txt-suffix: "-txt"
TXT-record generated: test-txt.example.com
This gives a cleaner overview in alphabetically sorted DNS management GUIs.