endpointpolicy

package
v0.0.0-...-c46dd35 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: Apache-2.0 Imports: 10 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 over the declared socket, so a value the data plane would refuse — a bad path segment, or one that overflows the AF_UNIX sun_path budget — is rejected at apply time instead of degrading one service to TCP with an error log 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