Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Plural
platform
external-dns
Commits
62e30eae
Commit
62e30eae
authored
7 years ago
by
Nick Jüttner
Browse files
Options
Download
Email Patches
Plain Diff
More context
Signed-off-by:
Nick Jüttner
<
nick@juni.io
>
parent
52819663
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plan/plan.go
+4
-0
plan/plan.go
with
4 additions
and
0 deletions
+4
-0
plan/plan.go
+
4
-
0
View file @
62e30eae
...
...
@@ -191,6 +191,10 @@ func shouldUpdateTTL(desired, current *endpoint.Endpoint) bool {
return
desired
.
RecordTTL
!=
current
.
RecordTTL
}
// validateDNSName checks if the DNS name is correct
// A dns name may contain only the ASCII letters 'a' through 'z' (in a case-insensitive manner),
// the digits '0' through '9', and the hyphen ('-').
// No other symbols or white space are allowed.
func
validateDNSName
(
dnsName
string
)
(
string
,
error
)
{
dnsName
=
strings
.
ToLower
(
dnsName
)
dnsName
=
strings
.
TrimSpace
(
dnsName
)
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment