blob: 09f0166326b3d6627bb612cfad9e684013dac896 [file] [log] [blame]
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +04001#
2# Jobs to update cloud packages on given Salt master environment
3#
4parameters:
5 _param:
6 jenkins_salt_api_url: "http://${_param:salt_master_host}:6969"
7 hyperkube_repo: "${_param:kubernetes_hyperkube_repo}"
8 jenkins:
9 client:
10 job:
11 deploy-k8s-upgrade:
12 type: workflow-scm
13 concurrent: true
14 display_name: "Deploy - update kubernetes cluster"
15 scm:
16 type: git
17 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
18 branch: "${_param:jenkins_pipelines_branch}"
19 credentials: "gerrit"
20 script: k8s-upgrade-pipeline.groovy
21 param:
22 KUBERNETES_HYPERKUBE_IMAGE:
23 type: string
24 default: "${_param:hyperkube_repo}/hyperkube-amd64:v1.10.4-4"
25 description: "Versioned image to update control plane from. Should be null if update rolling via reclass-system level"
26 KUBERNETES_PAUSE_IMAGE:
27 type: string
28 default: "${_param:hyperkube_repo}/pause-amd64:v1.10.4-4"
29 description: "Versioned pause image to use in deployments. Should be null if update rolling via reclass-system level"
30 SALT_MASTER_URL:
31 type: string
32 default: "${_param:jenkins_salt_api_url}"
33 SALT_MASTER_CREDENTIALS:
34 type: string
35 default: "salt-qa-credentials"
36 PER_NODE:
37 type: boolean
38 default: 'true'
39 description: "Target nodes will be managed one by one"
40 TARGET_UPDATES:
41 type: string
42 default: "ctl,cmp"
43 description: "Comma separated list of nodes to update (Valid values are ctl,cmp)"
44 CTL_TARGET:
45 type: string
46 default: "I@kubernetes:master"
47 description: "Salt targeted kubernetes CTL nodes (ex. I@kubernetes:master). Kubernetes control plane"
48 CMP_TARGET:
49 type: string
50 default: "cmp* and I@kubernetes:pool"
51 description: "Salt targeted compute nodes (ex. 'cmp* and I@kubernetes:pool') Kubernetes computes"