From 15368599cdc48b9a2e81e26e1ba20ee2ff1f128b Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Wed, 21 Sep 2022 06:34:09 +0200 Subject: [PATCH] chore: linkage assignable socatImage (#1266) var can be set at build (link) time as opposed to const Signed-off-by: Matej Vasek Signed-off-by: Matej Vasek --- k8s/dialer.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/k8s/dialer.go b/k8s/dialer.go index 306e5b03b..925b07ed6 100644 --- a/k8s/dialer.go +++ b/k8s/dialer.go @@ -23,9 +23,7 @@ import ( "k8s.io/client-go/tools/remotecommand" ) -const ( - socatImage = "quay.io/boson/alpine-socat:1.7.4.3-r1-non-root" -) +var socatImage = "quay.io/boson/alpine-socat:1.7.4.3-r1-non-root" // NewInClusterDialer creates context dialer that will dial TCP connections via POD running in k8s cluster. // This is useful when accessing k8s services that are not exposed outside cluster (e.g. openshift image registry).