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
e54e198b
Commit
e54e198b
authored
Oct 21, 2016
by
Zihong Zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
service e2e: remove TODO and subtle changes in logging
parent
8f23ca06
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
service.go
test/e2e/service.go
+2
-3
No files found.
test/e2e/service.go
View file @
e54e198b
...
...
@@ -239,7 +239,6 @@ var _ = framework.KubeDescribe("Services", func() {
validateEndpointsOrFail
(
c
,
ns
,
serviceName
,
PortsByPodName
{})
})
// TODO: verify source IP preservation for LoadBalancer type services when applicable
It
(
"should preserve source pod IP for traffic thru service cluster IP"
,
func
()
{
serviceName
:=
"sourceip-test"
...
...
@@ -2102,7 +2101,7 @@ func (j *ServiceTestJig) ChangeServiceType(namespace, name string, newType api.S
// nodePort. If createPod is true, it also creates an RC with 1 replica of
// the standard netexec container used everywhere in this test.
func
(
j
*
ServiceTestJig
)
createOnlyLocalNodePortService
(
namespace
,
serviceName
string
,
createPod
bool
)
*
api
.
Service
{
By
(
"creating a service "
+
namespace
+
"/"
+
namespac
e
+
" with type=NodePort and annotation for local-traffic-only"
)
By
(
"creating a service "
+
namespace
+
"/"
+
serviceNam
e
+
" with type=NodePort and annotation for local-traffic-only"
)
svc
:=
j
.
CreateTCPServiceOrFail
(
namespace
,
func
(
svc
*
api
.
Service
)
{
svc
.
Spec
.
Type
=
api
.
ServiceTypeNodePort
svc
.
ObjectMeta
.
Annotations
=
map
[
string
]
string
{
...
...
@@ -2122,7 +2121,7 @@ func (j *ServiceTestJig) createOnlyLocalNodePortService(namespace, serviceName s
// acquire an ingress IP. If createPod is true, it also creates an RC with 1
// replica of the standard netexec container used everywhere in this test.
func
(
j
*
ServiceTestJig
)
createOnlyLocalLoadBalancerService
(
namespace
,
serviceName
string
,
timeout
time
.
Duration
,
createPod
bool
)
*
api
.
Service
{
By
(
"creating a service "
+
namespace
+
"/"
+
namespac
e
+
" with type=LoadBalancer and annotation for local-traffic-only"
)
By
(
"creating a service "
+
namespace
+
"/"
+
serviceNam
e
+
" with type=LoadBalancer and annotation for local-traffic-only"
)
svc
:=
j
.
CreateTCPServiceOrFail
(
namespace
,
func
(
svc
*
api
.
Service
)
{
svc
.
Spec
.
Type
=
api
.
ServiceTypeLoadBalancer
// We need to turn affinity off for our LB distribution tests
...
...
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