From e6b84c4cfcf9620481e937754ecf09e54eff0d76 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Mon, 9 Nov 2020 16:09:20 +0200 Subject: [PATCH] List components images in check cmd Signed-off-by: Stefan Prodan --- cmd/flux/check.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/flux/check.go b/cmd/flux/check.go index 11bdb30b..499f4a18 100644 --- a/cmd/flux/check.go +++ b/cmd/flux/check.go @@ -180,6 +180,10 @@ func componentsCheck() bool { } else { logger.Successf("%s is healthy", deployment) } + kubectlArgs = []string{"-n", namespace, "get", "deployment", deployment, "-o", "jsonpath=\"{..image}\""} + if output, err := utils.ExecKubectlCommand(ctx, utils.ModeCapture, kubectlArgs...); err == nil { + logger.Actionf(strings.TrimPrefix(strings.TrimSuffix(output, "\""), "\"")) + } } return ok }