Documentation ¶
Overview ¶
Package image implements evaluators of usage for imagestreams and images. They are supposed to be passed to resource quota controller and origin resource quota admission plugin.
Index ¶
- func NewImageQuotaRegistry(isInformer imageinternalversion.ImageStreamInformer, ...) quota.Registry
- func NewImageQuotaRegistryForAdmission(isInformer imageinternalversion.ImageStreamInformer, ...) quota.Registry
- func NewImageStreamEvaluator(store imageinternalversion.ImageStreamLister) kquota.Evaluator
- func NewImageStreamImportEvaluator(store imageinternalversion.ImageStreamLister) kquota.Evaluator
- func NewImageStreamTagEvaluator(store imageinternalversion.ImageStreamLister, ...) kquota.Evaluator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImageQuotaRegistry ¶
func NewImageQuotaRegistry(isInformer imageinternalversion.ImageStreamInformer, osClient osclient.Interface) quota.Registry
NewImageQuotaRegistry returns a registry for quota evaluation of OpenShift resources related to images in internal registry. It evaluates only image streams and related virtual resources that can cause a creation of new image stream objects.
func NewImageQuotaRegistryForAdmission ¶
func NewImageQuotaRegistryForAdmission(isInformer imageinternalversion.ImageStreamInformer, osClient osclient.Interface) quota.Registry
NewImageQuotaRegistryForAdmission returns a registry for quota evaluation of OpenShift resources related to images in internal registry. It evaluates only image streams and related virtual resources that can cause a creation of new image stream objects. This is different that is used for reconciliation because admission has to check all forms of a resource (legacy and groupified), but reconciliation only has to check one.
func NewImageStreamEvaluator ¶
func NewImageStreamEvaluator(store imageinternalversion.ImageStreamLister) kquota.Evaluator
NewImageStreamEvaluator computes resource usage of ImageStreams. Instantiating this is necessary for resource quota admission controller to properly work on image stream related objects.
func NewImageStreamImportEvaluator ¶
func NewImageStreamImportEvaluator(store imageinternalversion.ImageStreamLister) kquota.Evaluator
NewImageStreamImportEvaluator computes resource usage for ImageStreamImport objects. This particular kind is a virtual resource. It depends on ImageStream usage evaluator to compute image numbers before the the admission can work.
func NewImageStreamTagEvaluator ¶
func NewImageStreamTagEvaluator(store imageinternalversion.ImageStreamLister, istNamespacer osclient.ImageStreamTagsNamespacer) kquota.Evaluator
NewImageStreamTagEvaluator computes resource usage of ImageStreamsTags. Its sole purpose is to handle UPDATE admission operations on imageStreamTags resource.
Types ¶
This section is empty.