chore: linkage assignable socatImage (#1266)

var can be set at build (link) time as opposed to const

Signed-off-by: Matej Vasek <mvasek@redhat.com>

Signed-off-by: Matej Vasek <mvasek@redhat.com>
This commit is contained in:
Matej Vasek 2022-09-21 06:34:09 +02:00 committed by GitHub
parent dfff8aa00a
commit 15368599cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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).