edgeconfig

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: 8 Imported by: 0

Documentation

Overview

Package edgeconfig provides the admission validator for EdgeConfig resources (proposal 029): it proto-validates the spec so a CR can never describe a config the edge would refuse. Served by the controller's shared /validate dispatcher, keyed by the EdgeConfig Kind.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Validate

func Validate(spec *configv1.EdgeConfigSpec) error

Validate proto-validates an EdgeConfig spec. A nil spec is valid (pure defaults).

Types

type Validator

type Validator struct {
	Log *slog.Logger
}

Validator rejects EdgeConfig resources whose spec fails protovalidate.

func (*Validator) Handle

Handle validates the incoming EdgeConfig's spec.

Jump to

Keyboard shortcuts

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