Skip to content

Commit

Permalink
Use new helper api
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak committed Feb 22, 2023
1 parent efdf226 commit a52c624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/ovs/flowsconfig_ovnk_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (c *FlowsConfigOVNKController) updateEnv(ctx context.Context, target *flows
Name: c.config.DaemonSetName,
Namespace: c.config.Namespace,
}, ds); err != nil {
if kerr.IsNotFound(err) && !target.Spec.UseIPFIX() {
if kerr.IsNotFound(err) && !helper.UseIPFIX(&target.Spec) {
// If we don't want IPFIX and ovn-k daemonset is not found, assume there no ovn-k, just succeed
rlog.Info("Skip reconciling OVN: OVN DaemonSet not found")
return nil
Expand Down

0 comments on commit a52c624

Please sign in to comment.