{"push_id":717193028,"size":1,"distinct_size":1,"ref":"refs/heads/bz1237271","head":"46d532d663f11a0a70f54b2bbc414071657b890a","before":"54027904117462fd7b11d70b65c960907342b7ec","commits":[{"sha":"46d532d663f11a0a70f54b2bbc414071657b890a","author":{"email":"6fe6b8a05df7f9c8cc3eafd421a9b8433d86fa1d@redhat.com","name":"Andy Goldstein"},"message":"Image pruning improvements\n\nUpdate layer pruning to always delete blobs from the registry, even if\nthe image stream(s) that referenced the layer no longer exists. In the\nevent that there aren't any image streams referencing the layer any\nmore, we'll be able to delete the blob, but not the registry image\nrepository layer link files.\n\nFixes bug 1237271\n\nExtract NewImagePruner arguments to ImagePrunerOptions struct.\n\nAdd attempt to check for connectivity to the registry before performing\nactual pruning. If the connection attempt fails, report the error and\nstop.\n\nReorganize image pruning operation order:\n\n1. Remove image references from image streams\n2. Remove registry data (repo layer links, blobs, repo manifest data)\n\nIf any errors occurred in 1 or 2, stop. Otherwise:\n\n3. Remove images from OpenShift\n\nThis allows us to preserve images in the event there are issues deleting\nfrom the registry. This way, additional calls to 'oadm prune' can be\nattempted and we'll still have the image data to build the graph.","distinct":true,"url":"https://api.github.com/repos/ncdc/origin/commits/46d532d663f11a0a70f54b2bbc414071657b890a"}]}