{"push_id":977712301,"size":4,"distinct_size":4,"ref":"refs/heads/image-quotas","head":"d1920f6fab36f41087922174c76cb4a897c0c9f4","before":"5a00f6f88cd3ec4617a7489eae773072ec7f0c0c","commits":[{"sha":"869ac0c0a136aea61202591c66d2dc55909d2d1d","author":{"email":"ea3139ea422390c9a8bd6d7fb9ba423400fabbd1@redhat.com","name":"Michal Minar"},"message":"Resource quota for repositories and images\n\nNew resource quotas:\n\n1. openshift.io/projectimagessize\n2. openshift.io/repositorysize\n3. openshift.io/imagesize\n\nThe 1st allows to limit a total size of images across all repositories\nin a namespace.\n\nThe 2nd allows to set a limit for a sum of sizes of all image layers\nin a single repository. Usage will always be 0 because we cannot store\ndifferent values for different repositories.\n\nThe 3rd allows to set a limit for a sum of sizes of all layers of\nsingle image. Usage (soft-limit) will always be 0.\n\nLayers occuring multiple times in a single repository count just once.\n\nSigned-off-by: Michal Minar <miminar@redhat.com>","distinct":true,"url":"https://api.github.com/repos/miminar/origin/commits/869ac0c0a136aea61202591c66d2dc55909d2d1d"},{"sha":"c83ce24d3f044a3975ec8f796ee72daedb4c291b","author":{"email":"ea3139ea422390c9a8bd6d7fb9ba423400fabbd1@redhat.com","name":"Michal Minar"},"message":"Added additional quota check for layer upload in a registry\n\nWe already have an admission plugin that prevents manifest plugin\nfrom being stored in an etcd registry. However, that doesn't prevent\nclients from uploading blobs to registry storage regardless of image\nquota usage.\n\nThis patch adds a second quota check aimed at image layers.\n\nJust a single layer is taken into account because image manifest is not\nyet known to the registry. Therefore we may easily exceed the quota with\nseveral small layers without actually knowing it until the manifest is\nreceived.\n\nThis doesn't update any resource quota usage in etcd.\n\nNOTE: There's a difference between size computed by registry and master\nserver. Master server sums content of image layers. Registry deals with\nsizes of layers that are compressed content plus metadata. Thus the\ncomparison is very rough.\n\nSigned-off-by: Michal Minar <miminar@redhat.com>","distinct":true,"url":"https://api.github.com/repos/miminar/origin/commits/c83ce24d3f044a3975ec8f796ee72daedb4c291b"},{"sha":"c8f8492483738c31dc1c22c88c08967b8a946655","author":{"email":"ea3139ea422390c9a8bd6d7fb9ba423400fabbd1@redhat.com","name":"Michal Minar"},"message":"Allow registry to fetch resourcequota\n\nSigned-off-by: Michal Minar <miminar@redhat.com>","distinct":true,"url":"https://api.github.com/repos/miminar/origin/commits/c8f8492483738c31dc1c22c88c08967b8a946655"},{"sha":"d1920f6fab36f41087922174c76cb4a897c0c9f4","author":{"email":"ea3139ea422390c9a8bd6d7fb9ba423400fabbd1@redhat.com","name":"Michal Minář"},"message":"Added extended test for image quota\n\nSigned-off-by: Michal Minar <miminar@redhat.com>","distinct":true,"url":"https://api.github.com/repos/miminar/origin/commits/d1920f6fab36f41087922174c76cb4a897c0c9f4"}]}