appscope

package
v1.12.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package appscope holds what the controller and admission must agree on about the Application-scoped policies that apply to an Application: the order they run in, and whether it asks to skip the globals. Admission judges an Application by the context the policies supply, and the last to set a key wins, so the two may not differ.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsksToSkipGlobals

func AsksToSkipGlobals(app *v1beta1.Application) bool

AsksToSkipGlobals reports whether an Application carries the skip-global annotation, whether or not skips are permitted.

func Less

func Less(a, b Ref) bool

Less orders policies as they run: lower priority first; at a priority, globals before explicit policies, globals by name, explicit policies in the order the spec lists them. An explicit policy has priority 0.

Types

type Ref

type Ref struct {
	Name     string
	Priority int32
	Global   bool
	// SpecOrder is an explicit policy's index in spec.policies.
	SpecOrder int
}

Ref places an Application-scoped policy among those applying to an Application.

Jump to

Keyboard shortcuts

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