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
53b87285
Commit
53b87285
authored
Jun 03, 2015
by
Brian Grant
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #9154 from caesarxuchao/hack/test-cmd.sh
enable v1 for hack/test-cmd.sh
parents
895ad684
d9f67bc7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
test-cmd.sh
hack/test-cmd.sh
+2
-9
No files found.
hack/test-cmd.sh
View file @
53b87285
...
@@ -93,6 +93,7 @@ kube::log::status "Starting kube-apiserver"
...
@@ -93,6 +93,7 @@ kube::log::status "Starting kube-apiserver"
--public_address_override
=
"127.0.0.1"
\
--public_address_override
=
"127.0.0.1"
\
--kubelet_port
=
${
KUBELET_PORT
}
\
--kubelet_port
=
${
KUBELET_PORT
}
\
--runtime_config
=
api/v1beta3
\
--runtime_config
=
api/v1beta3
\
--runtime_config
=
api/v1
\
--cert_dir
=
"
${
TMPDIR
:-
/tmp/
}
"
\
--cert_dir
=
"
${
TMPDIR
:-
/tmp/
}
"
\
--service-cluster-ip-range
=
"10.0.0.0/24"
1>&2 &
--service-cluster-ip-range
=
"10.0.0.0/24"
1>&2 &
APISERVER_PID
=
$!
APISERVER_PID
=
$!
...
@@ -115,6 +116,7 @@ PATH="${KUBE_OUTPUT_HOSTBIN}":$PATH
...
@@ -115,6 +116,7 @@ PATH="${KUBE_OUTPUT_HOSTBIN}":$PATH
kube_api_versions
=(
kube_api_versions
=(
""
""
v1beta3
v1beta3
v1
)
)
for
version
in
"
${
kube_api_versions
[@]
}
"
;
do
for
version
in
"
${
kube_api_versions
[@]
}
"
;
do
if
[[
-z
"
${
version
}
"
]]
;
then
if
[[
-z
"
${
version
}
"
]]
;
then
...
@@ -138,15 +140,6 @@ for version in "${kube_api_versions[@]}"; do
...
@@ -138,15 +140,6 @@ for version in "${kube_api_versions[@]}"; do
rc_status_replicas_field
=
".status.replicas"
rc_status_replicas_field
=
".status.replicas"
rc_container_image_field
=
".spec.template.spec.containers"
rc_container_image_field
=
".spec.template.spec.containers"
port_field
=
"(index .spec.ports 0).port"
port_field
=
"(index .spec.ports 0).port"
if
[
"
${
version
}
"
=
"v1beta1"
]
||
[
"
${
version
}
"
=
"v1beta2"
]
;
then
id_field
=
".id"
labels_field
=
".labels"
service_selector_field
=
".selector"
rc_replicas_field
=
".desiredState.replicas"
rc_status_replicas_field
=
".currentState.replicas"
rc_container_image_field
=
".desiredState.podTemplate.desiredState.manifest.containers"
port_field
=
".port"
fi
# Passing no arguments to create is an error
# Passing no arguments to create is an error
!
kubectl create
!
kubectl create
...
...
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