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
569da522
Commit
569da522
authored
Oct 29, 2016
by
Kubernetes Submit Queue
Committed by
GitHub
Oct 29, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #35708 from wojtek-t/rename_test_etcd_version
Automatic merge from submit-queue Rename TEST_ETCD_VERSION to ETCD_VERSION Ref #20504
parents
bb992150
7ee7b55c
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
27 additions
and
16 deletions
+27
-16
common.sh
cluster/common.sh
+2
-2
config-test.sh
cluster/gce/config-test.sh
+1
-1
configure-vm.sh
cluster/gce/configure-vm.sh
+2
-2
configure-helper.sh
cluster/gce/gci/configure-helper.sh
+2
-2
configure-helper.sh
cluster/gce/trusty/configure-helper.sh
+2
-2
config-default.sh
cluster/kubemark/config-default.sh
+1
-1
common.sh
test/kubemark/common.sh
+11
-0
start-kubemark-master.sh
test/kubemark/start-kubemark-master.sh
+5
-5
start-kubemark.sh
test/kubemark/start-kubemark.sh
+1
-1
No files found.
cluster/common.sh
View file @
569da522
...
@@ -702,9 +702,9 @@ NUM_NODES: $(yaml-quote ${NUM_NODES})
...
@@ -702,9 +702,9 @@ NUM_NODES: $(yaml-quote ${NUM_NODES})
STORAGE_BACKEND:
$(
yaml-quote
${
STORAGE_BACKEND
:-})
STORAGE_BACKEND:
$(
yaml-quote
${
STORAGE_BACKEND
:-})
ENABLE_GARBAGE_COLLECTOR:
$(
yaml-quote
${
ENABLE_GARBAGE_COLLECTOR
:-})
ENABLE_GARBAGE_COLLECTOR:
$(
yaml-quote
${
ENABLE_GARBAGE_COLLECTOR
:-})
EOF
EOF
if
[
-n
"
${
TEST_
ETCD_VERSION
:-}
"
]
;
then
if
[
-n
"
${
ETCD_VERSION
:-}
"
]
;
then
cat
>>
$file
<<
EOF
cat
>>
$file
<<
EOF
TEST_ETCD_VERSION:
$(
yaml-quote
${
TEST_
ETCD_VERSION
})
ETCD_VERSION:
$(
yaml-quote
${
ETCD_VERSION
})
EOF
EOF
fi
fi
if
[
-n
"
${
APISERVER_TEST_ARGS
:-}
"
]
;
then
if
[
-n
"
${
APISERVER_TEST_ARGS
:-}
"
]
;
then
...
...
cluster/gce/config-test.sh
View file @
569da522
...
@@ -95,7 +95,7 @@ ENABLE_L7_LOADBALANCING="${KUBE_ENABLE_L7_LOADBALANCING:-glbc}"
...
@@ -95,7 +95,7 @@ ENABLE_L7_LOADBALANCING="${KUBE_ENABLE_L7_LOADBALANCING:-glbc}"
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
influxdb
}
"
ENABLE_CLUSTER_MONITORING
=
"
${
KUBE_ENABLE_CLUSTER_MONITORING
:-
influxdb
}
"
# Set etcd version (e.g. 3.0.4-migration.1) if you need non-default version.
# Set etcd version (e.g. 3.0.4-migration.1) if you need non-default version.
TEST_
ETCD_VERSION
=
"
${
TEST_ETCD_VERSION
:-}
"
ETCD_VERSION
=
"
${
TEST_ETCD_VERSION
:-}
"
# Default Log level for all components in test clusters and variables to override it in specific components.
# Default Log level for all components in test clusters and variables to override it in specific components.
TEST_CLUSTER_LOG_LEVEL
=
"
${
TEST_CLUSTER_LOG_LEVEL
:-
--v=4
}
"
TEST_CLUSTER_LOG_LEVEL
=
"
${
TEST_CLUSTER_LOG_LEVEL
:-
--v=4
}
"
...
...
cluster/gce/configure-vm.sh
View file @
569da522
...
@@ -471,9 +471,9 @@ kubelet_port: '$(echo "$KUBELET_PORT" | sed -e "s/'/''/g")'
...
@@ -471,9 +471,9 @@ kubelet_port: '$(echo "$KUBELET_PORT" | sed -e "s/'/''/g")'
EOF
EOF
fi
fi
# Configuration changes for test clusters
# Configuration changes for test clusters
if
[
-n
"
${
TEST_
ETCD_VERSION
:-}
"
]
;
then
if
[
-n
"
${
ETCD_VERSION
:-}
"
]
;
then
cat
<<
EOF
>>/srv/salt-overlay/pillar/cluster-params.sls
cat
<<
EOF
>>/srv/salt-overlay/pillar/cluster-params.sls
etcd_docker_tag: '
$(
echo
"
$
TEST_
ETCD_VERSION
"
|
sed
-e
"s/'/''/g"
)
'
etcd_docker_tag: '
$(
echo
"
$ETCD_VERSION
"
|
sed
-e
"s/'/''/g"
)
'
EOF
EOF
fi
fi
if
[
-n
"
${
APISERVER_TEST_ARGS
:-}
"
]
;
then
if
[
-n
"
${
APISERVER_TEST_ARGS
:-}
"
]
;
then
...
...
cluster/gce/gci/configure-helper.sh
View file @
569da522
...
@@ -626,8 +626,8 @@ function prepare-etcd-manifest {
...
@@ -626,8 +626,8 @@ function prepare-etcd-manifest {
sed
-i
-e
"s@{{ *etcd_cluster *}}@
$etcd_cluster
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *etcd_cluster *}}@
$etcd_cluster
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *storage_backend *}}@
${
STORAGE_BACKEND
:-}
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *storage_backend *}}@
${
STORAGE_BACKEND
:-}
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *cluster_state *}}@
$cluster_state
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *cluster_state *}}@
$cluster_state
@g"
"
${
temp_file
}
"
if
[[
-n
"
${
TEST_
ETCD_VERSION
:-}
"
]]
;
then
if
[[
-n
"
${
ETCD_VERSION
:-}
"
]]
;
then
sed
-i
-e
"s@{{ *pillar
\.
get('etcd_docker_tag', '
\(
.*
\)
') *}}@
${
TEST_
ETCD_VERSION
}
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *pillar
\.
get('etcd_docker_tag', '
\(
.*
\)
') *}}@
${
ETCD_VERSION
}
@g"
"
${
temp_file
}
"
else
else
sed
-i
-e
"s@{{ *pillar
\.
get('etcd_docker_tag', '
\(
.*
\)
') *}}@
\1
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *pillar
\.
get('etcd_docker_tag', '
\(
.*
\)
') *}}@
\1
@g"
"
${
temp_file
}
"
fi
fi
...
...
cluster/gce/trusty/configure-helper.sh
View file @
569da522
...
@@ -458,8 +458,8 @@ prepare_etcd_manifest() {
...
@@ -458,8 +458,8 @@ prepare_etcd_manifest() {
sed
-i
-e
"s@{{ *etcd_cluster *}}@
$etcd_cluster
@g"
"
${
etcd_temp_file
}
"
sed
-i
-e
"s@{{ *etcd_cluster *}}@
$etcd_cluster
@g"
"
${
etcd_temp_file
}
"
sed
-i
-e
"s@{{ *storage_backend *}}@
${
STORAGE_BACKEND
:-}
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *storage_backend *}}@
${
STORAGE_BACKEND
:-}
@g"
"
${
temp_file
}
"
sed
-i
-e
"s@{{ *cluster_state *}}@
$cluster_state
@g"
"
${
etcd_temp_file
}
"
sed
-i
-e
"s@{{ *cluster_state *}}@
$cluster_state
@g"
"
${
etcd_temp_file
}
"
if
[[
-n
"
${
TEST_
ETCD_VERSION
:-}
"
]]
;
then
if
[[
-n
"
${
ETCD_VERSION
:-}
"
]]
;
then
sed
-i
-e
"s@{{ *pillar
\.
get('etcd_docker_tag', '
\(
.*
\)
') *}}@
${
TEST_
ETCD_VERSION
}
@g"
"
${
etcd_temp_file
}
"
sed
-i
-e
"s@{{ *pillar
\.
get('etcd_docker_tag', '
\(
.*
\)
') *}}@
${
ETCD_VERSION
}
@g"
"
${
etcd_temp_file
}
"
else
else
sed
-i
-e
"s@{{ *pillar
\.
get('etcd_docker_tag', '
\(
.*
\)
') *}}@
\1
@g"
"
${
etcd_temp_file
}
"
sed
-i
-e
"s@{{ *pillar
\.
get('etcd_docker_tag', '
\(
.*
\)
') *}}@
\1
@g"
"
${
etcd_temp_file
}
"
fi
fi
...
...
cluster/kubemark/config-default.sh
View file @
569da522
...
@@ -47,7 +47,7 @@ RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}"
...
@@ -47,7 +47,7 @@ RUNTIME_CONFIG="${KUBE_RUNTIME_CONFIG:-}"
TERMINATED_POD_GC_THRESHOLD
=
${
TERMINATED_POD_GC_THRESHOLD
:-
100
}
TERMINATED_POD_GC_THRESHOLD
=
${
TERMINATED_POD_GC_THRESHOLD
:-
100
}
# Set etcd version (e.g. 3.0.4-migration.1) if you need non-default version.
# Set etcd version (e.g. 3.0.4-migration.1) if you need non-default version.
TEST_
ETCD_VERSION
=
"
${
TEST_ETCD_VERSION
:-}
"
ETCD_VERSION
=
"
${
TEST_ETCD_VERSION
:-}
"
# Storage backend. 'etcd2' supported, 'etcd3' experimental.
# Storage backend. 'etcd2' supported, 'etcd3' experimental.
STORAGE_BACKEND
=
${
STORAGE_BACKEND
:-
etcd2
}
STORAGE_BACKEND
=
${
STORAGE_BACKEND
:-
etcd2
}
...
...
test/kubemark/common.sh
View file @
569da522
...
@@ -17,7 +17,18 @@
...
@@ -17,7 +17,18 @@
source
"
${
KUBE_ROOT
}
/cluster/kubemark/config-default.sh"
source
"
${
KUBE_ROOT
}
/cluster/kubemark/config-default.sh"
source
"
${
KUBE_ROOT
}
/cluster/kubemark/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kubemark/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/lib/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/lib/util.sh"
# hack/lib/init.sh will ovewrite ETCD_VERSION if this is unset
# what what is default in hack/lib/etcd.sh
# To avoid it, if it is empty, we set it to 'avoid-overwrite' and
# clean it after that.
if
[
-z
"
${
ETCD_VERSION
}
"
]
;
then
ETCD_VERSION
=
"avoid-overwrite"
fi
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
if
[
"
${
ETCD_VERSION
}
"
==
"avoid-overwrite"
]
;
then
ETCD_VERSION
=
""
fi
detect-project &> /dev/null
detect-project &> /dev/null
export
PROJECT
export
PROJECT
...
...
test/kubemark/start-kubemark-master.sh
View file @
569da522
...
@@ -19,10 +19,10 @@
...
@@ -19,10 +19,10 @@
EVENT_STORE_IP
=
$1
EVENT_STORE_IP
=
$1
EVENT_STORE_URL
=
"http://
${
EVENT_STORE_IP
}
:4002"
EVENT_STORE_URL
=
"http://
${
EVENT_STORE_IP
}
:4002"
NUM_NODES
=
$2
NUM_NODES
=
$2
TEST
_ETCD_VERSION
=
$3
KUBEMARK
_ETCD_VERSION
=
$3
if
[[
-z
"
${
TEST
_ETCD_VERSION
}
"
]]
;
then
if
[[
-z
"
${
KUBEMARK
_ETCD_VERSION
}
"
]]
;
then
# Default etcd version.
# Default etcd version.
TEST
_ETCD_VERSION
=
"2.2.1"
KUBEMARK
_ETCD_VERSION
=
"2.2.1"
fi
fi
function
retry
()
{
function
retry
()
{
...
@@ -88,7 +88,7 @@ if [ "${EVENT_STORE_IP}" == "127.0.0.1" ]; then
...
@@ -88,7 +88,7 @@ if [ "${EVENT_STORE_IP}" == "127.0.0.1" ]; then
# Retry starting etcd to avoid pulling image errors.
# Retry starting etcd to avoid pulling image errors.
retry
sudo
docker run
--net
=
host
\
retry
sudo
docker run
--net
=
host
\
-v
/var/etcd/data-events:/var/etcd/data
-v
/var/log:/var/log
-d
\
-v
/var/etcd/data-events:/var/etcd/data
-v
/var/log:/var/log
-d
\
gcr.io/google_containers/etcd:
${
TEST
_ETCD_VERSION
}
/bin/sh
-c
"/usr/local/bin/etcd
\
gcr.io/google_containers/etcd:
${
KUBEMARK
_ETCD_VERSION
}
/bin/sh
-c
"/usr/local/bin/etcd
\
--listen-peer-urls http://127.0.0.1:2381
\
--listen-peer-urls http://127.0.0.1:2381
\
--advertise-client-urls=http://127.0.0.1:4002
\
--advertise-client-urls=http://127.0.0.1:4002
\
--listen-client-urls=http://0.0.0.0:4002
\
--listen-client-urls=http://0.0.0.0:4002
\
...
@@ -98,7 +98,7 @@ fi
...
@@ -98,7 +98,7 @@ fi
# Retry starting etcd to avoid pulling image errors.
# Retry starting etcd to avoid pulling image errors.
retry
sudo
docker run
--net
=
host
\
retry
sudo
docker run
--net
=
host
\
-v
/var/etcd/data:/var/etcd/data
-v
/var/log:/var/log
-d
\
-v
/var/etcd/data:/var/etcd/data
-v
/var/log:/var/log
-d
\
gcr.io/google_containers/etcd:
${
TEST
_ETCD_VERSION
}
/bin/sh
-c
"/usr/local/bin/etcd
\
gcr.io/google_containers/etcd:
${
KUBEMARK
_ETCD_VERSION
}
/bin/sh
-c
"/usr/local/bin/etcd
\
--listen-peer-urls http://127.0.0.1:2380
\
--listen-peer-urls http://127.0.0.1:2380
\
--advertise-client-urls=http://127.0.0.1:2379
\
--advertise-client-urls=http://127.0.0.1:2379
\
--listen-client-urls=http://0.0.0.0:2379
\
--listen-client-urls=http://0.0.0.0:2379
\
...
...
test/kubemark/start-kubemark.sh
View file @
569da522
...
@@ -148,7 +148,7 @@ gcloud compute copy-files --zone="${ZONE}" --project="${PROJECT}" \
...
@@ -148,7 +148,7 @@ gcloud compute copy-files --zone="${ZONE}" --project="${PROJECT}" \
gcloud compute ssh
"
${
MASTER_NAME
}
"
--zone
=
"
${
ZONE
}
"
--project
=
"
${
PROJECT
}
"
\
gcloud compute ssh
"
${
MASTER_NAME
}
"
--zone
=
"
${
ZONE
}
"
--project
=
"
${
PROJECT
}
"
\
--command
=
"chmod a+x configure-kubectl.sh && chmod a+x start-kubemark-master.sh &&
\
--command
=
"chmod a+x configure-kubectl.sh && chmod a+x start-kubemark-master.sh &&
\
sudo ./start-kubemark-master.sh
${
EVENT_STORE_IP
:-
127
.0.0.1
}
${
NUM_NODES
:-
0
}
${
TEST_
ETCD_VERSION
:-}
"
sudo ./start-kubemark-master.sh
${
EVENT_STORE_IP
:-
127
.0.0.1
}
${
NUM_NODES
:-
0
}
${
ETCD_VERSION
:-}
"
# create kubeconfig for Kubelet:
# create kubeconfig for Kubelet:
KUBECONFIG_CONTENTS
=
$(
echo
"apiVersion: v1
KUBECONFIG_CONTENTS
=
$(
echo
"apiVersion: v1
...
...
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