Commit 355ce47
committed
fix: skip NetworkUnavailable condition in non-primary CNI mode
When kube-ovn is configured as a non-primary CNI, the daemon should
not set the NetworkUnavailable node condition - that's the responsibility
of the primary CNI.
This commit:
- Adds --non-primary-cni-mode flag to daemon configuration
- Skips setting NetworkUnavailable condition in configureNodeNic()
when running in non-primary CNI mode
- Skips loopOvn0Check() entirely in non-primary mode
- Updates Helm charts to pass the flag to the daemon
Fixes: #6194
Signed-off-by: Damir Nugmanov <damir_nug@mail.ru>1 parent 6a40d68 commit 355ce47
File tree
5 files changed
+28
-10
lines changed- charts
- kube-ovn-v2/templates/agent
- kube-ovn/templates
- pkg/daemon
5 files changed
+28
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
| 86 | + | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
| |||
145 | 146 | | |
146 | 147 | | |
147 | 148 | | |
| 149 | + | |
148 | 150 | | |
149 | 151 | | |
150 | 152 | | |
| |||
215 | 217 | | |
216 | 218 | | |
217 | 219 | | |
| 220 | + | |
218 | 221 | | |
219 | 222 | | |
220 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
| 633 | + | |
634 | 634 | | |
635 | 635 | | |
636 | 636 | | |
| |||
718 | 718 | | |
719 | 719 | | |
720 | 720 | | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | 721 | | |
725 | 722 | | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | 723 | | |
730 | | - | |
731 | | - | |
| 724 | + | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
| 730 | + | |
| 731 | + | |
| 732 | + | |
| 733 | + | |
| 734 | + | |
| 735 | + | |
| 736 | + | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
732 | 740 | | |
733 | 741 | | |
734 | 742 | | |
| |||
737 | 745 | | |
738 | 746 | | |
739 | 747 | | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
740 | 753 | | |
741 | 754 | | |
742 | 755 | | |
| |||
0 commit comments