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.

335 lines
6.4 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. packet_ubuntu20-calico-aio-ansible-2_11:
  31. stage: deploy-part1
  32. extends: .packet_periodic
  33. when: on_success
  34. variables:
  35. ANSIBLE_MAJOR_VERSION: "2.11"
  36. RESET_CHECK: "true"
  37. # ### PR JOBS PART2
  38. packet_ubuntu18-aio-docker:
  39. stage: deploy-part2
  40. extends: .packet_pr
  41. when: on_success
  42. packet_ubuntu20-aio-docker:
  43. stage: deploy-part2
  44. extends: .packet_pr
  45. when: on_success
  46. packet_ubuntu20-calico-aio-hardening:
  47. stage: deploy-part2
  48. extends: .packet_pr
  49. when: on_success
  50. packet_ubuntu18-calico-aio:
  51. stage: deploy-part2
  52. extends: .packet_pr
  53. when: on_success
  54. packet_ubuntu22-aio-docker:
  55. stage: deploy-part2
  56. extends: .packet_pr
  57. when: on_success
  58. packet_ubuntu22-calico-aio:
  59. stage: deploy-part2
  60. extends: .packet_pr
  61. when: on_success
  62. packet_centos7-flannel-addons-ha:
  63. extends: .packet_pr
  64. stage: deploy-part2
  65. when: on_success
  66. packet_almalinux8-crio:
  67. extends: .packet_pr
  68. stage: deploy-part2
  69. when: on_success
  70. packet_ubuntu18-crio:
  71. extends: .packet_pr
  72. stage: deploy-part2
  73. when: manual
  74. packet_fedora35-crio:
  75. extends: .packet_pr
  76. stage: deploy-part2
  77. when: manual
  78. packet_ubuntu16-canal-ha:
  79. stage: deploy-part2
  80. extends: .packet_periodic
  81. when: on_success
  82. packet_ubuntu16-canal-sep:
  83. stage: deploy-special
  84. extends: .packet_pr
  85. when: manual
  86. packet_ubuntu16-flannel-ha:
  87. stage: deploy-part2
  88. extends: .packet_pr
  89. when: manual
  90. packet_debian10-cilium-svc-proxy:
  91. stage: deploy-part2
  92. extends: .packet_periodic
  93. when: on_success
  94. packet_debian10-calico:
  95. stage: deploy-part2
  96. extends: .packet_pr
  97. when: on_success
  98. packet_debian10-docker:
  99. stage: deploy-part2
  100. extends: .packet_pr
  101. when: on_success
  102. packet_debian11-calico:
  103. stage: deploy-part2
  104. extends: .packet_pr
  105. when: on_success
  106. packet_debian11-docker:
  107. stage: deploy-part2
  108. extends: .packet_pr
  109. when: on_success
  110. packet_centos7-calico-ha-once-localhost:
  111. stage: deploy-part2
  112. extends: .packet_pr
  113. when: on_success
  114. variables:
  115. # This will instruct Docker not to start over TLS.
  116. DOCKER_TLS_CERTDIR: ""
  117. services:
  118. - docker:19.03.9-dind
  119. packet_almalinux8-kube-ovn:
  120. stage: deploy-part2
  121. extends: .packet_periodic
  122. when: on_success
  123. packet_almalinux8-calico:
  124. stage: deploy-part2
  125. extends: .packet_pr
  126. when: on_success
  127. packet_rockylinux8-calico:
  128. stage: deploy-part2
  129. extends: .packet_pr
  130. when: on_success
  131. packet_rockylinux9-calico:
  132. stage: deploy-part2
  133. extends: .packet_pr
  134. when: on_success
  135. packet_rockylinux9-cilium:
  136. stage: deploy-part2
  137. extends: .packet_pr
  138. when: on_success
  139. variables:
  140. RESET_CHECK: "true"
  141. packet_almalinux8-docker:
  142. stage: deploy-part2
  143. extends: .packet_pr
  144. when: on_success
  145. packet_fedora36-docker-weave:
  146. stage: deploy-part2
  147. extends: .packet_pr
  148. when: on_success
  149. packet_opensuse-canal:
  150. stage: deploy-part2
  151. extends: .packet_periodic
  152. when: on_success
  153. packet_opensuse-docker-cilium:
  154. stage: deploy-part2
  155. extends: .packet_pr
  156. when: manual
  157. # ### MANUAL JOBS
  158. packet_ubuntu16-docker-weave-sep:
  159. stage: deploy-part2
  160. extends: .packet_pr
  161. when: manual
  162. packet_ubuntu18-cilium-sep:
  163. stage: deploy-special
  164. extends: .packet_pr
  165. when: manual
  166. packet_ubuntu18-flannel-ha:
  167. stage: deploy-part2
  168. extends: .packet_pr
  169. when: manual
  170. packet_ubuntu18-flannel-ha-once:
  171. stage: deploy-part2
  172. extends: .packet_pr
  173. when: manual
  174. # Calico HA eBPF
  175. packet_almalinux8-calico-ha-ebpf:
  176. stage: deploy-part2
  177. extends: .packet_pr
  178. when: manual
  179. packet_debian9-macvlan:
  180. stage: deploy-part2
  181. extends: .packet_pr
  182. when: manual
  183. packet_centos7-calico-ha:
  184. stage: deploy-part2
  185. extends: .packet_pr
  186. when: manual
  187. packet_centos7-multus-calico:
  188. stage: deploy-part2
  189. extends: .packet_pr
  190. when: manual
  191. packet_centos7-canal-ha:
  192. stage: deploy-part2
  193. extends: .packet_pr
  194. when: manual
  195. packet_fedora36-docker-calico:
  196. stage: deploy-part2
  197. extends: .packet_periodic
  198. when: on_success
  199. variables:
  200. RESET_CHECK: "true"
  201. packet_fedora35-calico-selinux:
  202. stage: deploy-part2
  203. extends: .packet_periodic
  204. when: on_success
  205. packet_fedora35-calico-swap-selinux:
  206. stage: deploy-part2
  207. extends: .packet_pr
  208. when: manual
  209. packet_amazon-linux-2-aio:
  210. stage: deploy-part2
  211. extends: .packet_pr
  212. when: manual
  213. packet_almalinux8-calico-nodelocaldns-secondary:
  214. stage: deploy-part2
  215. extends: .packet_pr
  216. when: manual
  217. packet_fedora36-kube-ovn:
  218. stage: deploy-part2
  219. extends: .packet_periodic
  220. when: on_success
  221. # ### PR JOBS PART3
  222. # Long jobs (45min+)
  223. packet_centos7-weave-upgrade-ha:
  224. stage: deploy-part3
  225. extends: .packet_periodic
  226. when: on_success
  227. variables:
  228. UPGRADE_TEST: basic
  229. packet_ubuntu20-calico-etcd-kubeadm-upgrade-ha:
  230. stage: deploy-part3
  231. extends: .packet_periodic
  232. when: on_success
  233. variables:
  234. UPGRADE_TEST: basic
  235. # Calico HA Wireguard
  236. packet_ubuntu20-calico-ha-wireguard:
  237. stage: deploy-part2
  238. extends: .packet_pr
  239. when: manual
  240. packet_debian11-calico-upgrade:
  241. stage: deploy-part3
  242. extends: .packet_pr
  243. when: on_success
  244. variables:
  245. UPGRADE_TEST: graceful
  246. packet_almalinux8-calico-remove-node:
  247. stage: deploy-part3
  248. extends: .packet_pr
  249. when: on_success
  250. variables:
  251. REMOVE_NODE_CHECK: "true"
  252. REMOVE_NODE_NAME: "instance-3"
  253. packet_ubuntu20-calico-etcd-kubeadm:
  254. stage: deploy-part3
  255. extends: .packet_pr
  256. when: on_success
  257. packet_debian11-calico-upgrade-once:
  258. stage: deploy-part3
  259. extends: .packet_periodic
  260. when: on_success
  261. variables:
  262. UPGRADE_TEST: graceful
  263. packet_ubuntu18-calico-ha-recover:
  264. stage: deploy-part3
  265. extends: .packet_periodic
  266. when: on_success
  267. variables:
  268. RECOVER_CONTROL_PLANE_TEST: "true"
  269. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[2:],kube_control_plane[1:]"
  270. packet_ubuntu18-calico-ha-recover-noquorum:
  271. stage: deploy-part3
  272. extends: .packet_periodic
  273. when: on_success
  274. variables:
  275. RECOVER_CONTROL_PLANE_TEST: "true"
  276. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[1:],kube_control_plane[1:]"