Skip to content

Commit

Permalink
kubeadm join update for 1.8
Browse files Browse the repository at this point in the history
 - update default values for load test.

review changes
  • Loading branch information
dangula committed Nov 1, 2017
1 parent d4c5277 commit f07b4cf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tests/pipeline/Jenkinsfile.k8sSetup
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ pipeline {
choice(name: 'node', choices: 'gce-reg\ngce-load', description: 'select env to run tests in ')
choice(name: 'key', choices: 'master\nPR', description: 'Select master or a PR to run tests aganist - defaults to master')
string(name: 'PR', defaultValue: '', description: 'PR number, required if key value is set to PR')
string(name: 'version', defaultValue: 'v0.5.0-111.ga4a1a98', description: 'Version to run tests against')
string(name: 'kube_version', defaultValue: 'v1.7.5', description: 'Version of kubernetes to tests against')
string(name: 'version', defaultValue: '', description: 'Version to run tests against')
string(name: 'kube_version', defaultValue: 'v1.8.2', description: 'Version of kubernetes to tests against')
}

agent { label "${params.node}-master" }
Expand Down
2 changes: 1 addition & 1 deletion tests/pipeline/Jenkinsfile.longhaul
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pipeline {
choice(name: 'node', choices: 'gce-reg\ngce-load', description: 'select env to run tests in ')
choice(name: 'key', choices: 'master\nPR', description: 'Select master or a PR to run tests aganist - defaults to master')
string(name: 'PR', defaultValue: '', description: 'PR number, required if key value is set to PR')
string(name: 'version', defaultValue: 'v0.5.0-111.ga4a1a98', description: 'Version to run tests against')
string(name: 'version', defaultValue: '', description: 'Version to run tests against')
string(name: 'Load_test', defaultValue: 'TestBlockLongHaul', description: 'select a load test to run ')
string(name: 'testCount', defaultValue: '10', description: 'Number of times to repeat test per run')
string(name: 'load_factor', defaultValue: '20', description: 'load factor - number of concurrent threads running per test')
Expand Down
2 changes: 1 addition & 1 deletion tests/pipeline/Jenkinsfile.regression
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ pipeline {
choice(name: 'node', choices: 'gce-reg\ngce-load', description: 'select env to run tests in ')
choice(name: 'key', choices: 'master\nPR', description: 'Select master or a PR to run tests aganist - defaults to master')
string(name: 'PR', defaultValue: '', description: 'PR number, required if key value is set to PR')
string(name: 'version', defaultValue: 'v0.5.0-111.ga4a1a98', description: 'Version to run tests against')
string(name: 'version', defaultValue: '', description: 'Version to run tests against')
}

agent { label "${params.node}-master" }
Expand Down
11 changes: 6 additions & 5 deletions tests/scripts/kubeadm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ usage(){
echo "usage:" >&2
echo " $0 up " >&2
echo " $0 install master" >&2
echo " $0 install node --token <token> <master-ip>:<master-port>" >&2
echo " $0 install node --token <token> <master-ip>:<master-port> (for k8s 1.7 and older)" >&2
echo " $0 install node --token <token> <master-ip>:<master-port> --discovery-token-ca-cert-hash sha256:<hash>" >&2
echo " $0 wait <number of nodes>" >&2
echo " $0 clean" >&2
}
Expand Down Expand Up @@ -59,8 +60,8 @@ EOF
#install k8s node
install_node(){
echo "inside install node function"
echo "kubeadm join ${1} ${2} ${3} --skip-preflight-checks"
sudo kubeadm join ${1} ${2} ${3} --skip-preflight-checks || true
echo "kubeadm join ${1} ${2} ${3} ${4} ${5} --skip-preflight-checks"
sudo kubeadm join ${1} ${2} ${3} ${4} ${5} --skip-preflight-checks || true
}

#wait for all nodes in the cluster to be ready status
Expand Down Expand Up @@ -130,8 +131,8 @@ case "${1:-}" in
install_master
;;
node)
if [ "$#" -eq 5 ]; then
install_node $3 $4 $5
if [ "$#" -eq 5 ] || [ "$#" -eq 7 ]; then
install_node $3 $4 $5 $6 $7
else
echo "invalid arguments for install node"
usage
Expand Down

0 comments on commit f07b4cf

Please sign in to comment.