customquotas

package
v0.13.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2026 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(
	log logr.Logger,
	mgr manager.Manager,
	recorder events.EventRecorder,
	cfg utils.ControllerOptions,
	quantityCache *cache.QuantityCache[string],
	jsonPathCache *cache.JSONPathCache,
	targetsCache *cache.CompiledTargetsCache[string],
	namespaceNotifier chan event.TypedGenericEvent[*capsulev1beta2.CustomQuota],
	globalNotifier chan event.TypedGenericEvent[*capsulev1beta2.GlobalCustomQuota],
) (err error)

func MakeCustomQuotaCacheKey

func MakeCustomQuotaCacheKey(namespace, name string) string

func MakeGlobalCustomQuotaCacheKey

func MakeGlobalCustomQuotaCacheKey(name string) string

func MatchesCompiledSelectorsWithFields

func MatchesCompiledSelectorsWithFields(
	u unstructured.Unstructured,
	selectors []selectors.CompiledSelectorWithFields,
) (bool, error)

Types

type CompiledTarget

type CompiledTarget struct {
	capsulev1beta2.CustomQuotaStatusTarget

	CompiledPath      *jsonpath.CompiledJSONPath
	CompiledSelectors []selectors.CompiledSelectorWithFields
}

type GroupedTarget

type GroupedTarget struct {
	GVK     schema.GroupVersionKind
	Targets []capsulev1beta2.CustomQuotaStatusTarget
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL