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.

249 lines
5.1 KiB

  1. ---
  2. .packet:
  3. extends: .testcases
  4. variables:
  5. ANSIBLE_TIMEOUT: "120"
  6. CI_PLATFORM: packet
  7. SSH_USER: kubespray
  8. tags:
  9. - ffci
  10. needs:
  11. - pipeline-image
  12. - ci-not-authorized
  13. # CI template for PRs
  14. .packet_pr:
  15. stage: deploy-part1
  16. rules:
  17. - if: $PR_LABELS =~ /.*ci-short.*/
  18. when: manual
  19. allow_failure: true
  20. - if: $CI_COMMIT_BRANCH =~ /^pr-.*$/
  21. when: on_success
  22. - when: manual
  23. allow_failure: true
  24. extends: .packet
  25. ## Uncomment this to have multiple stages
  26. # needs:
  27. # - packet_ubuntu20-calico-all-in-one
  28. .packet_pr_short:
  29. stage: deploy-part1
  30. extends: .packet
  31. rules:
  32. - if: $CI_COMMIT_BRANCH =~ /^pr-.*$/
  33. when: on_success
  34. - when: manual
  35. allow_failure: true
  36. .packet_pr_manual:
  37. extends: .packet_pr
  38. stage: deploy-extended
  39. rules:
  40. - if: $PR_LABELS =~ /.*ci-full.*/
  41. when: on_success
  42. # Else run as manual
  43. - when: manual
  44. allow_failure: true
  45. .packet_pr_extended:
  46. extends: .packet_pr
  47. stage: deploy-extended
  48. rules:
  49. - if: $PR_LABELS =~ /.*(ci-extended|ci-full).*/
  50. when: on_success
  51. - when: manual
  52. allow_failure: true
  53. # CI template for periodic CI jobs
  54. # Enabled when PERIODIC_CI_ENABLED var is set
  55. .packet_periodic:
  56. only:
  57. variables:
  58. - $PERIODIC_CI_ENABLED
  59. allow_failure: true
  60. extends: .packet
  61. # The ubuntu20-calico-all-in-one jobs are meant as early stages to prevent running the full CI if something is horribly broken
  62. packet_ubuntu20-calico-all-in-one:
  63. stage: deploy-part1
  64. extends: .packet_pr_short
  65. variables:
  66. RESET_CHECK: "true"
  67. # ### PR JOBS PART2
  68. packet_ubuntu20-crio:
  69. extends: .packet_pr_manual
  70. packet_ubuntu22-calico-all-in-one:
  71. extends: .packet_pr
  72. packet_ubuntu22-calico-all-in-one-upgrade:
  73. extends: .packet_pr
  74. variables:
  75. UPGRADE_TEST: graceful
  76. packet_ubuntu24-calico-etcd-datastore:
  77. extends: .packet_pr
  78. packet_almalinux9-crio:
  79. extends: .packet_pr
  80. packet_almalinux9-kube-ovn:
  81. extends: .packet_pr
  82. packet_debian11-calico-collection:
  83. extends: .packet_pr
  84. packet_debian11-macvlan:
  85. extends: .packet_pr
  86. packet_debian12-cilium:
  87. extends: .packet_pr
  88. packet_almalinux8-calico:
  89. extends: .packet_pr
  90. packet_rockylinux8-calico:
  91. extends: .packet_pr
  92. packet_rockylinux9-cilium:
  93. extends: .packet_pr
  94. variables:
  95. RESET_CHECK: "true"
  96. packet_amazon-linux-2-all-in-one:
  97. extends: .packet_pr
  98. packet_opensuse-docker-cilium:
  99. extends: .packet_pr
  100. packet_ubuntu20-cilium-sep:
  101. extends: .packet_pr
  102. packet_openeuler24-calico:
  103. extends: .packet_pr
  104. packet_ubuntu20-calico-all-in-one-hardening:
  105. extends: .packet_pr
  106. ## Extended
  107. packet_debian11-docker:
  108. extends: .packet_pr_extended
  109. packet_debian12-docker:
  110. extends: .packet_pr_extended
  111. packet_debian12-calico:
  112. extends: .packet_pr_extended
  113. packet_almalinux9-calico-remove-node:
  114. extends: .packet_pr_extended
  115. variables:
  116. REMOVE_NODE_CHECK: "true"
  117. REMOVE_NODE_NAME: "instance-3"
  118. packet_rockylinux9-calico:
  119. extends: .packet_pr_extended
  120. packet_almalinux9-calico:
  121. extends: .packet_pr_extended
  122. packet_almalinux9-docker:
  123. extends: .packet_pr_extended
  124. packet_ubuntu24-calico-all-in-one:
  125. extends: .packet_pr_extended
  126. packet_ubuntu20-calico-etcd-kubeadm:
  127. extends: .packet_pr_extended
  128. packet_ubuntu24-all-in-one-docker:
  129. extends: .packet_pr_extended
  130. packet_ubuntu22-all-in-one-docker:
  131. extends: .packet_pr_extended
  132. # ### MANUAL JOBS
  133. packet_fedora39-crio:
  134. extends: .packet_pr_manual
  135. packet_ubuntu20-flannel-ha:
  136. extends: .packet_pr_manual
  137. packet_ubuntu20-all-in-one-docker:
  138. extends: .packet_pr_manual
  139. packet_ubuntu20-flannel-ha-once:
  140. extends: .packet_pr_manual
  141. packet_fedora39-calico-swap-selinux:
  142. extends: .packet_pr_manual
  143. packet_almalinux9-calico-ha-ebpf:
  144. extends: .packet_pr_manual
  145. packet_almalinux9-calico-nodelocaldns-secondary:
  146. extends: .packet_pr_manual
  147. packet_debian11-custom-cni:
  148. extends: .packet_pr_manual
  149. packet_debian11-kubelet-csr-approver:
  150. extends: .packet_pr_manual
  151. packet_debian12-custom-cni-helm:
  152. extends: .packet_pr_manual
  153. packet_ubuntu20-calico-ha-wireguard:
  154. extends: .packet_pr_manual
  155. # PERIODIC
  156. packet_fedora40-docker-calico:
  157. stage: deploy-extended
  158. extends: .packet_periodic
  159. variables:
  160. RESET_CHECK: "true"
  161. packet_fedora39-calico-selinux:
  162. stage: deploy-extended
  163. extends: .packet_periodic
  164. packet_ubuntu20-calico-etcd-kubeadm-upgrade-ha:
  165. stage: deploy-extended
  166. extends: .packet_periodic
  167. variables:
  168. UPGRADE_TEST: basic
  169. packet_debian11-calico-upgrade-once:
  170. stage: deploy-extended
  171. extends: .packet_periodic
  172. variables:
  173. UPGRADE_TEST: graceful
  174. packet_ubuntu20-calico-ha-recover:
  175. stage: deploy-extended
  176. extends: .packet_periodic
  177. variables:
  178. RECOVER_CONTROL_PLANE_TEST: "true"
  179. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[2:]:kube_control_plane[1:]"
  180. packet_ubuntu20-calico-ha-recover-noquorum:
  181. stage: deploy-extended
  182. extends: .packet_periodic
  183. variables:
  184. RECOVER_CONTROL_PLANE_TEST: "true"
  185. RECOVER_CONTROL_PLANE_TEST_GROUPS: "etcd[1:]:kube_control_plane[1:]"
  186. packet_debian11-calico-upgrade:
  187. stage: deploy-extended
  188. extends: .packet_periodic
  189. variables:
  190. UPGRADE_TEST: graceful
  191. packet_debian12-cilium-svc-proxy:
  192. stage: deploy-extended
  193. extends: .packet_periodic