-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add flannel resource as optional CNI #3853
base: main
Are you sure you want to change the base?
Conversation
Skipping CI for Draft Pull Request. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: praveenkumar The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -0,0 +1,9 @@ | |||
{ | |||
"release": { | |||
"base": "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since flannel image is not associated with OCP release what would be the base for this image?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, let's still have the OCP version here, like we're doing for OLM and Multus.
In any case, this should be automatically updated during rebase.
95768ef
to
bc6910c
Compare
@@ -0,0 +1,9 @@ | |||
{ | |||
"release": { | |||
"base": "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, let's still have the OCP version here, like we're doing for OLM and Multus.
In any case, this should be automatically updated during rebase.
bc6910c
to
3ea165d
Compare
3ea165d
to
f0085b7
Compare
f0085b7
to
292d6d6
Compare
packaging/microshift/config.yaml
Outdated
@@ -133,4 +133,5 @@ storage: | |||
# Allowed values are: unset, [], or one or more of ["snapshot-controller", "snapshot-webhook"] | |||
optionalCsiComponents: | |||
- "" | |||
|
|||
# Disable default CNI so user can use different CNI than OVN-K | |||
DisableDefaultCNI: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we put it under the network
section?
Also, please change the name to disableDefaultCNI
to be compatible with others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think better to have it under network section because if it is disabled then any config on network section is not going to work. Also should we put the config name as cniPlugin
and use same like storage ""
, "ovnk", and `"none" which will disable it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I like the consistency!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so the default will remain, if the value is unset it will defer to "ovnk" right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@eslutsky right, same as what we have for storage. I have updated this now.
292d6d6
to
e83b1df
Compare
e83b1df
to
86813e9
Compare
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.
86813e9
to
158c99d
Compare
@praveenkumar: The following tests failed, say
Full PR test history. Your PR dashboard. 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 kubernetes-sigs/prow repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
|
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/optional
so 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.cniPlugin
as config option and flannel package put a drop in config file which have this value as"none"
.Steps to test :
make rpm