public static String getImageWithoutTag(Image image) {
        String registryUrl = image.getRegistry();
        StringBuilder sb = new StringBuilder();
        if (StringUtils.isNotBlank(registryUrl)) {
            sb.append(registryUrl);
            sb.append(DELIMITER);
        }
        String imageName = image.getName();
        if (StringUtils.isNotBlank(imageName)) {
            sb.append(imageName);
        }
        return sb.toString();
    }
Get complete image name from service spec

@param serviceSpec
@return image complete name
registry url + "/" + imageName:tag
1. registry url is null - imageName:tag
2. registry url and tag not present - imageName
@throws HyscaleException
service-spec/service-spec-commons/src/main/java/io/hyscale/servicespec/commons/util/ImageUtil.java