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 @@ -192,6 +192,7 @@ func (r *PGUpgradeReconciler) generateUpgradeJob(
192192 settings := upgrade .Spec .PGUpgradeSettings .DeepCopy ()
193193
194194 // When jobs is undefined, use one less than the number of CPUs.
195+ //nolint:gosec // The CPU count is clamped to MaxInt32.
195196 if settings .Jobs == 0 && feature .Enabled (ctx , feature .PGUpgradeCPUConcurrency ) {
196197 wholeCPUs := int32 (min (math .MaxInt32 , largestWholeCPU (upgrade .Spec .Resources )))
197198 settings .Jobs = wholeCPUs - 1
Original file line number Diff line number Diff line change @@ -335,6 +335,7 @@ func (r *Reconciler) observeInstances(
335335 status .DesiredPGDataVolume = make (map [string ]string )
336336
337337 for _ , instance := range observed .bySet [name ] {
338+ //nolint:gosec // This slice is always small.
338339 status .Replicas += int32 (len (instance .Pods ))
339340
340341 if ready , known := instance .IsReady (); known && ready {
You can’t perform that action at this time.
0 commit comments