Skip to content

Commit

Permalink
fixup! Gitops controller resyncs every hour
Browse files Browse the repository at this point in the history
  • Loading branch information
manno committed Dec 16, 2024
1 parent 1228bee commit d7a4098
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (r *GitJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctr
// addJitter to the requeue time to avoid thundering herd
// generate a random number between -10% and +10% of the duration
func addJitter(d time.Duration) time.Duration {
return d + time.Duration(rand.Int64N(int64(d)/5)-int64(d)/10)
return d + time.Duration(rand.Int64N(int64(d)/5)-int64(d)/10) // nolint:gosec // gosec G404 false positive, not used for crypto
}

// manageGitJob is responsible for creating, updating and deleting the GitJob and setting the GitRepo's status accordingly
Expand Down

0 comments on commit d7a4098

Please sign in to comment.