admission

package
v1.43.0-0.dev Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ManagedMAPLabel is the label key applied to operator-managed MutatingAdmissionPolicy and
	// MutatingAdmissionPolicyBinding resources.
	ManagedMAPLabel = "operator.tigera.io/mutating-admission-policy"
	// ManagedMAPLabelValue is the label value for operator-managed MAP resources.
	ManagedMAPLabelValue = "managed"
)

Variables

This section is empty.

Functions

func Ensure

func Ensure(c client.Client, variant string, v3 bool, log logr.Logger) error

Ensure ensures that MutatingAdmissionPolicies necessary for bootstrapping exist in the cluster. Further reconciliation is handled by the core controller. If the API is not available (K8s < 1.32), a warning is logged and the function returns nil. MAPs are only installed when v3 CRDs are enabled.

func GetMutatingAdmissionPolicies

func GetMutatingAdmissionPolicies(variant opv1.ProductVariant, v3 bool) []client.Object

GetMutatingAdmissionPolicies returns MutatingAdmissionPolicy and MutatingAdmissionPolicyBinding objects for the given variant. These are only applicable when v3 CRDs are enabled. Each returned object is labeled with ManagedMAPLabel to enable stale resource cleanup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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