k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/kubernetes-sigs/cluster-api/templates/cluster-api-presubmits.yaml.tpl (about) 1 presubmits: 2 kubernetes-sigs/cluster-api: 3 - name: pull-cluster-api-build-{{ ReplaceAll $.branch "." "-" }} 4 cluster: eks-prow-build-cluster 5 decorate: true 6 path_alias: sigs.k8s.io/cluster-api 7 always_run: true 8 branches: 9 # The script this job runs is not in all branches. 10 - ^{{ $.branch }}$ 11 spec: 12 containers: 13 - image: {{ $.config.TestImage }} 14 command: 15 - runner.sh 16 - ./scripts/ci-build.sh 17 resources: 18 requests: 19 cpu: 6000m 20 memory: 4Gi 21 limits: 22 cpu: 6000m 23 memory: 4Gi 24 annotations: 25 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 26 testgrid-tab-name: capi-pr-build-{{ ReplaceAll $.branch "." "-" }} 27 - name: pull-cluster-api-apidiff-{{ ReplaceAll $.branch "." "-" }} 28 cluster: eks-prow-build-cluster 29 decorate: true 30 path_alias: sigs.k8s.io/cluster-api 31 optional: true 32 branches: 33 # The script this job runs is not in all branches. 34 - ^{{ $.branch }}$ 35 run_if_changed: '^((api|bootstrap|cmd|config|controllers|controlplane|errors|exp|feature|hack|internal|scripts|test|util|webhooks|version)/|main\.go|go\.mod|go\.sum|Dockerfile|Makefile)' 36 spec: 37 containers: 38 - command: 39 - runner.sh 40 - ./scripts/ci-apidiff.sh 41 image: {{ $.config.TestImage }} 42 resources: 43 requests: 44 cpu: 6000m 45 memory: 2Gi 46 limits: 47 cpu: 6000m 48 memory: 2Gi 49 annotations: 50 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 51 testgrid-tab-name: capi-pr-apidiff-{{ ReplaceAll $.branch "." "-" }} 52 - name: pull-cluster-api-verify-{{ ReplaceAll $.branch "." "-" }} 53 cluster: eks-prow-build-cluster 54 decorate: true 55 path_alias: sigs.k8s.io/cluster-api 56 always_run: true 57 labels: 58 preset-dind-enabled: "true" 59 branches: 60 # The script this job runs is not in all branches. 61 - ^{{ $.branch }}$ 62 spec: 63 containers: 64 - image: {{ $.config.TestImage }} 65 command: 66 - "runner.sh" 67 - ./scripts/ci-verify.sh 68 resources: 69 requests: 70 cpu: 5000m 71 memory: 3Gi 72 limits: 73 cpu: 5000m 74 memory: 3Gi 75 securityContext: 76 privileged: true 77 annotations: 78 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 79 testgrid-tab-name: capi-pr-verify-{{ ReplaceAll $.branch "." "-" }} 80 - name: pull-cluster-api-test-{{ ReplaceAll $.branch "." "-" }} 81 cluster: eks-prow-build-cluster 82 decorate: true 83 path_alias: sigs.k8s.io/cluster-api 84 branches: 85 # The script this job runs is not in all branches. 86 - ^{{ $.branch }}$ 87 run_if_changed: '^((api|bootstrap|cmd|config|controllers|controlplane|errors|exp|feature|hack|internal|scripts|test|util|webhooks|version)/|main\.go|go\.mod|go\.sum|Dockerfile|Makefile)' 88 spec: 89 containers: 90 - image: {{ $.config.TestImage }} 91 args: 92 - runner.sh 93 - ./scripts/ci-test.sh 94 resources: 95 requests: 96 cpu: 7300m 97 memory: 8Gi 98 limits: 99 cpu: 7300m 100 memory: 8Gi 101 annotations: 102 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 103 testgrid-tab-name: capi-pr-test-{{ ReplaceAll $.branch "." "-" }} 104 - name: pull-cluster-api-test-mink8s-{{ ReplaceAll $.branch "." "-" }} 105 cluster: eks-prow-build-cluster 106 decorate: true 107 path_alias: sigs.k8s.io/cluster-api 108 always_run: false 109 branches: 110 # The script this job runs is not in all branches. 111 - ^{{ $.branch }}$ 112 spec: 113 containers: 114 - image: {{ $.config.TestImage }} 115 args: 116 - runner.sh 117 - ./scripts/ci-test.sh 118 env: 119 # This value determines the minimum Kubernetes 120 # supported version for Cluster API management cluster 121 # and can be found by referring to [Supported Kubernetes Version](https://cluster-api.sigs.k8s.io/reference/versions.html#supported-kubernetes-versions) 122 # docs (look for minimum supported k8s version for management cluster, i.e N-3). 123 # 124 # To check the latest available envtest in Kubebuilder for the minor version we determined above, please 125 # refer to https://github.com/kubernetes-sigs/kubebuilder/tree/tools-releases. 126 - name: KUBEBUILDER_ENVTEST_KUBERNETES_VERSION 127 value: "{{ $.config.KubebuilderEnvtestKubernetesVersion }}" 128 resources: 129 requests: 130 cpu: 7300m 131 memory: 8Gi 132 limits: 133 cpu: 7300m 134 memory: 8Gi 135 annotations: 136 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 137 testgrid-tab-name: capi-pr-test-mink8s-{{ ReplaceAll $.branch "." "-" }} 138 - name: pull-cluster-api-e2e-mink8s-{{ ReplaceAll $.branch "." "-" }} 139 cluster: eks-prow-build-cluster 140 labels: 141 preset-dind-enabled: "true" 142 preset-kind-volume-mounts: "true" 143 extra_refs: 144 - org: kubernetes 145 repo: kubernetes 146 base_ref: master 147 path_alias: k8s.io/kubernetes 148 decorate: true 149 path_alias: sigs.k8s.io/cluster-api 150 always_run: false 151 branches: 152 # The script this job runs is not in all branches. 153 - ^{{ $.branch }}$ 154 spec: 155 containers: 156 - image: {{ $.config.TestImage }} 157 args: 158 - runner.sh 159 - ./scripts/ci-e2e.sh 160 env: 161 # enable IPV6 in bootstrap image 162 - name: "DOCKER_IN_DOCKER_IPV6_ENABLED" 163 value: "true" 164 - name: GINKGO_SKIP 165 value: "\\[Conformance\\]" 166 # This value determines the minimum Kubernetes 167 # supported version for Cluster API management cluster 168 # and can be found by referring to [Supported Kubernetes Version](https://cluster-api.sigs.k8s.io/reference/versions.html#supported-kubernetes-versions) 169 # docs (look for minimum supported k8s version for management cluster, i.e N-3). 170 # Please also make sure to refer a version where a kindest/node image exists 171 # for (see https://github.com/kubernetes-sigs/kind/releases/) 172 - name: KUBERNETES_VERSION_MANAGEMENT 173 value: "{{ $.config.KubernetesVersionManagement }}" 174 # we need privileged mode in order to do docker in docker 175 securityContext: 176 privileged: true 177 resources: 178 requests: 179 cpu: 3000m 180 memory: 8Gi 181 limits: 182 cpu: 3000m 183 memory: 8Gi 184 annotations: 185 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 186 testgrid-tab-name: capi-pr-e2e-mink8s-{{ ReplaceAll $.branch "." "-" }} 187 - name: pull-cluster-api-e2e-blocking-{{ ReplaceAll $.branch "." "-" }} 188 cluster: eks-prow-build-cluster 189 labels: 190 preset-dind-enabled: "true" 191 preset-kind-volume-mounts: "true" 192 extra_refs: 193 - org: kubernetes 194 repo: kubernetes 195 base_ref: master 196 path_alias: k8s.io/kubernetes 197 decorate: true 198 branches: 199 # The script this job runs is not in all branches. 200 - ^{{ $.branch }}$ 201 path_alias: sigs.k8s.io/cluster-api 202 run_if_changed: '^((api|bootstrap|cmd|config|controllers|controlplane|errors|exp|feature|hack|internal|scripts|test|util|webhooks|version)/|main\.go|go\.mod|go\.sum|Dockerfile|Makefile)' 203 spec: 204 containers: 205 - image: {{ $.config.TestImage }} 206 args: 207 - runner.sh 208 - "./scripts/ci-e2e.sh" 209 env: 210 - name: GINKGO_FOCUS 211 value: "\\[PR-Blocking\\]" 212 # we need privileged mode in order to do docker in docker 213 securityContext: 214 privileged: true 215 resources: 216 requests: 217 cpu: 3000m 218 memory: 8Gi 219 limits: 220 cpu: 3000m 221 memory: 8Gi 222 annotations: 223 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 224 testgrid-tab-name: capi-pr-e2e-blocking-{{ ReplaceAll $.branch "." "-" }} 225 {{- if eq $.branch "release-1.5" }} 226 - name: pull-cluster-api-e2e-informing-{{ ReplaceAll $.branch "." "-" }} 227 cluster: eks-prow-build-cluster 228 labels: 229 preset-dind-enabled: "true" 230 preset-kind-volume-mounts: "true" 231 extra_refs: 232 - org: kubernetes 233 repo: kubernetes 234 base_ref: master 235 path_alias: k8s.io/kubernetes 236 decorate: true 237 optional: true 238 branches: 239 # The script this job runs is not in all branches. 240 - ^{{ $.branch }}$ 241 path_alias: sigs.k8s.io/cluster-api 242 run_if_changed: '^((api|bootstrap|cmd|config|controllers|controlplane|errors|exp|feature|hack|internal|scripts|test|util|webhooks|version)/|main\.go|go\.mod|go\.sum|Dockerfile|Makefile)' 243 spec: 244 containers: 245 - image: {{ $.config.TestImage }} 246 args: 247 - runner.sh 248 - "./scripts/ci-e2e.sh" 249 env: 250 - name: GINKGO_FOCUS 251 value: "\\[PR-Informing\\]" 252 # we need privileged mode in order to do docker in docker 253 securityContext: 254 privileged: true 255 resources: 256 requests: 257 cpu: 3000m 258 memory: 8Gi 259 limits: 260 cpu: 3000m 261 memory: 8Gi 262 annotations: 263 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 264 testgrid-tab-name: capi-pr-e2e-informing-{{ ReplaceAll $.branch "." "-" }} 265 {{- end }} 266 - name: pull-cluster-api-e2e-{{ ReplaceAll $.branch "." "-" }} 267 cluster: eks-prow-build-cluster 268 labels: 269 preset-dind-enabled: "true" 270 preset-kind-volume-mounts: "true" 271 extra_refs: 272 - org: kubernetes 273 repo: kubernetes 274 base_ref: master 275 path_alias: k8s.io/kubernetes 276 decorate: true 277 always_run: false 278 branches: 279 # The script this job runs is not in all branches. 280 - ^{{ $.branch }}$ 281 path_alias: sigs.k8s.io/cluster-api 282 spec: 283 containers: 284 - image: {{ $.config.TestImage }} 285 args: 286 - runner.sh 287 - "./scripts/ci-e2e.sh" 288 env: 289 # enable IPV6 in bootstrap image 290 - name: "DOCKER_IN_DOCKER_IPV6_ENABLED" 291 value: "true" 292 - name: GINKGO_SKIP 293 value: "\\[Conformance\\]" 294 # we need privileged mode in order to do docker in docker 295 securityContext: 296 privileged: true 297 resources: 298 requests: 299 cpu: 3000m 300 memory: 8Gi 301 limits: 302 cpu: 3000m 303 memory: 8Gi 304 annotations: 305 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 306 testgrid-tab-name: capi-pr-e2e-{{ ReplaceAll $.branch "." "-" }} 307 - name: pull-cluster-api-e2e-upgrade-{{ ReplaceAll (last $.config.Upgrades).From "." "-" }}-{{ ReplaceAll (last $.config.Upgrades).To "." "-" }}-{{ ReplaceAll $.branch "." "-" }} 308 cluster: eks-prow-build-cluster 309 labels: 310 preset-dind-enabled: "true" 311 preset-kind-volume-mounts: "true" 312 decorate: true 313 always_run: false 314 branches: 315 # The script this job runs is not in all branches. 316 - ^{{ $.branch }}$ 317 path_alias: sigs.k8s.io/cluster-api 318 extra_refs: 319 - org: kubernetes 320 repo: kubernetes 321 base_ref: master 322 path_alias: k8s.io/kubernetes 323 spec: 324 containers: 325 - image: {{ $.config.TestImage }} 326 args: 327 - runner.sh 328 - "./scripts/ci-e2e.sh" 329 env: 330 - name: ALWAYS_BUILD_KIND_IMAGES 331 value: "true" 332 - name: KUBERNETES_VERSION_UPGRADE_FROM 333 value: "{{ index (index $.versions ((last $.config.Upgrades).From)) "k8sRelease" }}" 334 - name: KUBERNETES_VERSION_UPGRADE_TO 335 value: "{{ index (index $.versions ((last $.config.Upgrades).To)) "k8sRelease" }}" 336 - name: ETCD_VERSION_UPGRADE_TO 337 value: "{{ index (index $.versions ((last $.config.Upgrades).To)) "etcd" }}" 338 - name: COREDNS_VERSION_UPGRADE_TO 339 value: "{{ index (index $.versions ((last $.config.Upgrades).To)) "coreDNS" }}" 340 - name: GINKGO_FOCUS 341 value: "\\[Conformance\\] \\[K8s-Upgrade\\]" 342 # we need privileged mode in order to do docker in docker 343 securityContext: 344 privileged: true 345 resources: 346 requests: 347 cpu: 6000m 348 memory: 6Gi 349 limits: 350 cpu: 6000m 351 memory: 6Gi 352 annotations: 353 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 354 testgrid-tab-name: capi-pr-e2e-{{ ReplaceAll $.branch "." "-" }}-{{ ReplaceAll (last $.config.Upgrades).From "." "-" }}-{{ ReplaceAll (last $.config.Upgrades).To "." "-" }} 355 {{ if eq $.branch "release-1.5" "release-1.6" | not }} 356 - name: pull-cluster-api-e2e-conformance-{{ ReplaceAll $.branch "." "-" }} 357 cluster: eks-prow-build-cluster 358 labels: 359 preset-dind-enabled: "true" 360 preset-kind-volume-mounts: "true" 361 extra_refs: 362 - org: kubernetes 363 repo: kubernetes 364 base_ref: master 365 path_alias: k8s.io/kubernetes 366 decorate: true 367 always_run: false 368 branches: 369 # The script this job runs is not in all branches. 370 - ^{{ $.branch }}$ 371 path_alias: sigs.k8s.io/cluster-api 372 spec: 373 containers: 374 - image: {{ $.config.TestImage }} 375 args: 376 - runner.sh 377 - "./scripts/ci-e2e.sh" 378 env: 379 - name: GINKGO_FOCUS 380 value: "\\[Conformance\\] \\[K8s-Install\\]" 381 # we need privileged mode in order to do docker in docker 382 securityContext: 383 privileged: true 384 resources: 385 requests: 386 cpu: 4000m 387 memory: 4Gi 388 limits: 389 cpu: 4000m 390 memory: 4Gi 391 annotations: 392 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 393 testgrid-tab-name: capi-pr-e2e-conformance-{{ ReplaceAll $.branch "." "-" }} 394 - name: pull-cluster-api-e2e-conformance-ci-latest-{{ ReplaceAll $.branch "." "-" }} 395 cluster: eks-prow-build-cluster 396 labels: 397 preset-dind-enabled: "true" 398 preset-kind-volume-mounts: "true" 399 extra_refs: 400 - org: kubernetes 401 repo: kubernetes 402 base_ref: master 403 path_alias: k8s.io/kubernetes 404 decorate: true 405 always_run: false 406 branches: 407 # The script this job runs is not in all branches. 408 - ^{{ $.branch }}$ 409 path_alias: sigs.k8s.io/cluster-api 410 spec: 411 containers: 412 - image: {{ $.config.TestImage }} 413 args: 414 - runner.sh 415 - "./scripts/ci-e2e.sh" 416 env: 417 - name: GINKGO_FOCUS 418 value: "\\[Conformance\\] \\[K8s-Install-ci-latest\\]" 419 # we need privileged mode in order to do docker in docker 420 securityContext: 421 privileged: true 422 resources: 423 requests: 424 cpu: 4000m 425 memory: 4Gi 426 limits: 427 cpu: 4000m 428 memory: 4Gi 429 annotations: 430 testgrid-dashboards: sig-cluster-lifecycle-cluster-api{{ if eq $.branch "main" | not -}}{{ TrimPrefix $.branch "release" }}{{- end }} 431 testgrid-tab-name: capi-pr-e2e-conformance-ci-latest-{{ ReplaceAll $.branch "." "-" }} 432 {{ end -}}