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
c5553af2
Commit
c5553af2
authored
Jun 11, 2015
by
Abhi Shah
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9506 from cjcullen/resize
Make resize tests work on GKE
parents
59a347d1
abc4e536
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
2 deletions
+21
-2
util.sh
cluster/gke/util.sh
+15
-0
ginkgo-e2e.sh
hack/ginkgo-e2e.sh
+4
-0
resize_nodes.go
test/e2e/resize_nodes.go
+2
-2
No files found.
cluster/gke/util.sh
View file @
c5553af2
...
@@ -249,6 +249,21 @@ function detect-minion-names {
...
@@ -249,6 +249,21 @@ function detect-minion-names {
echo
"MINION_NAMES=
${
MINION_NAMES
[*]
}
"
echo
"MINION_NAMES=
${
MINION_NAMES
[*]
}
"
}
}
# Detect instance group name generated by gke
#
# Assumed vars:
# GCLOUD
# PROJECT
# ZONE
# CLUSTER_NAME
# Vars set:
# NODE_INSTANCE_GROUP
function
detect-node-instance-group
{
NODE_INSTANCE_GROUP
=
$(
"
${
GCLOUD
}
"
alpha container clusters describe
\
--project
=
"
${
PROJECT
}
"
--zone
=
"
${
ZONE
}
"
"
${
CLUSTER_NAME
}
"
\
|
grep
instanceGroupManagers |
cut
-d
'/'
-f
11
)
}
# SSH to a node by name ($1) and run a command ($2).
# SSH to a node by name ($1) and run a command ($2).
#
#
# Assumed vars:
# Assumed vars:
...
...
hack/ginkgo-e2e.sh
View file @
c5553af2
...
@@ -83,6 +83,10 @@ else
...
@@ -83,6 +83,10 @@ else
NODE_INSTANCE_GROUP
=
""
NODE_INSTANCE_GROUP
=
""
fi
fi
if
[[
"
${
KUBERNETES_PROVIDER
}
"
==
"gke"
]]
;
then
detect-node-instance-group
fi
ginkgo_args
=()
ginkgo_args
=()
if
[[
${
GINKGO_PARALLEL
}
=
~ ^[yY]
$
]]
;
then
if
[[
${
GINKGO_PARALLEL
}
=
~ ^[yY]
$
]]
;
then
ginkgo_args+
=(
"-p"
)
ginkgo_args+
=(
"-p"
)
...
...
test/e2e/resize_nodes.go
View file @
c5553af2
...
@@ -77,7 +77,7 @@ func waitForNodeInstanceGroupSize(size int) error {
...
@@ -77,7 +77,7 @@ func waitForNodeInstanceGroupSize(size int) error {
continue
continue
}
}
if
currentSize
!=
size
{
if
currentSize
!=
size
{
Logf
(
"Waiting for node istance group size %d, current size %d"
,
size
,
currentSize
)
Logf
(
"Waiting for node i
n
stance group size %d, current size %d"
,
size
,
currentSize
)
continue
continue
}
}
Logf
(
"Node instance group has reached the desired size %d"
,
size
)
Logf
(
"Node instance group has reached the desired size %d"
,
size
)
...
@@ -224,7 +224,7 @@ func waitForPodsCreatedRunningResponding(c *client.Client, ns, name string, repl
...
@@ -224,7 +224,7 @@ func waitForPodsCreatedRunningResponding(c *client.Client, ns, name string, repl
}
}
var
_
=
Describe
(
"Nodes"
,
func
()
{
var
_
=
Describe
(
"Nodes"
,
func
()
{
supportedProviders
:=
[]
string
{
"gce"
}
supportedProviders
:=
[]
string
{
"gce"
,
"gke"
}
var
testName
string
var
testName
string
var
c
*
client
.
Client
var
c
*
client
.
Client
var
ns
string
var
ns
string
...
...
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