Skip to content

Commit 8bd0032

Browse files
authored
Fix typo (#1221)
1 parent cd93472 commit 8bd0032

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

controllers/ebpf/agent_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ func (c *AgentController) envConfig(ctx context.Context, coll *flowslatest.FlowC
502502
})
503503
}
504504

505-
if helper.IsEBFPFlowFilterEnabled(&coll.Spec.Agent.EBPF) {
505+
if helper.IsEBPFFlowFilterEnabled(&coll.Spec.Agent.EBPF) {
506506
config = append(config, corev1.EnvVar{Name: envEnableFlowFilter, Value: "true"})
507507
if len(coll.Spec.Agent.EBPF.FlowFilter.Rules) != 0 {
508508
if filterRules := c.configureFlowFiltersRules(coll.Spec.Agent.EBPF.FlowFilter.Rules); filterRules != nil {

controllers/ebpf/bpfmanager-controller.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import (
44
"context"
55
"encoding/binary"
66
"fmt"
7-
"github.com/netobserv/network-observability-operator/controllers/constants"
8-
"github.com/netobserv/network-observability-operator/pkg/helper"
9-
"github.com/sirupsen/logrus"
107

118
flowslatest "github.com/netobserv/network-observability-operator/apis/flowcollector/v1beta2"
9+
"github.com/netobserv/network-observability-operator/controllers/constants"
10+
"github.com/netobserv/network-observability-operator/pkg/helper"
1211

1312
bpfmaniov1alpha1 "github.com/bpfman/bpfman-operator/apis/v1alpha1"
13+
"github.com/sirupsen/logrus"
1414
"k8s.io/apimachinery/pkg/api/errors"
1515
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
1616
"k8s.io/klog"
@@ -104,7 +104,7 @@ func prepareBpfApplication(bpfApp *bpfmaniov1alpha1.BpfApplication, fc *flowslat
104104
enableRTTValue = append(enableRTTValue, uint8(1))
105105
}
106106

107-
if helper.IsEBFPFlowFilterEnabled(&fc.Spec.Agent.EBPF) {
107+
if helper.IsEBPFFlowFilterEnabled(&fc.Spec.Agent.EBPF) {
108108
enableFLowFilterValue = append(enableFLowFilterValue, uint8(1))
109109
}
110110

pkg/helper/flowcollector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ func IsSubnetLabelsEnabled(spec *flowslatest.FlowCollectorFLP) bool {
158158
return AutoDetectOpenShiftNetworks(spec) || len(spec.SubnetLabels.CustomLabels) > 0
159159
}
160160

161-
func IsEBFPFlowFilterEnabled(spec *flowslatest.FlowCollectorEBPF) bool {
161+
func IsEBPFFlowFilterEnabled(spec *flowslatest.FlowCollectorEBPF) bool {
162162
return spec.FlowFilter != nil && spec.FlowFilter.Enable != nil && *spec.FlowFilter.Enable
163163
}
164164

0 commit comments

Comments
 (0)