Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
bcad7093
Commit
bcad7093
authored
Mar 09, 2017
by
Christian Bell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Federation] Prevent trailing periods in kube-dns federations domains
kubefed-level fix to catch cases where FEDERATIONS_DOMAIN_MAP is not set in the environment (i.e. CI).
parent
7b4bec03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
init.go
federation/pkg/kubefed/init/init.go
+3
-1
init_test.go
federation/pkg/kubefed/init/init_test.go
+1
-1
No files found.
federation/pkg/kubefed/init/init.go
View file @
bcad7093
...
...
@@ -829,7 +829,9 @@ func createControllerManager(clientset client.Interface, namespace, name, svcNam
// TODO: the name/domain name pair should ideally be checked for naming convention
// as done in kube-dns federation flags check.
// https://github.com/kubernetes/dns/blob/master/pkg/dns/federation/federation.go
util
.
FedDomainMapKey
:
fmt
.
Sprintf
(
"%s=%s"
,
name
,
dnsZoneName
),
// TODO v2: Until kube-dns can handle trailing periods we strip them all.
// See https://github.com/kubernetes/dns/issues/67
util
.
FedDomainMapKey
:
fmt
.
Sprintf
(
"%s=%s"
,
name
,
strings
.
TrimRight
(
dnsZoneName
,
"."
)),
},
},
Spec
:
extensions
.
DeploymentSpec
{
...
...
federation/pkg/kubefed/init/init_test.go
View file @
bcad7093
...
...
@@ -936,7 +936,7 @@ func fakeInitHostFactory(apiserverServiceType v1.ServiceType, federationName, na
Namespace
:
namespaceName
,
Labels
:
componentLabel
,
Annotations
:
map
[
string
]
string
{
util
.
FedDomainMapKey
:
fmt
.
Sprintf
(
"%s=%s"
,
federationName
,
dnsZoneName
),
util
.
FedDomainMapKey
:
fmt
.
Sprintf
(
"%s=%s"
,
federationName
,
strings
.
TrimRight
(
dnsZoneName
,
"."
)
),
},
},
Spec
:
v1beta1
.
DeploymentSpec
{
...
...
Write
Preview
Markdown
is supported
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