List components images in check cmd

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
pull/438/head
Stefan Prodan 4 years ago
parent 5d2e793386
commit e6b84c4cfc
No known key found for this signature in database
GPG Key ID: 3299AEB0E4085BAF

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

Loading…
Cancel
Save