blob: 7829b41299ecf9b94530fa4c8f7401ab553ddd62 [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 Ryzhenkin497c57f2018-10-25 19:21:14 +04007 kubernetes_hyperkube_repo: ${_param:mcp_docker_registry}/mirantis/kubernetes
Aleksei Kasatkina6048e72018-11-07 12:03:41 +01008 kubernetes_calico_repo: ${_param:mcp_docker_registry}/mirantis/projectcalico/calico
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +04009 jenkins:
10 client:
11 job:
12 deploy-k8s-upgrade:
13 type: workflow-scm
14 concurrent: true
Alexander Evseev4589d712018-08-03 12:36:15 +020015 discard:
16 build:
17 keep_num: 10
18 artifact:
19 keep_num: 10
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040020 display_name: "Deploy - update kubernetes cluster"
21 scm:
22 type: git
23 url: "${_param:jenkins_gerrit_url}/mk/mk-pipelines"
24 branch: "${_param:jenkins_pipelines_branch}"
25 credentials: "gerrit"
26 script: k8s-upgrade-pipeline.groovy
27 param:
Victor Ryzhenkin5d782d12019-01-18 05:44:07 +040028 KUBERNETES_HYPERKUBE_SOURCE:
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040029 type: string
Victor Ryzhenkin5d782d12019-01-18 05:44:07 +040030 default: ""
31 description: "Versioned hyperkube binary to update control plane from. Should be null if update rolling via reclass-system level"
32 KUBERNETES_HYPERKUBE_SOURCE_HASH:
33 type: string
34 default: ""
35 description: "Hyperkube binary md5 hash. Should be null if update rolling via reclass-system level"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040036 KUBERNETES_PAUSE_IMAGE:
37 type: string
Victor Ryzhenkin5d782d12019-01-18 05:44:07 +040038 default: ""
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040039 description: "Versioned pause image to use in deployments. Should be null if update rolling via reclass-system level"
40 SALT_MASTER_URL:
41 type: string
42 default: "${_param:jenkins_salt_api_url}"
43 SALT_MASTER_CREDENTIALS:
44 type: string
Victor Ryzhenkin5d782d12019-01-18 05:44:07 +040045 default: "salt"
Victor Ryzhenkindbf76d32018-09-28 16:29:22 +040046 SIMPLE_UPGRADE:
47 type: boolean
48 default: 'false'
49 description: "Choose between simple upgrade or upgrade with draining nodes"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040050 PER_NODE:
51 type: boolean
52 default: 'true'
53 description: "Target nodes will be managed one by one"
54 TARGET_UPDATES:
55 type: string
56 default: "ctl,cmp"
57 description: "Comma separated list of nodes to update (Valid values are ctl,cmp)"
58 CTL_TARGET:
59 type: string
60 default: "I@kubernetes:master"
61 description: "Salt targeted kubernetes CTL nodes (ex. I@kubernetes:master). Kubernetes control plane"
62 CMP_TARGET:
63 type: string
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040064 default: "I@kubernetes:pool and not I@kubernetes:master"
Victor Ryzhenkin7d5a9d82018-07-04 05:33:21 +040065 description: "Salt targeted compute nodes (ex. 'cmp* and I@kubernetes:pool') Kubernetes computes"
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040066 CONFORMANCE_RUN_AFTER:
67 type: boolean
68 default: "false"
69 description: "Run conformance tests after upgrade"
70 CONFORMANCE_RUN_BEFORE:
71 type: boolean
72 default: "false"
73 description: "Run conformance tests before upgrade"
74 TEST_K8S_API_SERVER:
75 type: string
76 default: "http://127.0.0.1:8080"
77 description: "Local kubernetes apiserver variable for conformance tests"
78 ARTIFACTORY_URL:
79 type: string
Victor Ryzhenkin497c57f2018-10-25 19:21:14 +040080 default: ${_param:mcp_docker_registry}
Victor Ryzhenkin349d6692018-10-23 20:48:09 +040081 description: "Artifactory URL where docker images located. Needed to correctly fetch conformance images."
Aleksei Kasatkina6048e72018-11-07 12:03:41 +010082 UPGRADE_CALICO_V2_TO_V3:
83 type: boolean
84 default: 'false'
85 description: "Perform Calico upgrade from v2.x to v3.x. It is not needed for minor version upgrade (e.g., from v3.1 to v3.2)."
86 CALICO_UPGRADE_VERSION:
87 type: string
88 default: 'v1.0.5'
89 description: "Version of 'calico-upgrade' utility to be used."
90 KUBERNETES_CALICO_IMAGE:
91 type: string
Victor Ryzhenkin5d782d12019-01-18 05:44:07 +040092 default: ""
Aleksei Kasatkina6048e72018-11-07 12:03:41 +010093 description: "Versioned calico/node image. Should be null if update rolling via reclass-system level"
Victor Ryzhenkin5d782d12019-01-18 05:44:07 +040094 KUBERNETES_CALICO_CALICOCTL_SOURCE:
Aleksei Kasatkina6048e72018-11-07 12:03:41 +010095 type: string
Victor Ryzhenkin5d782d12019-01-18 05:44:07 +040096 default: ""
97 description: "Versioned calico/ctl binary. Should be null if update rolling via reclass-system level"
98 KUBERNETES_CALICO_CALICOCTL_SOURCE_HASH:
Aleksei Kasatkina6048e72018-11-07 12:03:41 +010099 type: string
Victor Ryzhenkin5d782d12019-01-18 05:44:07 +0400100 default: ""
101 description: "Calico/ctl binary md5 hash. Should be null if update rolling via reclass-system level"
102 KUBERNETES_CALICO_CNI_SOURCE:
103 type: string
104 default: ""
105 description: "Versioned calico/cni binary. Should be null if update rolling via reclass-system level"
106 KUBERNETES_CALICO_CNI_SOURCE_HASH:
107 type: string
108 default: ""
109 description: "Calico/cni binary hash. Should be null if update rolling via reclass-system level"
110 KUBERNETES_CALICO_BIRDCL_SOURCE:
111 type: string
112 default: ""
113 description: "Versioned calico/bird binary. Should be null if update rolling via reclass-system level"
114 KUBERNETES_CALICO_BIRDCL_SOURCE_HASH:
115 type: string
116 default: ""
117 description: "Calico/bird binary hash. Should be null if update rolling via reclass-system level"
118 KUBERNETES_CALICO_CNI_IPAM_SOURCE:
119 type: string
120 default: ""
121 description: "Versioned calico/ipam binary. Should be null if update rolling via reclass-system level"
122 KUBERNETES_CALICO_CNI_IPAM_SOURCE_HASH:
123 type: string
124 default: ""
125 description: "Calico/ipam binary hash. Should be null if update rolling via reclass-system level"
Aleksei Kasatkina6048e72018-11-07 12:03:41 +0100126 KUBERNETES_CALICO_KUBE_CONTROLLERS_IMAGE:
127 type: string
Victor Ryzhenkin5d782d12019-01-18 05:44:07 +0400128 default: ""
Aleksei Kasatkina6048e72018-11-07 12:03:41 +0100129 description: "Versioned calico/kube-controllers image. Should be null if update rolling via reclass-system level"