From 4207e382ef10c2efbfd2c139f47a50b2edeeed59 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Wed, 15 Jan 2025 10:43:18 +0100 Subject: [PATCH] Specify the full /app/version path Instead of relying on the container's working directory, specify the full path to the /app/version file. Signed-off-by: Stephen Kitt --- internal/show/versions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/show/versions.go b/internal/show/versions.go index 213861ea2..ef33e5cf3 100644 --- a/internal/show/versions.go +++ b/internal/show/versions.go @@ -48,7 +48,7 @@ var componentCmd = map[string][]string{ names.ServiceDiscoveryComponent: {"lighthouse-agent", "--version"}, names.LighthouseCoreDNSComponent: {"lighthouse-coredns", "--subm-version"}, names.OperatorComponent: {"submariner-operator", "--version"}, - names.MetricsProxyComponent: {"cat", "version"}, + names.MetricsProxyComponent: {"cat", "/app/version"}, } func printDaemonSetVersions(clusterInfo *cluster.Info, printer *table.Printer, components ...string) error {