KubeMarine
KubeMarine copied to clipboard
[CPDEV-98973] Scale Typha replicas to 1 in All-in-One
Description
- If Calico Typha is enabled in All-in-One, installation fails.
- This is caused by #618 after which we started to expect Typha deployment.
Solution
- Scale Typha replicas to 1 if it is enabled in schemes with 1 Kubernetes node.
- If 2nd Kubernetes node is added, scale replicas to 2 and redeploy
calico
plugin.
Test Cases
TestCase 1
Enable Calico Typha in All-in-One.
Steps:
- Set
plugins.calico.typha.enabled
to True in All-in-One and install the cluster.
Results:
Before | After |
---|---|
Installation fails | Installation succeeds with 1 deployed Typha replica |
TestCase 2
Add 2nd Kubernetes node to All-in-One with Calico Typha enabled.
Steps:
- Set
plugins.calico.typha.enabled
to True in All-in-One and install the cluster. - Add 2nd Kubernetes node.
ER: calico
plugin is redeployed and Calico Typha is scaled to 2 replicas.
Checklist
- [x] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] 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_calico.py - cover new enrichment, and redeploy cases.