From 99b4e45b1e9e0c1d945c8c76f59b8b8779416c4c Mon Sep 17 00:00:00 2001 From: Steven Powell <44844360+spowelljr@users.noreply.github.com> Date: Mon, 23 Jan 2023 13:19:49 -0800 Subject: [PATCH] Revert "Special case port mapping publish on macOS" --- pkg/drivers/kic/oci/oci.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/pkg/drivers/kic/oci/oci.go b/pkg/drivers/kic/oci/oci.go index 0d1ec1eb97a4..daec06e412df 100644 --- a/pkg/drivers/kic/oci/oci.go +++ b/pkg/drivers/kic/oci/oci.go @@ -488,13 +488,8 @@ func generatePortMappings(portMappings ...PortMapping) []string { for _, pm := range portMappings { // let docker pick a host port by leaving it as :: // example --publish=127.0.0.17::8443 will get a random host port for 8443 - if runtime.GOOS == "darwin" { - publish := fmt.Sprintf("--publish=%d", pm.ContainerPort) - result = append(result, publish) - } else { - publish := fmt.Sprintf("--publish=%s::%d", pm.ListenAddress, pm.ContainerPort) - result = append(result, publish) - } + publish := fmt.Sprintf("--publish=%s::%d", pm.ListenAddress, pm.ContainerPort) + result = append(result, publish) } return result }