policyendpoints

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IndexKeyPolicyReferenceName        = "spec.policyRef.name"
	IndexKeyClusterPolicyReferenceName = "spec.policyRef.name"
)

Variables

This section is empty.

Functions

func IndexFunctionClusterPolicyReferenceName added in v1.1.0

func IndexFunctionClusterPolicyReferenceName(obj client.Object) []string

IndexFunctionClusterPolicyReferenceName is IndexFunc for "ClusterPolicyReference" index.

func IndexFunctionPolicyReferenceName added in v0.5.2

func IndexFunctionPolicyReferenceName(obj client.Object) []string

IndexFunctionPolicyReferenceName is IndexFunc for "PolicyReference" index.

func NewPolicyEndpointsManager

func NewPolicyEndpointsManager(k8sClient client.Client, endpointChunkSize int, logger logr.Logger) *policyEndpointsManager

NewPolicyEndpointsManager constructs a new policyEndpointsManager

Types

type ClusterPolicyMetadata added in v1.1.0

type ClusterPolicyMetadata struct {
	Name     string
	UID      types.UID
	Tier     policyinfo.Tier
	Priority int32
}

ClusterPolicyMetadata contains metadata for creating ClusterPolicyEndpoints

type PolicyEndpointsManager

type PolicyEndpointsManager interface {
	Reconcile(ctx context.Context, policy *networking.NetworkPolicy) error
	Cleanup(ctx context.Context, policy *networking.NetworkPolicy) error
	ReconcileANP(ctx context.Context, anp *policyinfo.ApplicationNetworkPolicy) error
	CleanupANP(ctx context.Context, anp *policyinfo.ApplicationNetworkPolicy) error
	ReconcileCNP(ctx context.Context, cnp *policyinfo.ClusterNetworkPolicy) error
	CleanupCNP(ctx context.Context, cnp *policyinfo.ClusterNetworkPolicy) error
}

type PolicyMetadata added in v1.1.0

type PolicyMetadata struct {
	Name        string
	Namespace   string
	UID         types.UID
	PodSelector metav1.LabelSelector
	PolicyTypes []networking.PolicyType
	APIVersion  string
	Kind        string
}

PolicyMetadata contains the minimal metadata needed for creating PolicyEndpoints

Jump to

Keyboard shortcuts

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