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.

325 lines
6.3 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-flannel-ha:
  79. stage: deploy-part2
  80. extends: .packet_pr
  81. when: manual
  82. packet_debian10-cilium-svc-proxy:
  83. stage: deploy-part2
  84. extends: .packet_periodic
  85. when: on_success
  86. packet_debian10-calico:
  87. stage: deploy-part2
  88. extends: .packet_pr
  89. when: on_success
  90. packet_debian10-docker:
  91. stage: deploy-part2
  92. extends: .packet_pr
  93. when: on_success
  94. packet_debian11-calico:
  95. stage: deploy-part2
  96. extends: .packet_pr
  97. when: on_success
  98. packet_debian11-docker:
  99. stage: deploy-part2
  100. extends: .packet_pr
  101. when: on_success
  102. packet_centos7-calico-ha-once-localhost:
  103. stage: deploy-part2
  104. extends: .packet_pr
  105. when: on_success
  106. variables:
  107. # This will instruct Docker not to start over TLS.
  108. DOCKER_TLS_CERTDIR: ""
  109. services:
  110. - docker:19.03.9-dind
  111. packet_almalinux8-kube-ovn:
  112. stage: deploy-part2
  113. extends: .packet_periodic
  114. when: on_success
  115. packet_almalinux8-calico:
  116. stage: deploy-part2
  117. extends: .packet_pr
  118. when: on_success
  119. packet_rockylinux8-calico:
  120. stage: deploy-part2
  121. extends: .packet_pr
  122. when: on_success
  123. packet_rockylinux9-calico:
  124. stage: deploy-part2
  125. extends: .packet_pr
  126. when: on_success
  127. packet_rockylinux9-cilium:
  128. stage: deploy-part2
  129. extends: .packet_pr
  130. when: on_success
  131. variables:
  132. RESET_CHECK: "true"
  133. packet_almalinux8-docker:
  134. stage: deploy-part2
  135. extends: .packet_pr
  136. when: on_success
  137. packet_fedora36-docker-weave:
  138. stage: deploy-part2
  139. extends: .packet_pr
  140. when: on_success
  141. packet_opensuse-docker-cilium:
  142. stage: deploy-part2
  143. extends: .packet_pr
  144. when: manual
  145. # ### MANUAL JOBS
  146. packet_ubuntu16-docker-weave-sep:
  147. stage: deploy-part2
  148. extends: .packet_pr
  149. when: manual
  150. packet_ubuntu18-cilium-sep:
  151. stage: deploy-special
  152. extends: .packet_pr
  153. when: manual
  154. packet_ubuntu18-flannel-ha:
  155. stage: deploy-part2
  156. extends: .packet_pr
  157. when: manual
  158. packet_ubuntu18-flannel-ha-once:
  159. stage: deploy-part2
  160. extends: .packet_pr
  161. when: manual
  162. # Calico HA eBPF
  163. packet_almalinux8-calico-ha-ebpf:
  164. stage: deploy-part2
  165. extends: .packet_pr
  166. when: manual
  167. packet_debian10-macvlan:
  168. stage: deploy-part2
  169. extends: .packet_pr
  170. when: manual
  171. packet_centos7-calico-ha:
  172. stage: deploy-part2
  173. extends: .packet_pr
  174. when: manual
  175. packet_centos7-multus-calico:
  176. stage: deploy-part2
  177. extends: .packet_pr
  178. when: manual
  179. packet_fedora36-docker-calico:
  180. stage: deploy-part2
  181. extends: .packet_periodic
  182. when: on_success
  183. variables:
  184. RESET_CHECK: "true"
  185. packet_fedora35-calico-selinux:
  186. stage: deploy-part2
  187. extends: .packet_periodic
  188. when: on_success
  189. packet_fedora35-calico-swap-selinux:
  190. stage: deploy-part2
  191. extends: .packet_pr
  192. when: manual
  193. packet_amazon-linux-2-aio:
  194. stage: deploy-part2
  195. extends: .packet_pr
  196. when: manual
  197. packet_almalinux8-calico-nodelocaldns-secondary:
  198. stage: deploy-part2
  199. extends: .packet_pr
  200. when: manual
  201. packet_fedora36-kube-ovn:
  202. stage: deploy-part2
  203. extends: .packet_periodic
  204. when: on_success
  205. packet_debian11-custom-cni:
  206. stage: deploy-part2
  207. extends: .packet_pr
  208. when: manual
  209. packet_debian11-kubelet-csr-approver:
  210. stage: deploy-part2
  211. extends: .packet_pr
  212. when: manual
  213. # ### PR JOBS PART3
  214. # Long jobs (45min+)
  215. packet_centos7-weave-upgrade-ha:
  216. stage: deploy-part3
  217. extends: .packet_periodic
  218. when: on_success
  219. variables:
  220. UPGRADE_TEST: basic
  221. packet_ubuntu20-calico-etcd-kubeadm-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_debian11-calico-upgrade:
  233. stage: deploy-part3
  234. extends: .packet_pr
  235. when: on_success
  236. variables:
  237. UPGRADE_TEST: graceful
  238. packet_almalinux8-calico-remove-node:
  239. stage: deploy-part3
  240. extends: .packet_pr
  241. when: on_success
  242. variables:
  243. REMOVE_NODE_CHECK: "true"
  244. REMOVE_NODE_NAME: "instance-3"
  245. packet_ubuntu20-calico-etcd-kubeadm:
  246. stage: deploy-part3
  247. extends: .packet_pr
  248. when: on_success
  249. packet_debian11-calico-upgrade-once:
  250. stage: deploy-part3
  251. extends: .packet_periodic
  252. when: on_success
  253. variables:
  254. UPGRADE_TEST: graceful
  255. packet_ubuntu18-calico-ha-recover:
  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[2:],kube_control_plane[1:]"
  262. packet_ubuntu18-calico-ha-recover-noquorum:
  263. stage: deploy-part3
  264. extends: .packet_periodic
  265. when: on_success
  266. variables:
  267. RECOVER_CONTROL_PLANE_TEST: "true"
  268. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[1:],kube_control_plane[1:]"