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
0b4d702e
Commit
0b4d702e
authored
Feb 24, 2016
by
Alex Robinson
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #21730 from lavalamp/fix-proxy-svc-pod
add readiness probe to proxy test
parents
475076e1
9d87b47d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
17 deletions
+29
-17
proxy.go
test/e2e/proxy.go
+10
-0
util.go
test/e2e/util.go
+19
-17
No files found.
test/e2e/proxy.go
View file @
0b4d702e
...
@@ -125,6 +125,16 @@ func proxyContext(version string) {
...
@@ -125,6 +125,16 @@ func proxyContext(version string) {
"tlsdest1"
:
460
,
"tlsdest1"
:
460
,
"tlsdest2"
:
462
,
"tlsdest2"
:
462
,
},
},
ReadinessProbe
:
&
api
.
Probe
{
Handler
:
api
.
Handler
{
HTTPGet
:
&
api
.
HTTPGetAction
{
Port
:
intstr
.
FromInt
(
80
),
},
},
InitialDelaySeconds
:
1
,
TimeoutSeconds
:
5
,
PeriodSeconds
:
10
,
},
Labels
:
labels
,
Labels
:
labels
,
CreatedPods
:
&
pods
,
CreatedPods
:
&
pods
,
}
}
...
...
test/e2e/util.go
View file @
0b4d702e
...
@@ -234,19 +234,20 @@ func (s *podStore) Stop() {
...
@@ -234,19 +234,20 @@ func (s *podStore) Stop() {
}
}
type
RCConfig
struct
{
type
RCConfig
struct
{
Client
*
client
.
Client
Client
*
client
.
Client
Image
string
Image
string
Command
[]
string
Command
[]
string
Name
string
Name
string
Namespace
string
Namespace
string
PollInterval
time
.
Duration
PollInterval
time
.
Duration
Timeout
time
.
Duration
Timeout
time
.
Duration
PodStatusFile
*
os
.
File
PodStatusFile
*
os
.
File
Replicas
int
Replicas
int
CpuRequest
int64
// millicores
CpuRequest
int64
// millicores
CpuLimit
int64
// millicores
CpuLimit
int64
// millicores
MemRequest
int64
// bytes
MemRequest
int64
// bytes
MemLimit
int64
// bytes
MemLimit
int64
// bytes
ReadinessProbe
*
api
.
Probe
// Env vars, set the same for every pod.
// Env vars, set the same for every pod.
Env
map
[
string
]
string
Env
map
[
string
]
string
...
@@ -1633,10 +1634,11 @@ func (config *RCConfig) create() error {
...
@@ -1633,10 +1634,11 @@ func (config *RCConfig) create() error {
Spec
:
api
.
PodSpec
{
Spec
:
api
.
PodSpec
{
Containers
:
[]
api
.
Container
{
Containers
:
[]
api
.
Container
{
{
{
Name
:
config
.
Name
,
Name
:
config
.
Name
,
Image
:
config
.
Image
,
Image
:
config
.
Image
,
Command
:
config
.
Command
,
Command
:
config
.
Command
,
Ports
:
[]
api
.
ContainerPort
{{
ContainerPort
:
80
}},
Ports
:
[]
api
.
ContainerPort
{{
ContainerPort
:
80
}},
ReadinessProbe
:
config
.
ReadinessProbe
,
},
},
},
},
DNSPolicy
:
api
.
DNSDefault
,
DNSPolicy
:
api
.
DNSDefault
,
...
...
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