Skip to content

Commit

Permalink
Reconcile firewall at least every three minutes. (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 committed Oct 12, 2023
1 parent 877edd8 commit c552979
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controllers/firewall_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,11 @@ func (r *FirewallReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c

r.recordFirewallEvent(f, corev1.EventTypeNormal, "Reconciled", "nftables rules and statistics successfully")

r.Log.Info("successfully reconciled firewall")
r.Log.Info("successfully reconciled firewall, requeueing in 3 minutes")

return ctrl.Result{}, nil
return ctrl.Result{
RequeueAfter: 3 * time.Minute,
}, nil
}

type firewallService struct {
Expand Down

0 comments on commit c552979

Please sign in to comment.