public void writeMetadata(ImageReference imageReference, V21ManifestTemplate manifestTemplate)
      throws IOException {
    List<ManifestAndConfigTemplate> singleton =
        Collections.singletonList(new ManifestAndConfigTemplate(manifestTemplate, null));
    cacheStorageWriter.writeMetadata(imageReference, new ImageMetadataTemplate(null, singleton));
  }
Saves a V2.1 image manifest. This is a simple wrapper around {@link
#writeMetadata(ImageReference, ImageMetadataTemplate)} to save a single manifest without a
manifest list.

@param imageReference the image reference to save the manifest for
@param manifestTemplate the V2.1 manifest
@throws IOException if an I/O exception occurs
jib-core/src/main/java/com/google/cloud/tools/jib/cache/Cache.java