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
eaa78b88
Unverified
Commit
eaa78b88
authored
Mar 08, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Mar 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #75152 from pjh/gce-windows-dns-testfix
Don't test metadata server connectivity from GCE Windows pods.
parents
af62ad0c
c88085df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
dns.go
test/e2e/network/dns.go
+10
-2
No files found.
test/e2e/network/dns.go
View file @
eaa78b88
...
...
@@ -51,7 +51,11 @@ var _ = SIGDescribe("DNS", func() {
// Added due to #8512. This is critical for GCE and GKE deployments.
if
framework
.
ProviderIs
(
"gce"
,
"gke"
)
{
namesToResolve
=
append
(
namesToResolve
,
"google.com"
)
namesToResolve
=
append
(
namesToResolve
,
"metadata"
)
// Windows containers do not have a route to the GCE
// metadata server by default.
if
!
framework
.
NodeOSDistroIs
(
"windows"
)
{
namesToResolve
=
append
(
namesToResolve
,
"metadata"
)
}
}
wheezyProbeCmd
,
wheezyFileNames
:=
createProbeCommand
(
namesToResolve
,
nil
,
""
,
"wheezy"
,
f
.
Namespace
.
Name
,
framework
.
TestContext
.
ClusterDNSDomain
)
jessieProbeCmd
,
jessieFileNames
:=
createProbeCommand
(
namesToResolve
,
nil
,
""
,
"jessie"
,
f
.
Namespace
.
Name
,
framework
.
TestContext
.
ClusterDNSDomain
)
...
...
@@ -74,7 +78,11 @@ var _ = SIGDescribe("DNS", func() {
// Added due to #8512. This is critical for GCE and GKE deployments.
if
framework
.
ProviderIs
(
"gce"
,
"gke"
)
{
namesToResolve
=
append
(
namesToResolve
,
"google.com"
)
namesToResolve
=
append
(
namesToResolve
,
"metadata"
)
// Windows containers do not have a route to the GCE
// metadata server by default.
if
!
framework
.
NodeOSDistroIs
(
"windows"
)
{
namesToResolve
=
append
(
namesToResolve
,
"metadata"
)
}
}
hostFQDN
:=
fmt
.
Sprintf
(
"%s.%s.%s.svc.cluster.local"
,
dnsTestPodHostName
,
dnsTestServiceName
,
f
.
Namespace
.
Name
)
hostEntries
:=
[]
string
{
hostFQDN
,
dnsTestPodHostName
}
...
...
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