[Windows] Create a common CNI interface and config struct #5276
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Proposed Changes
As rke2-windows will have two CNI plugin options: calico and flannel, we should abstract the current code so that it gets easier and cleaner to include flannel. This PR tries to achieve that.
Changes:
This is part of the Flannel PR I am preparing but that PR is getting too large, hence I decided to split it into a couple of PRs to simplify reviewing and reduce the risk of introducing bugs
Types of Changes
New Feature
Verification
This is basically a refactoring of code. It does not introduce any new feature. Therefore, what would be great is a verification that rke2-windows-calico is still working and no regression was introduced by this PR
Testing
Linked Issues
#5275
#5215
User-Facing Change
Further Comments