1
0
mirror of synced 2026-03-18 00:46:56 +00:00

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

List component images in check cmd
This commit is contained in:
Stefan Prodan
2020-11-09 17:12:13 +02:00
committed by GitHub

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
}