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.

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