Skip to content

Commit

Permalink
Specify the full /app/version path
Browse files Browse the repository at this point in the history
Instead of relying on the container's working directory, specify the
full path to the /app/version file.

Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt authored and tpantelis committed Jan 20, 2025
1 parent 52f1fe9 commit 4207e38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/show/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4207e38

Please sign in to comment.