Skip to content

Commit

Permalink
Add log when skipping ovn reconcile
Browse files Browse the repository at this point in the history
  • Loading branch information
jotak committed Feb 22, 2023
1 parent f4bd3ae commit 4464369
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/ovs/flowsconfig_ovnk_reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ func (c *FlowsConfigOVNKController) updateEnv(ctx context.Context, target *flows
Namespace: c.config.Namespace,
}, ds); err != nil {
if kerr.IsNotFound(err) && !target.Spec.UseIPFIX() {
// If we don't want IPFIX and ovn-k daemonset is not found, assume there no ovn-k, just succeed silently
// 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
}
return fmt.Errorf("retrieving %s/%s daemonset: %w", c.config.Namespace, c.config.DaemonSetName, err)
Expand Down

0 comments on commit 4464369

Please sign in to comment.