containerized-data-importer/pkg/controller
Edu Gómez Escandell eb6b76a399
Support IPv6 in controller GetMetricsURL (#3165)
Joining hostname+port with string concatenation leads to wrong URLs
when the hostame is an IPv6:

HOST    PORT   Sprintf    CORRECT
::1     8000   ::1:8000   [::1]:8000

To avoid this issue, it's best to use net.JoinHostPort. I added a test
that verifies this fix.

This type of issue can be discovered running the following command:

    golangci-lint run ./... --enable nosprintfhostport

Signed-off-by: Edu Gómez Escandell <egomez@redhat.com>
2024-04-08 14:43:52 +02:00
..
clone Fix volume/access mode inferring for temp host assisted source PVC in snapshot clones (#3155) 2024-04-05 15:29:50 +02:00
common Support IPv6 in controller GetMetricsURL (#3165) 2024-04-08 14:43:52 +02:00
datavolume Suppress alerts to reduce noise of dependent ones (#3129) 2024-04-07 20:47:51 +02:00
populators feat(import): Set PVC labels derived from env vars on containerdisks (#3103) 2024-03-21 23:13:16 +01:00
transfer update k8s & related libraries to 1.28 (#3078) 2024-01-23 17:52:05 +01:00
BUILD.bazel Suppress alerts to reduce noise of dependent ones (#3129) 2024-04-07 20:47:51 +02:00
clone-controller_test.go update k8s & related libraries to 1.28 (#3078) 2024-01-23 17:52:05 +01:00
clone-controller.go feat: Make importer datasource communication explicit (#3101) 2024-03-13 22:09:23 +01:00
config-controller_test.go Update to ginkgo v2 (#2788) 2023-07-26 02:35:55 +02:00
config-controller.go update k8s & related libraries to 1.28 (#3078) 2024-01-23 17:52:05 +01: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 Suppress alerts to reduce noise of dependent ones (#3129) 2024-04-07 20:47:51 +02:00
dataimportcron-controller.go Suppress alerts to reduce noise of dependent ones (#3129) 2024-04-07 20:47:51 +02:00
datasource-controller_test.go Refactor monitoring code (#3009) 2024-01-02 09:17:18 +01:00
datasource-controller.go update k8s & related libraries to 1.28 (#3078) 2024-01-23 17:52:05 +01:00
import-controller_test.go feat(import): Set PVC labels derived from env vars on containerdisks (#3103) 2024-03-21 23:13:16 +01:00
import-controller.go Fix that the Resources configuration (#3157) 2024-04-01 22:34:34 +02:00
storageprofile-controller_test.go Get no-provisioner storage capabilities from PVs (#3128) 2024-03-18 22:21:14 +01:00
storageprofile-controller.go Get no-provisioner storage capabilities from PVs (#3128) 2024-03-18 22:21:14 +01:00
upload-controller_test.go Improve readability of upload pod's creation code (#3151) 2024-03-27 02:43:29 +01:00
upload-controller.go Improve readability of upload pod's creation code (#3151) 2024-03-27 02:43:29 +01:00
util_test.go cleanup: Return modified labels added from termination message (#3147) 2024-03-27 07:33:28 +01:00
util.go cleanup: Return modified labels added from termination message (#3147) 2024-03-27 07:33:28 +01:00