blob: acdb8e0d35e60f4de86260a9fbdee8484f9456ae [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"
Victor Ryzhenkinb7dec7c2018-07-05 15:01:10 +04007 kubernetes_hyperkube_repo: docker-prod-virtual.docker.mirantis.net/mirantis/kubernetes
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +04008 jenkins:
9 client:
10 job:
11 deploy-k8s-upgrade:
12 type: workflow-scm
13 concurrent: true
Alexander Evseev4589d712018-08-03 12:36:15 +020014 discard:
15 build:
16 keep_num: 10
17 artifact:
18 keep_num: 10
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040019 display_name: "Deploy - update kubernetes cluster"
20 scm:
21 type: git
22 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
23 branch: "${_param:jenkins_pipelines_branch}"
24 credentials: "gerrit"
25 script: k8s-upgrade-pipeline.groovy
26 param:
27 KUBERNETES_HYPERKUBE_IMAGE:
28 type: string
Victor Ryzhenkinb7dec7c2018-07-05 15:01:10 +040029 default: "${_param:kubernetes_hyperkube_repo}/hyperkube-amd64:v1.10.4-4"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040030 description: "Versioned image to update control plane from. Should be null if update rolling via reclass-system level"
31 KUBERNETES_PAUSE_IMAGE:
32 type: string
Victor Ryzhenkinb7dec7c2018-07-05 15:01:10 +040033 default: "${_param:kubernetes_hyperkube_repo}/pause-amd64:v1.10.4-4"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040034 description: "Versioned pause image to use in deployments. Should be null if update rolling via reclass-system level"
35 SALT_MASTER_URL:
36 type: string
37 default: "${_param:jenkins_salt_api_url}"
38 SALT_MASTER_CREDENTIALS:
39 type: string
40 default: "salt-qa-credentials"
41 PER_NODE:
42 type: boolean
43 default: 'true'
44 description: "Target nodes will be managed one by one"
45 TARGET_UPDATES:
46 type: string
47 default: "ctl,cmp"
48 description: "Comma separated list of nodes to update (Valid values are ctl,cmp)"
49 CTL_TARGET:
50 type: string
51 default: "I@kubernetes:master"
52 description: "Salt targeted kubernetes CTL nodes (ex. I@kubernetes:master). Kubernetes control plane"
53 CMP_TARGET:
54 type: string
55 default: "cmp* and I@kubernetes:pool"
56 description: "Salt targeted compute nodes (ex. 'cmp* and I@kubernetes:pool') Kubernetes computes"