-
Notifications
You must be signed in to change notification settings - Fork 142
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
Enable BPF without disruption #3183
Conversation
505c932
to
41003a0
Compare
5ec79e4
to
09c5e40
Compare
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.
Two very minor comments, but otherwise this LGTM - thanks @song-jiang!
return nil | ||
} | ||
|
||
// If the Installation resource has been patched to dataplane: BPF then the |
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.
Just a nit, but the function comments should start with the function name. e.g.,
isRolloutCompleteWithBPFVolumes checks if the calico-node DaemonSet . . .
@@ -1489,6 +1489,17 @@ func (r *ReconcileInstallation) Reconcile(ctx context.Context, request reconcile | |||
// Tell the status manager that we're ready to monitor the resources we've told it about and receive statuses. | |||
r.status.ReadyToMonitor() | |||
|
|||
// BPF Upgrade without disruption: | |||
// Delegate logic implementation here using the state of the installation and dependent resources. |
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.
I suggest we modify this comment to something like this:
If eBPF is enabled in the operator API, patch FelixConfiguration to enable it within Felix.
if fc.Spec.BPFEnabled == nil || *fc.Spec.BPFEnabled { | ||
err := setBPFEnabledOnFelixConfiguration(fc, bpfEnabledOnInstall) | ||
if err != nil { | ||
reqLogger.Error(err, "Unable to enable eBPF data plane") |
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.
Is this correct? bpfEnabledOnInstall == false
so arent's we trying to explicitly disable?
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.
Good catch! Raised PR to fix it.
@caseydavenport PTAL. Thanks.
Description
This PR is based on #2921. It should been seen as a continuation of the original work with the following modifications:
For PR author
make gen-files
make gen-versions
For PR reviewers
A note for code reviewers - all pull requests must have the following:
kind/bug
if this is a bugfix.kind/enhancement
if this is a a new feature.enterprise
if this PR applies to Calico Enterprise only.