mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +03:00
* project: update all dependencies including ansible Upgrade to ansible 7.x and ansible-core 2.14.x. There seems to be issue with ansible 8/ansible-core 2.15 so we remain on those versions for now. It's quite a big bump already anyway. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: install aws galaxy collection Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * ansible-lint: disable various rules after ansible upgrade Temporarily disable a bunch of linting action following ansible upgrade. Those should be taken care of separately. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve deprecated-module ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve no-free-form ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[meta] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[playbook] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve schema[tasks] ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-file-permissions ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve risky-shell-pipe ansible-lint error Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: remove deprecated warn args Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use fqcn for non builtin tasks Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: resolve syntax-check[missing-file] for contrib playbook Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * project: use arithmetic inside jinja to fix ansible 6 upgrade Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
88 lines
2.1 KiB
YAML
88 lines
2.1 KiB
YAML
---
|
|
|
|
.molecule:
|
|
tags: [c3.small.x86]
|
|
only: [/^pr-.*$/]
|
|
except: ['triggers']
|
|
image: $PIPELINE_IMAGE
|
|
services: []
|
|
stage: deploy-part1
|
|
before_script:
|
|
- tests/scripts/rebase.sh
|
|
- apt-get update && apt-get install -y python3-pip
|
|
- update-alternatives --install /usr/bin/python python /usr/bin/python3 10
|
|
- python -m pip uninstall -y ansible ansible-base ansible-core
|
|
- python -m pip install -r tests/requirements.txt
|
|
- ansible-galaxy install -r tests/requirements.yml
|
|
- ./tests/scripts/vagrant_clean.sh
|
|
script:
|
|
- ./tests/scripts/molecule_run.sh
|
|
after_script:
|
|
- chronic ./tests/scripts/molecule_logs.sh
|
|
artifacts:
|
|
when: always
|
|
paths:
|
|
- molecule_logs/
|
|
|
|
# CI template for periodic CI jobs
|
|
# Enabled when PERIODIC_CI_ENABLED var is set
|
|
.molecule_periodic:
|
|
only:
|
|
variables:
|
|
- $PERIODIC_CI_ENABLED
|
|
allow_failure: true
|
|
extends: .molecule
|
|
|
|
molecule_full:
|
|
extends: .molecule_periodic
|
|
|
|
molecule_no_container_engines:
|
|
extends: .molecule
|
|
script:
|
|
- ./tests/scripts/molecule_run.sh -e container-engine
|
|
when: on_success
|
|
|
|
molecule_docker:
|
|
extends: .molecule
|
|
script:
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/cri-dockerd
|
|
when: on_success
|
|
|
|
molecule_containerd:
|
|
extends: .molecule
|
|
script:
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/containerd
|
|
when: on_success
|
|
|
|
molecule_cri-o:
|
|
extends: .molecule
|
|
stage: deploy-part2
|
|
script:
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/cri-o
|
|
when: on_success
|
|
|
|
# Stage 3 container engines don't get as much attention so allow them to fail
|
|
molecule_kata:
|
|
extends: .molecule
|
|
stage: deploy-part3
|
|
allow_failure: true
|
|
script:
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/kata-containers
|
|
when: on_success
|
|
|
|
molecule_gvisor:
|
|
extends: .molecule
|
|
stage: deploy-part3
|
|
allow_failure: true
|
|
script:
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/gvisor
|
|
when: on_success
|
|
|
|
molecule_youki:
|
|
extends: .molecule
|
|
stage: deploy-part3
|
|
allow_failure: true
|
|
script:
|
|
- ./tests/scripts/molecule_run.sh -i container-engine/youki
|
|
when: on_success
|