File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ func (r *PGUpgradeReconciler) generateUpgradeJob(
227227 settings := upgrade .Spec .PGUpgradeSettings .DeepCopy ()
228228
229229 // When jobs is undefined, use one less than the number of CPUs.
230+ //nolint:gosec // The CPU count is clamped to MaxInt32.
230231 if settings .Jobs == 0 && feature .Enabled (ctx , feature .PGUpgradeCPUConcurrency ) {
231232 wholeCPUs := int32 (min (math .MaxInt32 , largestWholeCPU (upgrade .Spec .Resources )))
232233 settings .Jobs = wholeCPUs - 1
Original file line number Diff line number Diff line change @@ -341,6 +341,7 @@ func (r *Reconciler) observeInstances(
341341 status .DesiredPGWALVolume = make (map [string ]string )
342342
343343 for _ , instance := range observed .bySet [name ] {
344+ //nolint:gosec // This slice is always small.
344345 status .Replicas += int32 (len (instance .Pods ))
345346
346347 if ready , known := instance .IsReady (); known && ready {
You can’t perform that action at this time.
0 commit comments