endpointpolicy

package
v0.0.0-...-10068f2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package endpointpolicy holds the controller's admission webhook for the EndpointPolicy CRD (proposal 034 Phase 1b, service-scoped UDS delivery). It runs the agent's own resolver rules over the declared socket, so a value the data plane would refuse — a bad path segment, or a file name that overflows the AF_UNIX sun_path budget on the csi.aether.io carrier (proposal 039) — is rejected at apply time instead of degrading one service to TCP with a resolve-failure count on every node that hosts it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(spec *configv1.EndpointPolicySpec) error

Validate checks an EndpointPolicy spec: proto rules (targetRef shape, socket shape) plus the socket's resolvability. A nil spec is rejected — an EndpointPolicy that declares nothing is always an authoring mistake.

Types

type Validator

type Validator struct {
	Log *slog.Logger
}

Validator is served by the controller's shared /validate dispatcher, keyed by the EndpointPolicy Kind.

func (*Validator) Handle

Handle validates the incoming EndpointPolicy's spec.

Jump to

Keyboard shortcuts

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