KubeMarine
KubeMarine copied to clipboard
[CPDEV-100884] Validate that kubernetes images are not downgraded
Description
- If some kubernetes image version downgrades in the compatibility map, it may still not downgrade during Kubernetes upgrade.
- This leads to inconsistency of expected and actual versions, PaaS check may fail, and behavior of
kubemarine add_node
,kubemarine reconfigure
is undefined.
Solution
- Validate that kubernetes images are not downgraded for allowed upgrade cases.
- The PR can be merged once the problem with downgrade of etcd for v1.28.8 -> v1.29.1 is solved.
Test Cases
TestCase 1
Steps:
- Run
scripts/thirdparties/sync.py
ER: Until v1.29.1 is the latest patch version for Kubernetes v1.29, the tools fails.
Checklist
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] Integration CI passed
- [x] Unit tests. If Yes list of new/changed tests with brief description
- [x] There is no merge conflicts
Unit tests
test_sync.py - cover new case of validation
TO merge after CPREQ-8620 is done (k8s 1.29.4 adoption)