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.

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