Kay Yan
0f9f9fb569
support kube-proxy nftables ( #12060 )
...
Signed-off-by: Kay Yan <kay.yan@daocloud.io >
2025-03-26 01:32:33 -07:00
Kay Yan
b38312d007
Upgrade CI for openSuse 15.6 ( #12074 )
...
Signed-off-by: Kay Yan <kay.yan@daocloud.io >
2025-03-25 03:52:33 -07:00
Kubernetes Prow Robot
02438442b9
Merge pull request #12050 from VannTen/cleanup/next_version_auto
...
Auto compute previous tag in CI
2025-03-18 03:09:50 -07:00
Max Gautier
03b40e71a3
Cleanup unneeded vagrant python packages from test deps ( #12051 )
2025-03-18 02:19:50 -07:00
Max Gautier
e0920b33d7
vagrant: allow to config vagrant with separate etcd ( #12045 )
...
This should help test separate etcd configuration locally more easily.
2025-03-18 02:15:49 -07:00
Max Gautier
fffc1b4ac0
CI: remove KUBESPRAY_VERSION
2025-03-17 18:13:11 +01:00
Max Gautier
c79b3ce46b
CI: convert galaxy version check to pre-commit + autodetect
2025-03-17 18:13:10 +01:00
Max Gautier
0c59cc84dd
CI: simplify rebase.sh
...
With the base ref (aka: target branch) available, we don't need to guess
stuff from the branch name
2025-03-17 18:13:09 +01:00
Kubernetes Prow Robot
986f461ef1
Merge pull request #12026 from VannTen/ci/convert_vagrant_to_kubevirt
...
CI: use kubevirt for molecule provisionning instead of vagrant
2025-03-13 08:57:48 -07:00
Max Gautier
96aadc3614
CI: only define mode in tests if needeed ( #12030 )
...
All tests have a mode actually, so changing the default is no big deal
(and makes more sense to have `default` as the default
2025-03-13 03:47:46 -07:00
Max Gautier
71ae3c78e2
CI: ensure kubevirt VMs are available as part of provisionning
...
Allow to use the provisionning playbook from multiples users without
duplicating the ssh check.
2025-03-13 10:14:49 +01:00
Max Gautier
315313dd10
CI: convert molecule jobs to parallel:matrix
...
With the new provisionning using kubevirt this should be faster.
2025-03-13 10:14:48 +01:00
Max Gautier
ac4c41e4e6
CI: use OS name in VMs
...
Allows an easier log reading on multi-OS test runs (such as molecule
tests)
2025-03-13 10:14:47 +01:00
Max Gautier
611f645907
CI: Generate ssh key pair on the fly
...
There is litte reason to share an ssh key common to all CI jobs, so
generate one for each on the fly.
Also use plain-text cloud-init config instead of base64 for readability
2025-03-13 10:14:46 +01:00
Max Gautier
e62bbe0c76
CI: adapt packet-ci role to act as a molecule provisioner
...
To work with molecule, we need to use the name provided by molecule_yml
in inventory.
Inject the name in the VirtualMachineInstance (with a default to handle
non-molecule scenario) and get it back as part of inventory).
Account for no ansible groups
2025-03-13 10:14:45 +01:00
Max Gautier
d0f91adde4
CI: allow cluster layout to be fully defined by individual test
2025-03-13 10:14:44 +01:00
Max Gautier
a8d494fb95
CI/kubevirt: allow every vars in kubevirt template to be overriden
...
The current templating of kubevirt VirtualMachine relies on global
ansible variables, except for the group the nodes are meant to be in.
In order to have more flexibility (in particular, mixed OS cluster for
instances), expect now an abitrary dict to be passed to the template ;
this allows to embed directly in the nodes definition any variable used
by the template.
2025-03-13 10:14:44 +01:00
Max Gautier
119fa5b0c0
CI: Remove cruft
...
Remove unused variables, and intermediary ones.
2025-03-13 10:14:43 +01:00
Boris
a51e7dd07d
refact ip stack ( #11953 )
2025-02-11 03:37:58 -08:00
Antoine Legrand
4373c1be1d
Revert "Add support for ipv6 only cluster via "enable_ipv6only_stack_networks…" ( #11941 )
...
This reverts commit 76c0a3aa75 .
2025-02-03 07:06:58 -08:00
dependabot[bot]
6af849089e
build(deps): bump the molecule group with 2 updates ( #11933 )
...
Bumps the molecule group with 2 updates: [molecule](https://github.com/ansible-community/molecule ) and [molecule-plugins[vagrant]](https://github.com/ansible-community/molecule-plugins ).
Updates `molecule` from 24.12.0 to 25.1.0
- [Release notes](https://github.com/ansible-community/molecule/releases )
- [Commits](https://github.com/ansible-community/molecule/compare/v24.12.0...v25.1.0 )
Updates `molecule-plugins[vagrant]` from 23.6.0 to 23.7.0
- [Release notes](https://github.com/ansible-community/molecule-plugins/releases )
- [Commits](https://github.com/ansible-community/molecule-plugins/compare/v23.6.0...v23.7.0 )
---
updated-dependencies:
- dependency-name: molecule
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: molecule
- dependency-name: molecule-plugins[vagrant]
dependency-type: direct:production
update-type: version-update:semver-minor
dependency-group: molecule
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-28 07:05:26 -08:00
Boris
76c0a3aa75
Add support for ipv6 only cluster via "enable_ipv6only_stack_networks" ( #11831 )
2025-01-27 04:15:22 -08:00
Max Gautier
d23c1464c9
Remove krew support ( #11824 )
...
* Remove krew installation support
Krew is fundamentally to install kubectl plugins, which are eminently a
client side things.
It's also not difficult to install on a client machine.
* Remove krew cleanup
2025-01-23 20:45:21 -08:00
Max Gautier
191f71afea
Drop explicit k8s_cluster group in CI inventory ( #11858 )
...
This removes compatibility with releases below 2.27.0, now that it has
been released and that we're testing upgrades against it.
2025-01-23 02:34:58 -08:00
Max Gautier
bfe858ba06
CI: cleanup dependencies, pre-commit autoupdate ( #11904 )
...
ansible-lint and yamllint are run as pre-commit hooks, which are
installed by pre-commit directly. So there is no need to put them in
tests/requirements.txt.
So remove them and make it leaner.
2025-01-23 01:56:59 -08:00
Kubernetes Prow Robot
5a7e1be070
Merge pull request #11905 from VannTen/feat/readme_template_version
...
Update README.md versions automatically in pre-commit
2025-01-22 19:42:37 -08:00
Max Gautier
d2e51e777c
CI: cleanup vars identical to kubespray defaults ( #11903 )
2025-01-21 05:46:37 -08:00
Max Gautier
a142f40e25
Update versions in README.md with pre-commit
...
Currently, versions in README.md need to be manually updated, and we
check it's done with a bash script.
Add a small utility playbook to add versions in README.md from their
actual default values, automatically.
This is done in pre-commit, and replace the scripted check ; instead it
will autofix the README.md, and fails in CI if needed.
We switch markdownlint behind the local hooks to gave it the opportunity
to catch a problem with the rendering.
2025-01-21 12:10:21 +01:00
Max Gautier
b548ccbe7f
Adapt CI/vagrant to run without sample inventory
2025-01-17 16:22:57 +01:00
Kay Yan
b104bb7a57
[kubernetes] Support Kubernetes v1.32.0 with RHEL8 ( #11885 )
...
* [kubernetes] Support Kubernetes v1.32.0
* add workaround for RHEL8
Signed-off-by: Kay Yan <kay.yan@daocloud.io >
---------
Signed-off-by: Kay Yan <kay.yan@daocloud.io >
Co-authored-by: Mohamed Zaian <mohamedzaian@gmail.com >
2025-01-15 08:54:35 -08:00
Kay Yan
3527cb1916
Update CI test from AlmaLinux8 to AlmaLinux9 ( #11889 )
...
Signed-off-by: Kay Yan <kay.yan@daocloud.io >
2025-01-14 02:50:32 -08:00
Kay Yan
369be00960
increase the memory requirement to 2GB ( #11864 )
...
Signed-off-by: Kay Yan <kay.yan@daocloud.io >
2025-01-07 08:00:28 +01:00
Max Gautier
ac9b76eb2e
Ignore Mem preflight errors on ubuntu upgrade testcase ( #11859 )
2025-01-06 11:52:16 +01:00
Kubernetes Prow Robot
57490d5e5e
Merge pull request #11793 from VannTen/cleanup/ci_testcases_better_callback
...
Use debug stdout callback in ci rather than manual debug
2024-12-27 18:40:12 +01:00
dependabot[bot]
6c69ffed5b
build(deps): bump molecule-plugins[vagrant] from 23.5.3 to 23.6.0 ( #11826 )
...
Bumps [molecule-plugins[vagrant]](https://github.com/ansible-community/molecule-plugins ) from 23.5.3 to 23.6.0.
- [Release notes](https://github.com/ansible-community/molecule-plugins/releases )
- [Commits](https://github.com/ansible-community/molecule-plugins/compare/v23.5.3...v23.6.0 )
---
updated-dependencies:
- dependency-name: molecule-plugins[vagrant]
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-24 14:46:11 +01:00
Kubernetes Prow Robot
30f0a14489
Merge pull request #11792 from VannTen/flake/race_sa_creation
...
Fix flakey test + cleanup in testcases/030-checknetwork
2024-12-17 03:26:52 +01:00
Kubernetes Prow Robot
acfaef2adf
Merge pull request #11797 from VannTen/ci/fix_collection_testing
...
CI: build collection before runnings tests
2024-12-16 11:12:51 +01:00
dependabot[bot]
a2cde9e77e
build(deps): bump ansible-lint from 24.10.0 to 24.12.2 ( #11799 )
...
Bumps [ansible-lint](https://github.com/ansible/ansible-lint ) from 24.10.0 to 24.12.2.
- [Release notes](https://github.com/ansible/ansible-lint/releases )
- [Commits](https://github.com/ansible/ansible-lint/compare/v24.10.0...v24.12.2 )
---
updated-dependencies:
- dependency-name: ansible-lint
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-16 07:50:51 +01:00
Max Gautier
7da317348c
CI: remove IDEMPOT_CHECK ( #11796 )
...
There is no test with IDEMPOT_CHECK=true since commit 7b78e6872 (disable
idempotency tests (#1872 ), 2017-10-26)
Remove the related infra from our CI scripts.
2024-12-13 20:02:26 +01:00
Max Gautier
2dddb4fb65
CI: test collections in one packet job
2024-12-13 16:44:31 +01:00
Max Gautier
18fab585ad
CI: build collection before runnings tests
...
We were running the playbooks before building the collections, so this
probably wasn't testing much.
2024-12-13 16:44:30 +01:00
Max Gautier
86a949dc81
CI: Remove Flatcar specifics
...
We don't test Flatcar at all in CI, thus remove special handling for it.
2024-12-13 11:44:51 +01:00
Max Gautier
f6d1c294d4
CI: Use the debug stdout callback instead of manual debug
...
This display in a readable (by humans) way the result of most tasks, and
should be way more readable that what we have now, which is frequently a
bunch of unreadable json.
+ some small fixes (using delegated_to instead of when
<control_plane_host>)
2024-12-13 11:44:49 +01:00
Max Gautier
630e9de658
CI: drop special casing for Opensuse and CoreOS ( #11791 )
...
- special casing should be in Kubespray, not in the test. It makes no
sense to do something in tests which won't be done in actual usage.
- We don't actually test CoreOS at all in the CI.
2024-12-13 03:52:26 +01:00
Max Gautier
12ed1fcf93
CI-tests: remove hostnets stuff from 030_check-network
...
There is no pods with hostNetwork deployed in this test, and therefore
the tasks are skipped / empty output (checked in CI).
2024-12-12 15:52:05 +01:00
Max Gautier
930df78d8a
CI: Use deployment instead of Pod for agnhost
...
This is a followup to 2ba28a338 (Revert "Wait for available API token in
a new namespace (#7045 )", 2024-10-25).
While checking for the serviceaccount token is not effective, there is
still a race when creating a Pod directly, because the ServiceAccount
itself might not be created yet.
More details at https://github.com/kubernetes/kubernetes/issues/66689 .
This cause very frequent flakes in our CI with spurious failures.
Use a Deployment instead ; it will takes cares of creating the Pods and
retrying ; it also let us use kubectl rollout status instead of manually
checking for the pods.
2024-12-12 15:52:04 +01:00
Kubernetes Prow Robot
74aee12305
Merge pull request #11786 from VannTen/cleanup/unused_ci_test_files
...
Remove testfiles which are not used in the CI.
2024-12-12 12:32:27 +01:00
Max Gautier
5bfc3396e9
CI: ignore Mem errors for some failing test in ci-extended
2024-12-12 09:52:59 +01:00
Max Gautier
b9e9364c50
Remove ara support in CI
...
We do not use it and it has some overhead.
2024-12-11 17:28:35 +01:00
Max Gautier
61b9bb93f1
Remove unneeded test dependencies
...
AFAICS, these are not used anywhere
2024-12-11 17:28:33 +01:00