mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-01-11 10:00:03 -03:30
* [kubernetes] Add hashes for kubernetes 1.26.11, 1.26.10 Make kubernetes 1.26.11 default * Workaround for yaml/pyyaml#601 * Convert exoscale tf provider to new version (#10646) This is untested. It passes terraform validate to un-broke the CI. * Update 0040-verify-settings.yml (#10699) remove embedded template * Use supported version of fedora in CI (#10108) * tests: replace fedora35 with fedora37 Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: replace fedora36 with fedora38 Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * docs: update fedora version in docs Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * molecule: upgrade fedora version Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * tests: upgrade fedora images for vagrant and kubevirt Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * vagrant: workaround to fix private network ip address in fedora Fedora stop supporting syconfig network script so we added a workaround here https://github.com/hashicorp/vagrant/issues/12762#issuecomment-1535957837 to fix it. * netowrkmanager: do not configure dns if using systemd-resolved We should not configure dns if we point to systemd-resolved. Systemd-resolved is using NetworkManager to infer the upstream DNS server so if we set NetworkManager to 127.0.0.53 it will prevent systemd-resolved to get the correct network DNS server. Thus if we are in this case we just don't set this setting. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * image-builder: update centos7 image Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> * gitlab-ci: mark fedora packet jobs as allow failure Fedora networking is still broken on Packet, let's mark it as allow failure for now. Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> --------- Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch> Co-authored-by: piwinkler <9642809+piwinkler@users.noreply.github.com> Co-authored-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
115 lines
3.1 KiB
YAML
115 lines
3.1 KiB
YAML
---
|
|
yamllint:
|
|
extends: .job
|
|
stage: unit-tests
|
|
tags: [light]
|
|
variables:
|
|
LANG: C.UTF-8
|
|
script:
|
|
- yamllint --strict .
|
|
except: ['triggers', 'master']
|
|
|
|
vagrant-validate:
|
|
extends: .job
|
|
stage: unit-tests
|
|
tags: [light]
|
|
variables:
|
|
VAGRANT_VERSION: 2.3.4
|
|
script:
|
|
- ./tests/scripts/vagrant-validate.sh
|
|
except: ['triggers', 'master']
|
|
|
|
ansible-lint:
|
|
extends: .job
|
|
stage: unit-tests
|
|
tags: [light]
|
|
script:
|
|
- ansible-lint -v
|
|
except: ['triggers', 'master']
|
|
|
|
syntax-check:
|
|
extends: .job
|
|
stage: unit-tests
|
|
tags: [light]
|
|
variables:
|
|
ANSIBLE_INVENTORY: inventory/local-tests.cfg
|
|
ANSIBLE_REMOTE_USER: root
|
|
ANSIBLE_BECOME: "true"
|
|
ANSIBLE_BECOME_USER: root
|
|
ANSIBLE_VERBOSITY: "3"
|
|
script:
|
|
- ansible-playbook --syntax-check cluster.yml
|
|
- ansible-playbook --syntax-check playbooks/cluster.yml
|
|
- ansible-playbook --syntax-check upgrade-cluster.yml
|
|
- ansible-playbook --syntax-check playbooks/upgrade_cluster.yml
|
|
- ansible-playbook --syntax-check reset.yml
|
|
- ansible-playbook --syntax-check playbooks/reset.yml
|
|
- ansible-playbook --syntax-check extra_playbooks/upgrade-only-k8s.yml
|
|
except: ['triggers', 'master']
|
|
|
|
collection-build-install-sanity-check:
|
|
extends: .job
|
|
stage: unit-tests
|
|
tags: [light]
|
|
variables:
|
|
ANSIBLE_COLLECTIONS_PATH: "./ansible_collections"
|
|
script:
|
|
- ansible-galaxy collection build
|
|
- ansible-galaxy collection install kubernetes_sigs-kubespray-$(grep "^version:" galaxy.yml | awk '{print $2}').tar.gz
|
|
- ansible-galaxy collection list $(egrep -i '(name:\s+|namespace:\s+)' galaxy.yml | awk '{print $2}' | tr '\n' '.' | sed 's|\.$||g') | grep "^kubernetes_sigs.kubespray"
|
|
- test -f ansible_collections/kubernetes_sigs/kubespray/playbooks/cluster.yml
|
|
- test -f ansible_collections/kubernetes_sigs/kubespray/playbooks/reset.yml
|
|
except: ['triggers', 'master']
|
|
|
|
tox-inventory-builder:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
extends: .job
|
|
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
|
|
- PIP_CONSTRAINT=tests/constraints.txt python -m pip install -r tests/requirements.txt
|
|
script:
|
|
- pip3 install tox
|
|
- cd contrib/inventory_builder && tox
|
|
except: ['triggers', 'master']
|
|
|
|
markdownlint:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
image: node
|
|
before_script:
|
|
- npm install -g markdownlint-cli@0.22.0
|
|
script:
|
|
- markdownlint $(find . -name '*.md' | grep -vF './.git') --ignore docs/_sidebar.md --ignore contrib/dind/README.md
|
|
|
|
check-readme-versions:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
image: python:3
|
|
script:
|
|
- tests/scripts/check_readme_versions.sh
|
|
|
|
check-galaxy-version:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
image: python:3
|
|
script:
|
|
- tests/scripts/check_galaxy_version.sh
|
|
|
|
check-typo:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
image: python:3
|
|
script:
|
|
- tests/scripts/check_typo.sh
|
|
|
|
ci-matrix:
|
|
stage: unit-tests
|
|
tags: [light]
|
|
image: python:3
|
|
script:
|
|
- tests/scripts/md-table/test.sh
|