Skip to content

Commit

Permalink
Fix typo: s/enableFLowExporter/enableFlowExporter (#5503)
Browse files Browse the repository at this point in the history
Signed-off-by: Antonin Bas <[email protected]>
  • Loading branch information
antoninbas authored Sep 20, 2023
1 parent 7345c32 commit f551bea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/antrea-agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func run(o *Options) error {
l7NetworkPolicyEnabled := features.DefaultFeatureGate.Enabled(features.L7NetworkPolicy)
enableMulticlusterGW := features.DefaultFeatureGate.Enabled(features.Multicluster) && o.config.Multicluster.EnableGateway
enableMulticlusterNP := features.DefaultFeatureGate.Enabled(features.Multicluster) && o.config.Multicluster.EnableStretchedNetworkPolicy
enableFLowExporter := features.DefaultFeatureGate.Enabled(features.FlowExporter) && o.config.FlowExporter.Enable
enableFlowExporter := features.DefaultFeatureGate.Enabled(features.FlowExporter) && o.config.FlowExporter.Enable
var nodeIPTracker *nodeip.Tracker
if o.nodeType == config.K8sNode {
nodeIPTracker = nodeip.NewTracker(nodeInformer)
Expand All @@ -161,7 +161,7 @@ func run(o *Options) error {
features.DefaultFeatureGate.Enabled(features.AntreaPolicy),
l7NetworkPolicyEnabled,
o.enableEgress,
enableFLowExporter,
enableFlowExporter,
o.config.AntreaProxy.ProxyAll,
features.DefaultFeatureGate.Enabled(features.LoadBalancerModeDSR),
connectUplinkToBridge,
Expand Down Expand Up @@ -324,7 +324,7 @@ func run(o *Options) error {
// Initialize localPodInformer for NPLAgent, AntreaIPAMController,
// StretchedNetworkPolicyController, and secondary network controller.
var localPodInformer cache.SharedIndexInformer
if enableNodePortLocal || enableBridgingMode || enableMulticlusterNP || enableFLowExporter ||
if enableNodePortLocal || enableBridgingMode || enableMulticlusterNP || enableFlowExporter ||
features.DefaultFeatureGate.Enabled(features.SecondaryNetwork) ||
features.DefaultFeatureGate.Enabled(features.TrafficControl) {
listOptions := func(options *metav1.ListOptions) {
Expand Down Expand Up @@ -618,7 +618,7 @@ func run(o *Options) error {
}

var flowExporter *exporter.FlowExporter
if enableFLowExporter {
if enableFlowExporter {
podStore := podstore.NewPodStore(localPodInformer)
flowExporterOptions := &flowexporter.FlowExporterOptions{
FlowCollectorAddr: o.flowCollectorAddr,
Expand Down Expand Up @@ -885,7 +885,7 @@ func run(o *Options) error {
go ofClient.Run(stopCh)

// Start the goroutine to periodically export IPFIX flow records.
if enableFLowExporter {
if enableFlowExporter {
go flowExporter.Run(stopCh)
}

Expand Down

0 comments on commit f551bea

Please sign in to comment.