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
fe24da84
Commit
fe24da84
authored
May 13, 2015
by
Rohit Jnagal
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8128 from brendandburns/e2e
Switch networking e2e to v1beta3. Update the network-tester container.
parents
82913c31
46be5482
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
Makefile
contrib/for-tests/network-tester/Makefile
+2
-1
webserver.go
contrib/for-tests/network-tester/webserver.go
+2
-2
networking.go
test/e2e/networking.go
+1
-3
No files found.
contrib/for-tests/network-tester/Makefile
View file @
fe24da84
all
:
push
all
:
push
TAG
=
1.1
# Set this to the *next* version to prevent accidentally overwriting the existing image.
TAG
=
1.4
webserver
:
webserver.go
webserver
:
webserver.go
CGO_ENABLED
=
0
GOOS
=
linux go build
-a
-installsuffix
cgo
-ldflags
'-w'
./webserver.go
CGO_ENABLED
=
0
GOOS
=
linux go build
-a
-installsuffix
cgo
-ldflags
'-w'
./webserver.go
...
...
contrib/for-tests/network-tester/webserver.go
View file @
fe24da84
...
@@ -206,9 +206,9 @@ func contactOthers(state *State) {
...
@@ -206,9 +206,9 @@ func contactOthers(state *State) {
masterRO
:=
url
.
URL
{
masterRO
:=
url
.
URL
{
Scheme
:
"http"
,
Scheme
:
"http"
,
Host
:
os
.
Getenv
(
"KUBERNETES_RO_SERVICE_HOST"
)
+
":"
+
os
.
Getenv
(
"KUBERNETES_RO_SERVICE_PORT"
),
Host
:
os
.
Getenv
(
"KUBERNETES_RO_SERVICE_HOST"
)
+
":"
+
os
.
Getenv
(
"KUBERNETES_RO_SERVICE_PORT"
),
Path
:
"/api/
v1beta1"
,
Path
:
"/api/
"
+
latest
.
Version
,
}
}
client
:=
&
client
.
Client
{
client
.
NewRESTClient
(
&
masterRO
,
"v1beta1"
,
latest
.
Codec
,
tru
e
,
5
,
10
)}
client
:=
&
client
.
Client
{
client
.
NewRESTClient
(
&
masterRO
,
latest
.
Version
,
latest
.
Codec
,
fals
e
,
5
,
10
)}
// Do this repeatedly, in case there's some propagation delay with getting
// Do this repeatedly, in case there's some propagation delay with getting
// newly started pods into the endpoints list.
// newly started pods into the endpoints list.
...
...
test/e2e/networking.go
View file @
fe24da84
...
@@ -23,8 +23,6 @@ import (
...
@@ -23,8 +23,6 @@ import (
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/api"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
"github.com/GoogleCloudPlatform/kubernetes/pkg/client"
//"github.com/GoogleCloudPlatform/kubernetes/pkg/client/clientcmd"
//"github.com/GoogleCloudPlatform/kubernetes/pkg/clientauth"
"github.com/GoogleCloudPlatform/kubernetes/pkg/fields"
"github.com/GoogleCloudPlatform/kubernetes/pkg/fields"
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
...
@@ -57,7 +55,7 @@ func LaunchNetTestPodPerNode(nodes *api.NodeList, name string, c *client.Client,
...
@@ -57,7 +55,7 @@ func LaunchNetTestPodPerNode(nodes *api.NodeList, name string, c *client.Client,
Containers
:
[]
api
.
Container
{
Containers
:
[]
api
.
Container
{
{
{
Name
:
"webserver"
,
Name
:
"webserver"
,
Image
:
"gcr.io/google_containers/nettest:1.
1
"
,
Image
:
"gcr.io/google_containers/nettest:1.
3
"
,
Args
:
[]
string
{
Args
:
[]
string
{
"-service="
+
name
,
"-service="
+
name
,
//peers >= totalPods should be asserted by the container.
//peers >= totalPods should be asserted by the container.
...
...
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