Help us shape the future of Go! Take the 2026 Go Developer Survey

customquotas

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 43 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,
	jsonPathCache *cache.JSONPathCache,
	celCache *cache.CELCache,
	targetsCache *cache.CompiledTargetsCache[string],
) (err error)

func CompileTargets

func CompileTargets(
	jcache *cache.JSONPathCache,
	ccache *cache.CELCache,
	targets []capsulev1beta2.CustomQuotaStatusTarget,
) ([]cache.CompiledTarget, error)

func MakeCustomQuotaCacheKey

func MakeCustomQuotaCacheKey(namespace, name string) string

func MakeGlobalCustomQuotaCacheKey

func MakeGlobalCustomQuotaCacheKey(name string) string

func MatchesCompiledSelectorsWithFields

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

Types

type CompiledTarget

type CompiledTarget struct {
	capsulev1beta2.CustomQuotaStatusTarget

	CompiledPath      *jsonpath.CompiledJSONPath
	CompiledCEL       *celruntime.CompiledExpression
	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