From d9b98fdb21e5cd30eb9f8c664c852ca69a2bf705 Mon Sep 17 00:00:00 2001 From: Alexandre Perrin Date: Fri, 12 Mar 2021 15:14:38 +0100 Subject: [PATCH] version: report the cilium images version Signed-off-by: Alexandre Perrin --- internal/cli/cmd/version.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/cli/cmd/version.go b/internal/cli/cmd/version.go index d4bcae3787..0576f7738d 100644 --- a/internal/cli/cmd/version.go +++ b/internal/cli/cmd/version.go @@ -18,6 +18,8 @@ import ( "fmt" "runtime" + "github.com/cilium/cilium-cli/defaults" + "github.com/spf13/cobra" ) @@ -44,8 +46,7 @@ func newCmdVersion() *cobra.Command { case GitHash != "": gitInfo = fmt.Sprintf("@%s", GitHash) } - // TODO: add support for reporting the Cilium version - fmt.Printf("cilium-cli: v%s%s compiled with %v on %v/%v\n", Version, gitInfo, runtime.Version(), runtime.GOOS, runtime.GOARCH) + fmt.Printf("cilium-cli: v%s%s (%s images) compiled with %v on %v/%v\n", Version, gitInfo, defaults.Version, runtime.Version(), runtime.GOOS, runtime.GOARCH) }, } }