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(osClient osclient.Interface) quota.Registry
- func NewImageStreamEvaluator(isNamespacer osclient.ImageStreamsNamespacer) kquota.Evaluator
- func NewImageStreamImportEvaluator(isNamespacer osclient.ImageStreamsNamespacer) kquota.Evaluator
- func NewImageStreamTagEvaluator(istNamespacer osclient.ImageStreamTagsNamespacer, ...) kquota.Evaluator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImageQuotaRegistry ¶ added in v1.3.0
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 NewImageStreamEvaluator ¶
func NewImageStreamEvaluator(isNamespacer osclient.ImageStreamsNamespacer) 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 ¶ added in v1.3.0
func NewImageStreamImportEvaluator(isNamespacer osclient.ImageStreamsNamespacer) 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 ¶ added in v1.1.5
func NewImageStreamTagEvaluator(istNamespacer osclient.ImageStreamTagsNamespacer, isNamespacer osclient.ImageStreamsNamespacer) 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.