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.
This commit is contained in:
Max Gautier
2025-01-21 11:33:39 +01:00
parent e73c2d081c
commit a142f40e25
5 changed files with 75 additions and 45 deletions

View File

@@ -96,6 +96,8 @@ Note:
## Supported Components
[//]: # BEGIN ANSIBLE MANAGED BLOCK
- Core
- [kubernetes](https://github.com/kubernetes/kubernetes) v1.32.0
- [etcd](https://github.com/etcd-io/etcd) v3.5.16
@@ -132,6 +134,8 @@ Note:
- [local-volume-provisioner](https://github.com/kubernetes-sigs/sig-storage-local-static-provisioner) v2.5.0
- [node-feature-discovery](https://github.com/kubernetes-sigs/node-feature-discovery) v0.16.4
[//]: # END ANSIBLE MANAGED BLOCK
## Container Runtime Notes
- The cri-o version should be aligned with the respective kubernetes version (i.e. kube_version=1.20.x, crio_version=1.20)