KubeMarine icon indicating copy to clipboard operation
KubeMarine copied to clipboard

[CPDEV-100884] Validate that kubernetes images are not downgraded

Open ilia1243 opened this issue 10 months ago • 1 comments

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:

  1. 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

ilia1243 avatar Apr 24 '24 09:04 ilia1243

TO merge after CPREQ-8620 is done (k8s 1.29.4 adoption)

koryaga avatar Apr 26 '24 08:04 koryaga