public static String getImageWithDigest(ServiceSpec serviceSpec, String digest) throws HyscaleException {
        if (serviceSpec == null) {
            return null;
        }
        Image image = serviceSpec.get(HyscaleSpecFields.image, Image.class);
        if (image == null) {
            return null;
        }
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(getImageWithoutTag(image));
        if (StringUtils.isNotBlank(digest)) {
            stringBuilder.append(ToolConstants.AT_SIGN).append(digest);
        }
        return stringBuilder.toString();
    }
Gets complete image name which includes registry url, image name and digest.

@param serviceSpec
@param digest      latest digest of the image in service spec
@return digest image tagged with digest
1.digest is null - registry url + "/" + imageName
2.digest present -registry url + "/" + imageName+"@"+digest
@throws HyscaleException
service-spec/service-spec-commons/src/main/java/io/hyscale/servicespec/commons/util/ImageUtil.java