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
fe84643c
Commit
fe84643c
authored
May 22, 2015
by
Dawn Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8728 from justinsb/nodeport_gce_e2e_fixes
Nodeport GCE e2e fixes
parents
4292866c
ae80ed53
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
1 deletion
+24
-1
util.sh
cluster/gce/util.sh
+13
-0
util.sh
cluster/gke/util.sh
+10
-1
service.go
test/e2e/service.go
+1
-0
No files found.
cluster/gce/util.sh
View file @
fe84643c
...
@@ -923,6 +923,15 @@ function test-setup {
...
@@ -923,6 +923,15 @@ function test-setup {
--allow
tcp:80 tcp:8080
\
--allow
tcp:80 tcp:8080
\
--network
"
${
NETWORK
}
"
\
--network
"
${
NETWORK
}
"
\
"
${
MINION_TAG
}
-
${
INSTANCE_PREFIX
}
-http-alt"
"
${
MINION_TAG
}
-
${
INSTANCE_PREFIX
}
-http-alt"
# Open up the NodePort range
# TODO(justinsb): Move to main setup, if we decide whether we want to do this by default.
gcloud compute firewall-rules create
\
--project
"
${
PROJECT
}
"
\
--target-tags
"
${
MINION_TAG
}
"
\
--allow
tcp:30000-32767,udp:30000-32767
\
--network
"
${
NETWORK
}
"
\
"
${
MINION_TAG
}
-
${
INSTANCE_PREFIX
}
-nodeports"
}
}
# Execute after running tests to perform any required clean-up. This is called
# Execute after running tests to perform any required clean-up. This is called
...
@@ -934,6 +943,10 @@ function test-teardown {
...
@@ -934,6 +943,10 @@ function test-teardown {
--project
"
${
PROJECT
}
"
\
--project
"
${
PROJECT
}
"
\
--quiet
\
--quiet
\
"
${
MINION_TAG
}
-
${
INSTANCE_PREFIX
}
-http-alt"
||
true
"
${
MINION_TAG
}
-
${
INSTANCE_PREFIX
}
-http-alt"
||
true
gcloud compute firewall-rules delete
\
--project
"
${
PROJECT
}
"
\
--quiet
\
"
${
MINION_TAG
}
-
${
INSTANCE_PREFIX
}
-nodeports"
||
true
"
${
KUBE_ROOT
}
/cluster/kube-down.sh"
"
${
KUBE_ROOT
}
/cluster/kube-down.sh"
}
}
...
...
cluster/gke/util.sh
View file @
fe84643c
...
@@ -171,6 +171,13 @@ function test-setup() {
...
@@ -171,6 +171,13 @@ function test-setup() {
--project
"
${
PROJECT
}
"
\
--project
"
${
PROJECT
}
"
\
--target-tags
"
${
MINION_TAG
}
"
\
--target-tags
"
${
MINION_TAG
}
"
\
--network
=
"
${
NETWORK
}
"
--network
=
"
${
NETWORK
}
"
"
${
GCLOUD
}
"
compute firewall-rules create
\
"
${
MINION_TAG
}
-
${
USER
}
-nodeports"
\
--allow
tcp:30000-32767,udp:30000-32767
\
--project
"
${
PROJECT
}
"
\
--target-tags
"
${
MINION_TAG
}
"
\
--network
=
"
${
NETWORK
}
"
}
}
# Ensure that we have a password created for validating to the master.
# Ensure that we have a password created for validating to the master.
...
@@ -285,9 +292,11 @@ function test-teardown() {
...
@@ -285,9 +292,11 @@ function test-teardown() {
MINION_TAG
=
"k8s-
${
CLUSTER_NAME
}
-node"
MINION_TAG
=
"k8s-
${
CLUSTER_NAME
}
-node"
# First, remove anything we did with test-setup (currently, the firewall).
# First, remove anything we did with test-setup (currently, the firewall).
# NOTE: Keep in sync with name above in test-setup.
# NOTE: Keep in sync with name
s
above in test-setup.
"
${
GCLOUD
}
"
compute firewall-rules delete
"
${
MINION_TAG
}
-
${
USER
}
-http-alt"
\
"
${
GCLOUD
}
"
compute firewall-rules delete
"
${
MINION_TAG
}
-
${
USER
}
-http-alt"
\
--project
=
"
${
PROJECT
}
"
||
true
--project
=
"
${
PROJECT
}
"
||
true
"
${
GCLOUD
}
"
compute firewall-rules delete
"
${
MINION_TAG
}
-
${
USER
}
-nodeports"
\
--project
=
"
${
PROJECT
}
"
||
true
# Then actually turn down the cluster.
# Then actually turn down the cluster.
"
${
KUBE_ROOT
}
/cluster/kube-down.sh"
"
${
KUBE_ROOT
}
/cluster/kube-down.sh"
...
...
test/e2e/service.go
View file @
fe84643c
...
@@ -488,6 +488,7 @@ var _ = Describe("Services", func() {
...
@@ -488,6 +488,7 @@ var _ = Describe("Services", func() {
By
(
"changing service "
+
serviceName
+
" back to type=ClusterIP"
)
By
(
"changing service "
+
serviceName
+
" back to type=ClusterIP"
)
service
.
Spec
.
Type
=
api
.
ServiceTypeClusterIP
service
.
Spec
.
Type
=
api
.
ServiceTypeClusterIP
service
.
Spec
.
Ports
[
0
]
.
NodePort
=
0
service
,
err
=
c
.
Services
(
ns
)
.
Update
(
service
)
service
,
err
=
c
.
Services
(
ns
)
.
Update
(
service
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
...
...
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