Merge pull request #438 from fluxcd/check-print-images

List component images in check cmd
pull/439/head
Stefan Prodan 4 years ago committed by GitHub
commit 0c67e75fb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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