k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/jobs/kubernetes-sigs/cluster-api-provider-vsphere/templates/cluster-api-provider-vsphere-periodics.yaml.tpl (about) 1 periodics: 2 - name: periodic-cluster-api-provider-vsphere-test-{{ ReplaceAll $.branch "." "-" }} 3 cluster: eks-prow-build-cluster 4 interval: 1h 5 decorate: true 6 rerun_auth_config: 7 github_team_slugs: 8 - org: kubernetes-sigs 9 slug: cluster-api-provider-vsphere-maintainers 10 extra_refs: 11 - org: kubernetes-sigs 12 repo: cluster-api-provider-vsphere 13 base_ref: {{ $.branch }} 14 path_alias: sigs.k8s.io/cluster-api-provider-vsphere 15 spec: 16 containers: 17 - image: {{ $.config.TestImage }} 18 resources: 19 limits: 20 cpu: 2 21 memory: 4Gi 22 requests: 23 cpu: 2 24 memory: 4Gi 25 command: 26 - runner.sh 27 args: 28 - make 29 - test-junit 30 annotations: 31 testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere 32 testgrid-tab-name: periodic-test-{{ ReplaceAll $.branch "." "-" }} 33 testgrid-alert-email: sig-cluster-lifecycle-cluster-api-vsphere-alerts@kubernetes.io 34 testgrid-num-failures-to-alert: "4" 35 description: Runs unit tests 36 {{ $testInBranch := list "release-1.7" "release-1.8" "release-1.9" -}} 37 {{ if has $.branch $testInBranch }} 38 - name: periodic-cluster-api-provider-vsphere-test-integration-{{ ReplaceAll $.branch "." "-" }} 39 cluster: eks-prow-build-cluster 40 labels: 41 preset-dind-enabled: "true" 42 preset-kind-volume-mounts: "true" 43 interval: 1h 44 decorate: true 45 rerun_auth_config: 46 github_team_slugs: 47 - org: kubernetes-sigs 48 slug: cluster-api-provider-vsphere-maintainers 49 extra_refs: 50 - org: kubernetes-sigs 51 repo: cluster-api-provider-vsphere 52 base_ref: {{ $.branch }} 53 path_alias: sigs.k8s.io/cluster-api-provider-vsphere 54 spec: 55 containers: 56 - image: {{ $.config.TestImage }} 57 # we need privileged mode in order to do docker in docker 58 securityContext: 59 privileged: true 60 capabilities: 61 add: ["NET_ADMIN"] 62 resources: 63 limits: 64 cpu: 4 65 memory: 3Gi 66 requests: 67 cpu: 4 68 memory: 3Gi 69 command: 70 - runner.sh 71 args: 72 - make 73 - test-integration 74 annotations: 75 testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere 76 testgrid-tab-name: periodic-test-integration-{{ ReplaceAll $.branch "." "-" }} 77 testgrid-alert-email: sig-cluster-lifecycle-cluster-api-vsphere-alerts@kubernetes.io 78 testgrid-num-failures-to-alert: "4" 79 description: Runs integration tests 80 {{ end -}} 81 {{ $modes := list "govmomi" "supervisor" -}} 82 {{ range $i, $mode := $modes -}} 83 {{ $modeFocus := "" -}} 84 {{ if eq $mode "supervisor" }}{{ $modeFocus = "\\\\[supervisor\\\\] " }}{{ end -}} 85 {{/* Run govmomi at 00:00 UTC, supervisor at 03:00 UTC */ -}} 86 {{ $cron := "'0 0 * * *'" -}} 87 {{ if eq $mode "supervisor" }}{{ $cron = "'0 3 * * *'" }}{{ end -}} 88 {{/* e2e full for supervisor mode has been introduced with release-1.10 */ -}} 89 {{ $skipInBranch := list -}} 90 {{ if eq $mode "supervisor" }}{{ $skipInBranch = list "release-1.7" "release-1.8" "release-1.9" }}{{ end -}} 91 {{ if has $.branch $skipInBranch | not }} 92 - name: periodic-cluster-api-provider-vsphere-e2e-{{ $mode }}-{{ ReplaceAll $.branch "." "-" }} 93 labels: 94 preset-dind-enabled: "true" 95 preset-cluster-api-provider-vsphere-e2e-config: "true" 96 preset-kind-volume-mounts: "true" 97 cron: {{ $cron }} 98 decorate: true 99 decoration_config: 100 timeout: 180m 101 rerun_auth_config: 102 github_team_slugs: 103 - org: kubernetes-sigs 104 slug: cluster-api-provider-vsphere-maintainers 105 extra_refs: 106 - org: kubernetes-sigs 107 repo: cluster-api-provider-vsphere 108 base_ref: {{ $.branch }} 109 path_alias: sigs.k8s.io/cluster-api-provider-vsphere 110 spec: 111 containers: 112 - image: {{ $.config.TestImage }} 113 command: 114 - runner.sh 115 args: 116 - ./hack/e2e.sh 117 env: 118 {{- if ne $modeFocus "" }} 119 - name: GINKGO_FOCUS 120 value: "{{ trim $modeFocus }}" 121 {{- end }} 122 - name: GINKGO_SKIP 123 value: "\\[Conformance\\] \\[specialized-infra\\]" 124 # we need privileged mode in order to do docker in docker 125 securityContext: 126 privileged: true 127 capabilities: 128 add: ["NET_ADMIN"] 129 resources: 130 requests: 131 cpu: "4000m" 132 memory: "6Gi" 133 annotations: 134 testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere 135 testgrid-tab-name: periodic-e2e-{{ $mode }}-{{ ReplaceAll $.branch "." "-" }} 136 testgrid-alert-email: sig-cluster-lifecycle-cluster-api-vsphere-alerts@kubernetes.io 137 testgrid-num-failures-to-alert: "4" 138 description: Runs all e2e tests 139 {{ end -}} 140 {{/* e2e with vcsim has been introduced with release-1.10 */ -}} 141 {{ $skipInBranch = list "release-1.7" "release-1.8" "release-1.9" -}} 142 {{ if has $.branch $skipInBranch | not }} 143 - name: periodic-cluster-api-provider-vsphere-e2e-vcsim-{{ $mode }}-{{ ReplaceAll $.branch "." "-" }} 144 cluster: eks-prow-build-cluster 145 labels: 146 preset-dind-enabled: "true" 147 preset-kind-volume-mounts: "true" 148 cron: {{ $cron }} 149 decorate: true 150 decoration_config: 151 timeout: 180m 152 rerun_auth_config: 153 github_team_slugs: 154 - org: kubernetes-sigs 155 slug: cluster-api-provider-vsphere-maintainers 156 extra_refs: 157 - org: kubernetes-sigs 158 repo: cluster-api-provider-vsphere 159 base_ref: {{ $.branch }} 160 path_alias: sigs.k8s.io/cluster-api-provider-vsphere 161 spec: 162 containers: 163 - image: {{ $.config.TestImage }} 164 command: 165 - runner.sh 166 args: 167 - ./hack/e2e.sh 168 env: 169 - name: GINKGO_FOCUS 170 {{- if eq $mode "supervisor" }} 171 value: "\\[vcsim\\] \\[supervisor\\]" 172 {{- else }} 173 value: "\\[vcsim\\]" 174 {{- end }} 175 # we need privileged mode in order to do docker in docker 176 securityContext: 177 privileged: true 178 capabilities: 179 add: ["NET_ADMIN"] 180 resources: 181 requests: 182 cpu: "4000m" 183 memory: "3Gi" 184 limits: 185 cpu: "4000m" 186 memory: "3Gi" 187 annotations: 188 testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere 189 testgrid-tab-name: periodic-e2e-vcsim-{{ $mode }}-{{ ReplaceAll $.branch "." "-" }} 190 testgrid-alert-email: sig-cluster-lifecycle-cluster-api-vsphere-alerts@kubernetes.io 191 testgrid-num-failures-to-alert: "4" 192 description: Runs all e2e tests 193 {{ end -}} 194 {{/* e2e conformance with supervisor mode has been introduced with release-1.10 */ -}} 195 {{ $skipInBranch = list -}} 196 {{ if eq $mode "supervisor" }}{{ $skipInBranch = list "release-1.7" "release-1.8" "release-1.9" }}{{ end -}} 197 {{ if has $.branch $skipInBranch | not }} 198 - name: periodic-cluster-api-provider-vsphere-e2e-{{ $mode }}-conformance-{{ ReplaceAll $.branch "." "-" }} 199 labels: 200 preset-dind-enabled: "true" 201 preset-cluster-api-provider-vsphere-e2e-config: "true" 202 preset-kind-volume-mounts: "true" 203 cron: {{ $cron }} 204 decorate: true 205 rerun_auth_config: 206 github_team_slugs: 207 - org: kubernetes-sigs 208 slug: cluster-api-provider-vsphere-maintainers 209 extra_refs: 210 - org: kubernetes-sigs 211 repo: cluster-api-provider-vsphere 212 base_ref: {{ $.branch }} 213 path_alias: sigs.k8s.io/cluster-api-provider-vsphere 214 spec: 215 containers: 216 - image: {{ $.config.TestImage }} 217 command: 218 - runner.sh 219 args: 220 - ./hack/e2e.sh 221 env: 222 - name: GINKGO_FOCUS 223 {{- if eq $.branch "release-1.7" "release-1.8" }} 224 value: "{{ $modeFocus }}\\[Conformance\\]" 225 {{- else }} 226 value: "{{ $modeFocus }}\\[Conformance\\] \\[K8s-Install\\]" 227 {{- end }} 228 # we need privileged mode in order to do docker in docker 229 securityContext: 230 privileged: true 231 capabilities: 232 add: ["NET_ADMIN"] 233 resources: 234 requests: 235 cpu: "4000m" 236 memory: "6Gi" 237 annotations: 238 testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere 239 testgrid-tab-name: periodic-e2e-{{ $mode }}-conformance-{{ ReplaceAll $.branch "." "-" }} 240 testgrid-alert-email: sig-cluster-lifecycle-cluster-api-vsphere-alerts@kubernetes.io 241 testgrid-num-failures-to-alert: "4" 242 description: Runs conformance tests for CAPV 243 {{ end -}} 244 {{/* e2e conformance-ci-latest has been introduced with release-1.9 */ -}} 245 {{/* e2e conformance-ci-latest with supervisor mode has been introduced with release-1.10 */ -}} 246 {{ $skipInBranch = list "release-1.7" "release-1.8" -}} 247 {{ if eq $mode "supervisor" }}{{ $skipInBranch = list "release-1.7" "release-1.8" "release-1.9" }}{{ end -}} 248 {{ if has $.branch $skipInBranch | not }} 249 - name: periodic-cluster-api-provider-vsphere-e2e-{{ $mode }}-conformance-ci-latest-{{ ReplaceAll $.branch "." "-" }} 250 labels: 251 preset-dind-enabled: "true" 252 preset-cluster-api-provider-vsphere-e2e-config: "true" 253 preset-kind-volume-mounts: "true" 254 cron: {{ $cron }} 255 decorate: true 256 rerun_auth_config: 257 github_team_slugs: 258 - org: kubernetes-sigs 259 slug: cluster-api-provider-vsphere-maintainers 260 extra_refs: 261 - org: kubernetes-sigs 262 repo: cluster-api-provider-vsphere 263 base_ref: {{ $.branch }} 264 path_alias: sigs.k8s.io/cluster-api-provider-vsphere 265 spec: 266 containers: 267 - image: {{ $.config.TestImage }} 268 command: 269 - runner.sh 270 args: 271 - ./hack/e2e.sh 272 env: 273 - name: GINKGO_FOCUS 274 value: "{{ $modeFocus }}\\[Conformance\\] \\[K8s-Install-ci-latest\\]" 275 # we need privileged mode in order to do docker in docker 276 securityContext: 277 privileged: true 278 capabilities: 279 add: ["NET_ADMIN"] 280 resources: 281 requests: 282 cpu: "4000m" 283 memory: "6Gi" 284 annotations: 285 testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere 286 testgrid-tab-name: periodic-e2e-{{ $mode }}-conformance-ci-latest-{{ ReplaceAll $.branch "." "-" }} 287 testgrid-alert-email: sig-cluster-lifecycle-cluster-api-vsphere-alerts@kubernetes.io 288 testgrid-num-failures-to-alert: "4" 289 description: Runs conformance tests with K8S ci latest for CAPV 290 {{ end -}} 291 {{ end -}} 292 {{- if eq $.branch "main" }} 293 - name: periodic-cluster-api-provider-vsphere-coverage-{{ ReplaceAll $.branch "." "-" }} 294 cluster: eks-prow-build-cluster 295 interval: {{ $.config.Interval }} 296 decorate: true 297 rerun_auth_config: 298 github_team_slugs: 299 - org: kubernetes-sigs 300 slug: cluster-api-provider-vsphere-maintainers 301 extra_refs: 302 - org: kubernetes-sigs 303 repo: cluster-api-provider-vsphere 304 base_ref: {{ $.branch }} 305 path_alias: sigs.k8s.io/cluster-api-provider-vsphere 306 - org: kubernetes 307 repo: test-infra 308 base_ref: master 309 path_alias: k8s.io/test-infra 310 spec: 311 containers: 312 - image: {{ $.config.TestImage }} 313 command: 314 - runner.sh 315 - bash 316 args: 317 - -c 318 - | 319 result=0 320 ./hack/ci-test-coverage.sh || result=$? 321 cp coverage.* ${ARTIFACTS} 322 cd ../../k8s.io/test-infra/gopherage 323 GO111MODULE=on go build . 324 ./gopherage filter --exclude-path="zz_generated,generated\.go" "${ARTIFACTS}/coverage.out" > "${ARTIFACTS}/filtered.cov" || result=$? 325 ./gopherage html "${ARTIFACTS}/filtered.cov" > "${ARTIFACTS}/coverage.html" || result=$? 326 ./gopherage junit --threshold 0 "${ARTIFACTS}/filtered.cov" > "${ARTIFACTS}/junit_coverage.xml" || result=$? 327 exit $result 328 securityContext: 329 privileged: true 330 capabilities: 331 add: ["NET_ADMIN"] 332 resources: 333 requests: 334 cpu: "4000m" 335 memory: "4Gi" 336 limits: 337 cpu: "4000m" 338 memory: "4Gi" 339 annotations: 340 testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere 341 testgrid-tab-name: periodic-test-coverage-{{ ReplaceAll $.branch "." "-" }} 342 testgrid-alert-email: sig-cluster-lifecycle-cluster-api-vsphere-alerts@kubernetes.io 343 testgrid-num-failures-to-alert: "4" 344 description: Shows test coverage for CAPV 345 346 - name: periodic-cluster-api-provider-vsphere-janitor 347 labels: 348 preset-dind-enabled: "true" 349 preset-cluster-api-provider-vsphere-e2e-config: "true" 350 interval: 12h 351 decorate: true 352 rerun_auth_config: 353 github_team_slugs: 354 - org: kubernetes-sigs 355 slug: cluster-api-provider-vsphere-maintainers 356 extra_refs: 357 - org: kubernetes-sigs 358 repo: cluster-api-provider-vsphere 359 base_ref: {{ $.branch }} 360 path_alias: sigs.k8s.io/cluster-api-provider-vsphere 361 spec: 362 containers: 363 - image: {{ $.config.TestImage }} 364 command: 365 - runner.sh 366 args: 367 - ./hack/clean-ci.sh 368 # we need privileged mode in order to do docker in docker 369 securityContext: 370 privileged: true 371 capabilities: 372 add: ["NET_ADMIN"] 373 resources: 374 requests: 375 cpu: "2000m" 376 memory: "4Gi" 377 annotations: 378 testgrid-dashboards: vmware-cluster-api-provider-vsphere, sig-cluster-lifecycle-cluster-api-provider-vsphere 379 testgrid-tab-name: periodic-e2e-janitor 380 testgrid-alert-email: sig-cluster-lifecycle-cluster-api-vsphere-alerts@kubernetes.io 381 testgrid-num-failures-to-alert: "4" 382 description: Runs the janitor to cleanup orphaned objects in CI 383 {{ end -}}