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
1d7cdffe
Commit
1d7cdffe
authored
Sep 18, 2016
by
bprashanth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup netexec image and usage.
parent
9d270ad5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
8 additions
and
7 deletions
+8
-7
kubelet_etc_hosts.go
test/e2e/common/kubelet_etc_hosts.go
+1
-1
privileged.go
test/e2e/common/privileged.go
+1
-1
networking_utils.go
test/e2e/networking_utils.go
+1
-1
service.go
test/e2e/service.go
+1
-1
Makefile
test/images/netexec/Makefile
+1
-1
netexec.go
test/images/netexec/netexec.go
+3
-2
No files found.
test/e2e/common/kubelet_etc_hosts.go
View file @
1d7cdffe
...
...
@@ -25,7 +25,7 @@ import (
)
const
(
kubeletEtcHostsImageName
=
"gcr.io/google_containers/netexec:1.
4
"
kubeletEtcHostsImageName
=
"gcr.io/google_containers/netexec:1.
7
"
kubeletEtcHostsPodName
=
"test-pod"
kubeletEtcHostsHostNetworkPodName
=
"test-host-network-pod"
etcHostsPartialContent
=
"# Kubernetes-managed hosts file."
...
...
test/e2e/common/privileged.go
View file @
1d7cdffe
...
...
@@ -35,7 +35,7 @@ const (
notPrivilegedHttpPort
=
9090
notPrivilegedUdpPort
=
9091
notPrivilegedContainerName
=
"not-privileged-container"
privilegedContainerImage
=
"gcr.io/google_containers/netexec:1.
4
"
privilegedContainerImage
=
"gcr.io/google_containers/netexec:1.
7
"
privilegedCommand
=
"ip link add dummy1 type dummy"
)
...
...
test/e2e/networking_utils.go
View file @
1d7cdffe
...
...
@@ -43,7 +43,7 @@ const (
testContainerHttpPort
=
8080
clusterHttpPort
=
80
clusterUdpPort
=
90
netexecImageName
=
"gcr.io/google_containers/netexec:1.
5
"
netexecImageName
=
"gcr.io/google_containers/netexec:1.
7
"
hostexecImageName
=
"gcr.io/google_containers/hostexec:1.2"
testPodName
=
"test-container-pod"
hostTestPodName
=
"host-test-container-pod"
...
...
test/e2e/service.go
View file @
1d7cdffe
...
...
@@ -2073,7 +2073,7 @@ func (j *ServiceTestJig) newRCTemplate(namespace string) *api.ReplicationControl
Containers
:
[]
api
.
Container
{
{
Name
:
"netexec"
,
Image
:
"gcr.io/google_containers/netexec:1.
6
"
,
Image
:
"gcr.io/google_containers/netexec:1.
7
"
,
Args
:
[]
string
{
"--http-port=80"
,
"--udp-port=80"
},
ReadinessProbe
:
&
api
.
Probe
{
PeriodSeconds
:
3
,
...
...
test/images/netexec/Makefile
View file @
1d7cdffe
...
...
@@ -14,7 +14,7 @@
.PHONY
:
all netexec image push clean
TAG
=
1.
6
TAG
=
1.
7
PREFIX
=
gcr.io/google_containers
...
...
test/images/netexec/netexec.go
View file @
1d7cdffe
...
...
@@ -87,6 +87,7 @@ func startHTTPServer(httpPort int) {
http
.
HandleFunc
(
"/shell"
,
shellHandler
)
http
.
HandleFunc
(
"/upload"
,
uploadHandler
)
http
.
HandleFunc
(
"/dial"
,
dialHandler
)
http
.
HandleFunc
(
"/healthz"
,
healthzHandler
)
// older handlers
http
.
HandleFunc
(
"/hostName"
,
hostNameHandler
)
http
.
HandleFunc
(
"/shutdown"
,
shutdownHandler
)
...
...
@@ -120,13 +121,12 @@ func exitHandler(w http.ResponseWriter, r *http.Request) {
func
hostnameHandler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
log
.
Printf
(
"GET /hostname"
)
fmt
.
Fprintf
(
w
,
getHostName
())
http
.
HandleFunc
(
"/healthz"
,
healthzHandler
)
log
.
Fatal
(
http
.
ListenAndServe
(
fmt
.
Sprintf
(
":%d"
,
httpPort
),
nil
))
}
// healthHandler response with a 200 if the UDP server is ready. It also serves
// as a health check of the HTTP server by virtue of being a HTTP handler.
func
healthzHandler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
log
.
Printf
(
"GET /healthz"
)
if
serverReady
.
get
()
{
w
.
WriteHeader
(
200
)
return
...
...
@@ -348,6 +348,7 @@ func uploadHandler(w http.ResponseWriter, r *http.Request) {
}
func
hostNameHandler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
log
.
Printf
(
"GET /hostName"
)
fmt
.
Fprintf
(
w
,
getHostName
())
}
...
...
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