You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

315 lines
6.2 KiB

  1. ---
  2. .packet:
  3. extends: .testcases
  4. variables:
  5. ANSIBLE_TIMEOUT: "120"
  6. CI_PLATFORM: packet
  7. SSH_USER: kubespray
  8. tags:
  9. - packet
  10. except: [triggers]
  11. # CI template for PRs
  12. .packet_pr:
  13. only: [/^pr-.*$/]
  14. extends: .packet
  15. # CI template for periodic CI jobs
  16. # Enabled when PERIODIC_CI_ENABLED var is set
  17. .packet_periodic:
  18. only:
  19. variables:
  20. - $PERIODIC_CI_ENABLED
  21. allow_failure: true
  22. extends: .packet
  23. # The ubuntu20-calico-aio jobs are meant as early stages to prevent running the full CI if something is horribly broken
  24. packet_ubuntu20-calico-aio:
  25. stage: deploy-part1
  26. extends: .packet_pr
  27. when: on_success
  28. variables:
  29. RESET_CHECK: "true"
  30. # Exericse ansible variants during the nightly jobs
  31. packet_ubuntu20-calico-aio-ansible-2_9:
  32. stage: deploy-part1
  33. extends: .packet_periodic
  34. when: on_success
  35. variables:
  36. ANSIBLE_MAJOR_VERSION: "2.9"
  37. RESET_CHECK: "true"
  38. packet_ubuntu20-calico-aio-ansible-2_10:
  39. stage: deploy-part1
  40. extends: .packet_periodic
  41. when: on_success
  42. variables:
  43. ANSIBLE_MAJOR_VERSION: "2.10"
  44. RESET_CHECK: "true"
  45. packet_ubuntu20-calico-aio-ansible-2_11:
  46. stage: deploy-part1
  47. extends: .packet_periodic
  48. when: on_success
  49. variables:
  50. ANSIBLE_MAJOR_VERSION: "2.11"
  51. RESET_CHECK: "true"
  52. # ### PR JOBS PART2
  53. packet_ubuntu18-aio-docker:
  54. stage: deploy-part2
  55. extends: .packet_pr
  56. when: on_success
  57. packet_ubuntu20-aio-docker:
  58. stage: deploy-part2
  59. extends: .packet_pr
  60. when: on_success
  61. packet_ubuntu18-calico-aio:
  62. stage: deploy-part2
  63. extends: .packet_pr
  64. when: on_success
  65. packet_centos7-flannel-addons-ha:
  66. extends: .packet_pr
  67. stage: deploy-part2
  68. when: on_success
  69. packet_almalinux8-crio:
  70. extends: .packet_pr
  71. stage: deploy-part2
  72. when: on_success
  73. packet_ubuntu18-crio:
  74. extends: .packet_pr
  75. stage: deploy-part2
  76. when: manual
  77. packet_fedora35-crio:
  78. extends: .packet_pr
  79. stage: deploy-part2
  80. when: manual
  81. packet_ubuntu16-canal-ha:
  82. stage: deploy-part2
  83. extends: .packet_periodic
  84. when: on_success
  85. packet_ubuntu16-canal-sep:
  86. stage: deploy-special
  87. extends: .packet_pr
  88. when: manual
  89. packet_ubuntu16-flannel-ha:
  90. stage: deploy-part2
  91. extends: .packet_pr
  92. when: manual
  93. packet_debian10-cilium-svc-proxy:
  94. stage: deploy-part2
  95. extends: .packet_periodic
  96. when: on_success
  97. packet_debian10-calico:
  98. stage: deploy-part2
  99. extends: .packet_pr
  100. when: on_success
  101. packet_debian10-docker:
  102. stage: deploy-part2
  103. extends: .packet_pr
  104. when: on_success
  105. packet_debian11-calico:
  106. stage: deploy-part2
  107. extends: .packet_pr
  108. when: on_success
  109. packet_debian11-docker:
  110. stage: deploy-part2
  111. extends: .packet_pr
  112. when: on_success
  113. packet_centos7-calico-ha-once-localhost:
  114. stage: deploy-part2
  115. extends: .packet_pr
  116. when: on_success
  117. variables:
  118. # This will instruct Docker not to start over TLS.
  119. DOCKER_TLS_CERTDIR: ""
  120. services:
  121. - docker:19.03.9-dind
  122. packet_almalinux8-kube-ovn:
  123. stage: deploy-part2
  124. extends: .packet_periodic
  125. when: on_success
  126. packet_almalinux8-calico:
  127. stage: deploy-part2
  128. extends: .packet_pr
  129. when: on_success
  130. packet_almalinux8-docker:
  131. stage: deploy-part2
  132. extends: .packet_pr
  133. when: on_success
  134. packet_fedora34-docker-weave:
  135. stage: deploy-part2
  136. extends: .packet_pr
  137. when: on_success
  138. packet_opensuse-canal:
  139. stage: deploy-part2
  140. extends: .packet_periodic
  141. when: on_success
  142. packet_opensuse-docker-cilium:
  143. stage: deploy-part2
  144. extends: .packet_pr
  145. when: manual
  146. # ### MANUAL JOBS
  147. packet_ubuntu16-docker-weave-sep:
  148. stage: deploy-part2
  149. extends: .packet_pr
  150. when: manual
  151. packet_ubuntu18-cilium-sep:
  152. stage: deploy-special
  153. extends: .packet_pr
  154. when: manual
  155. packet_ubuntu18-flannel-ha:
  156. stage: deploy-part2
  157. extends: .packet_pr
  158. when: manual
  159. packet_ubuntu18-flannel-ha-once:
  160. stage: deploy-part2
  161. extends: .packet_pr
  162. when: manual
  163. # Calico HA eBPF
  164. packet_almalinux8-calico-ha-ebpf:
  165. stage: deploy-part2
  166. extends: .packet_pr
  167. when: manual
  168. packet_debian9-macvlan:
  169. stage: deploy-part2
  170. extends: .packet_pr
  171. when: manual
  172. packet_centos7-calico-ha:
  173. stage: deploy-part2
  174. extends: .packet_pr
  175. when: manual
  176. packet_centos7-multus-calico:
  177. stage: deploy-part2
  178. extends: .packet_pr
  179. when: manual
  180. packet_oracle7-canal-ha:
  181. stage: deploy-part2
  182. extends: .packet_pr
  183. when: manual
  184. packet_fedora35-docker-calico:
  185. stage: deploy-part2
  186. extends: .packet_periodic
  187. when: on_success
  188. variables:
  189. RESET_CHECK: "true"
  190. packet_fedora34-calico-selinux:
  191. stage: deploy-part2
  192. extends: .packet_periodic
  193. when: on_success
  194. packet_fedora35-calico-swap-selinux:
  195. stage: deploy-part2
  196. extends: .packet_pr
  197. when: manual
  198. packet_amazon-linux-2-aio:
  199. stage: deploy-part2
  200. extends: .packet_pr
  201. when: manual
  202. packet_almalinux8-calico-nodelocaldns-secondary:
  203. stage: deploy-part2
  204. extends: .packet_pr
  205. when: manual
  206. packet_fedora34-kube-ovn:
  207. stage: deploy-part2
  208. extends: .packet_periodic
  209. when: on_success
  210. # ### PR JOBS PART3
  211. # Long jobs (45min+)
  212. packet_centos7-docker-weave-upgrade-ha:
  213. stage: deploy-part3
  214. extends: .packet_periodic
  215. when: on_success
  216. variables:
  217. UPGRADE_TEST: basic
  218. packet_ubuntu20-calico-etcd-kubeadm-upgrade-ha:
  219. stage: deploy-part3
  220. extends: .packet_periodic
  221. when: on_success
  222. variables:
  223. UPGRADE_TEST: basic
  224. # Calico HA Wireguard
  225. packet_ubuntu20-calico-ha-wireguard:
  226. stage: deploy-part2
  227. extends: .packet_pr
  228. when: manual
  229. packet_debian10-calico-upgrade:
  230. stage: deploy-part3
  231. extends: .packet_pr
  232. when: on_success
  233. variables:
  234. UPGRADE_TEST: graceful
  235. packet_almalinux8-calico-remove-node:
  236. stage: deploy-part3
  237. extends: .packet_pr
  238. when: on_success
  239. variables:
  240. REMOVE_NODE_CHECK: "true"
  241. REMOVE_NODE_NAME: "instance-3"
  242. packet_debian10-calico-upgrade-once:
  243. stage: deploy-part3
  244. extends: .packet_periodic
  245. when: on_success
  246. variables:
  247. UPGRADE_TEST: graceful
  248. packet_ubuntu18-calico-ha-recover:
  249. stage: deploy-part3
  250. extends: .packet_periodic
  251. when: on_success
  252. variables:
  253. RECOVER_CONTROL_PLANE_TEST: "true"
  254. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[2:],kube_control_plane[1:]"
  255. packet_ubuntu18-calico-ha-recover-noquorum:
  256. stage: deploy-part3
  257. extends: .packet_periodic
  258. when: on_success
  259. variables:
  260. RECOVER_CONTROL_PLANE_TEST: "true"
  261. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[1:],kube_control_plane[1:]"