USHIFT-4342: Add flannel resource as optional CNI#3853
Conversation
|
Skipping CI for Draft Pull Request. |
eslutsky
left a comment
There was a problem hiding this comment.
after disabling the CNI, microshift.service will still be dependent on : openvswitch.service and microshift-ovs-init.service
see: https://github.com/openshift/microshift/blob/main/packaging/systemd/microshift.service#L4
That's a great catch, @eslutsky ! |
As per man page of systemd-unit (https://man.archlinux.org/man/systemd.unit.5.en) looks like we can't remove the |
|
@praveenkumar , let's override the full list in |
@ggiguash So I tried following but that doesn't override the dependencies and And the systemd unit file looks like But when I start the microshift service I can see |
|
@praveenkumar , looking at So, it seems that we have no choice but to create a copy of The following seems to work correctly to as a proof of concept: |
Exactly, this is what I mention in #3853 (comment) as part of man page snip :)
Right, this is the way to achieve it. Now should we have this copy in
|
|
@praveenkumar , let's have a copy of the unit at This way, I hope, it will be obvious that changes in one unit file would need to be applied on the other. |
Sure, Updated it accordingly. |
|
/retitle USHIFT-4342: Add flannel resource as optional CNI |
|
@praveenkumar: This pull request references USHIFT-4342 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "4.18.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
/retest |
1 similar comment
|
/retest |
|
/test test-rebase |
|
/test ocp-conformance-rhel-eus-arm |
|
/test e2e-aws-footprint-and-performance |
1 similar comment
|
/test e2e-aws-footprint-and-performance |
This option is used to disable default OVN-K plugin and default value for this would be empty string. Also add warning in case this it is disabled.
`WITH_FLANNEL` env now we can build the flannel package with condition and default value is `0` which means not building it.
|
@praveenkumar: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
|
/retest |
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: eslutsky, praveenkumar The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
As of now this is going to draft mode and I will rebase it time to time and get feedback around it.
Right now kube-proxy and flannel resource added to
assets/optionalso that it will not increase the core microshift binary size and also have spec file change so that flannel can be optional package and it kube-proxy resources also added to this packagenetwork.cniPluginas config option and flannel package put a drop in config file which have this value as"none".Steps to test :
make rpm