Skip to content

Commit c7d3e8c

Browse files
committed
Add back erroneously removed linter handling
1 parent 9970c94 commit c7d3e8c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

internal/controller/pgupgrade/jobs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

internal/controller/postgrescluster/instance.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 {

0 commit comments

Comments
 (0)