containerized-data-importer/pkg/controller
Edu Gómez Escandell cd7c8b14a5
Enable revive linter (#3241)
* Enable revive linter

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>

* Simplify cdi-func-test-proxy

This function had quite a bit of redundant code (caught by the linter).
The workgroup was never Done because all exit paths went through a
log.Fatal.

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>

* Fix 'revive' linter warnings

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>

* Fix tests that asserted on modified error messages

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>

* Run make format

The formatted code has nothing to do with this PR but we may as well
include it.

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>

* Use lower-case variables and use built-in min function in vddk-datasource

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>

* Use contexts in cdi-func-test-proxy

This added quite a bit of boilerplate per call, so I put everything in
a loop.

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>

---------

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>
2024-05-21 22:35:42 +02:00
..
clone Enable dupword linter (#3175) 2024-04-25 01:00:23 +02:00
common Enable revive linter (#3241) 2024-05-21 22:35:42 +02:00
datavolume Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
populators Progress metrics refactor and rename (#3254) 2024-05-17 14:02:25 +02:00
transfer Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
BUILD.bazel Suppress alerts to reduce noise of dependent ones (#3129) 2024-04-07 20:47:51 +02:00
clone-controller_test.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
clone-controller.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
config-controller_test.go Enable revive linter (#3241) 2024-05-21 22:35:42 +02:00
config-controller.go Enable revive linter (#3241) 2024-05-21 22:35:42 +02:00
controller_suite_test.go Update to ginkgo v2 (#2788) 2023-07-26 02:35:55 +02:00
dataimportcron-conditions.go Suppress alerts to reduce noise of dependent ones (#3129) 2024-04-07 20:47:51 +02:00
dataimportcron-controller_test.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
dataimportcron-controller.go Fix flaky DataImportCron controller reconcile loop unit test (#3256) 2024-05-14 11:14:25 +02:00
datasource-controller_test.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
datasource-controller.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
import-controller_test.go Use direct io with qemu-img convert if pod is OOMKilled (#3017) 2024-05-16 02:22:23 +02:00
import-controller.go Enable revive linter (#3241) 2024-05-21 22:35:42 +02:00
storageprofile-controller_test.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
storageprofile-controller.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
upload-controller_test.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
upload-controller.go Enable dupword linter (#3175) 2024-04-25 01:00:23 +02:00
util_test.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00
util.go Enable autoformatting linters (#3179) 2024-04-24 13:52:22 +02:00