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 ¶
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.
Click to show internal directories.
Click to hide internal directories.