top

Package image implements evaluators of usage for images stored in an internal registry. They are supposed to be passed to resource quota controller and origin resource quota admission plugin. As opposed to kubernetes evaluators that can be used both with the controller and an admission plugin, these cannot. That's because they're counting a number of unique images which aren't namespaced. In order to do that they always need to enumerate all image streams in the project to see whether the newly tagged images are new to the project or not. The resource quota controller iterates over them implicitly while the admission plugin invokes the evaluator just once on a single object. Thus different usage implementations.

To instantiate a registry for use with the resource quota controller, use NewImageRegistry. To instantiate a registry for use with the origin resource quota admission plugin, use NewImageRegistryForAdmission.

Imports 13 package(s)

  1. github.com/golang/glog
  2. k8s.io/kubernetes/pkg/api
  3. github.com/openshift/origin/pkg/image/api
  4. k8s.io/kubernetes/pkg/quota
  5. k8s.io/kubernetes/pkg/util/sets
  6. k8s.io/kubernetes/pkg/quota/generic
  7. github.com/openshift/origin/pkg/quota/util
  8. k8s.io/kubernetes/pkg/admission
  9. github.com/openshift/origin/pkg/client
  10. k8s.io/kubernetes/pkg/api/errors
  11. k8s.io/kubernetes/pkg/api/unversioned
  12. k8s.io/kubernetes/pkg/runtime
  13. k8s.io/kubernetes/pkg/api/resource

Test imports 2 package(s)

  1. github.com/openshift/origin/pkg/client/testclient
  2. k8s.io/kubernetes/pkg/client/unversioned/testclient