Skip to content

Commit

Permalink
controllers: pr issue fix
Browse files Browse the repository at this point in the history
changed the var assignment as suggested

Signed-off-by: Amit Berner <[email protected]>
  • Loading branch information
bernerhat committed Nov 20, 2023
1 parent 9b9a766 commit cf01fdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/storageclient_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,8 @@ func (s *StorageClientReconciler) reconcileClientStatusReporterJob(instance *v1a
cronJob.Namespace = s.OperatorNamespace
addLabel(cronJob, storageClientNameLabel, instance.Name)
addLabel(cronJob, storageClientNamespaceLabel, instance.Namespace)
var jobDeadLineSeconds int64 = 155
var podDeadLineSeconds int64 = 120
var jobDeadLineSeconds int64 = podDeadLineSeconds + 35

Check failure on line 437 in controllers/storageclient_controller.go

View workflow job for this annotation

GitHub Actions / golangci-lint (1.20)

var-declaration: should omit type int64 from declaration of var jobDeadLineSeconds; it will be inferred from the right-hand side (revive)

Check failure on line 437 in controllers/storageclient_controller.go

View workflow job for this annotation

GitHub Actions / golangci-lint (1.21)

var-declaration: should omit type int64 from declaration of var jobDeadLineSeconds; it will be inferred from the right-hand side (revive)
var keepJobResourceSeconds int32 = 600
var reducedKeptSuccecsful int32 = 1

Expand Down

0 comments on commit cf01fdd

Please sign in to comment.