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
0172019d
Commit
0172019d
authored
Feb 21, 2019
by
Sandeep Rajan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add health plugin in the DNS tests
parent
739af85d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
dns_configmap.go
test/e2e/network/dns_configmap.go
+11
-6
No files found.
test/e2e/network/dns_configmap.go
View file @
0172019d
...
...
@@ -66,6 +66,7 @@ func (t *dnsFederationsConfigMapTest) run() {
t
.
labels
=
[]
string
{
"abc"
,
"ghi"
}
valid1
:=
map
[
string
]
string
{
"Corefile"
:
fmt
.
Sprintf
(
`.:53 {
health
kubernetes %v in-addr.arpa ip6.arpa {
pods insecure
upstream
...
...
@@ -74,12 +75,13 @@ func (t *dnsFederationsConfigMapTest) run() {
federation %v {
abc def.com
}
proxy
. /etc/resolv.conf
forward
. /etc/resolv.conf
}`
,
framework
.
TestContext
.
ClusterDNSDomain
,
framework
.
TestContext
.
ClusterDNSDomain
)}
valid1m
:=
map
[
string
]
string
{
t
.
labels
[
0
]
:
"def.com"
}
valid2
:=
map
[
string
]
string
{
"Corefile"
:
fmt
.
Sprintf
(
`:53 {
health
kubernetes %v in-addr.arpa ip6.arpa {
pods insecure
upstream
...
...
@@ -88,7 +90,7 @@ func (t *dnsFederationsConfigMapTest) run() {
federation %v {
ghi xyz.com
}
proxy
. /etc/resolv.conf
forward
. /etc/resolv.conf
}`
,
framework
.
TestContext
.
ClusterDNSDomain
,
framework
.
TestContext
.
ClusterDNSDomain
)}
valid2m
:=
map
[
string
]
string
{
t
.
labels
[
1
]
:
"xyz.com"
}
...
...
@@ -228,15 +230,16 @@ func (t *dnsNameserverTest) run(isIPv6 bool) {
if
t
.
name
==
"coredns"
{
t
.
setConfigMap
(
&
v1
.
ConfigMap
{
Data
:
map
[
string
]
string
{
"Corefile"
:
fmt
.
Sprintf
(
`.:53 {
health
kubernetes %v in-addr.arpa ip6.arpa {
pods insecure
upstream
fallthrough in-addr.arpa ip6.arpa
}
proxy
. %v
forward
. %v
}
acme.local:53 {
proxy
. %v
forward
. %v
}`
,
framework
.
TestContext
.
ClusterDNSDomain
,
t
.
dnsServerPod
.
Status
.
PodIP
,
t
.
dnsServerPod
.
Status
.
PodIP
),
}})
...
...
@@ -325,12 +328,13 @@ func (t *dnsPtrFwdTest) run(isIPv6 bool) {
if
t
.
name
==
"coredns"
{
t
.
setConfigMap
(
&
v1
.
ConfigMap
{
Data
:
map
[
string
]
string
{
"Corefile"
:
fmt
.
Sprintf
(
`.:53 {
health
kubernetes %v in-addr.arpa ip6.arpa {
pods insecure
upstream
fallthrough in-addr.arpa ip6.arpa
}
proxy
. %v
forward
. %v
}`
,
framework
.
TestContext
.
ClusterDNSDomain
,
t
.
dnsServerPod
.
Status
.
PodIP
),
}})
...
...
@@ -434,12 +438,13 @@ func (t *dnsExternalNameTest) run(isIPv6 bool) {
if
t
.
name
==
"coredns"
{
t
.
setConfigMap
(
&
v1
.
ConfigMap
{
Data
:
map
[
string
]
string
{
"Corefile"
:
fmt
.
Sprintf
(
`.:53 {
health
kubernetes %v in-addr.arpa ip6.arpa {
pods insecure
upstream
fallthrough in-addr.arpa ip6.arpa
}
proxy
. %v
forward
. %v
}`
,
framework
.
TestContext
.
ClusterDNSDomain
,
t
.
dnsServerPod
.
Status
.
PodIP
),
}})
...
...
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