List components images in check cmd

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan 2020-11-09 16:09:20 +02:00
parent 5d2e793386
commit e6b84c4cfc
No known key found for this signature in database
GPG key ID: 3299AEB0E4085BAF

View file

@ -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
}