config

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 config loads the proxy MeshConfig (aether.config.v1.MeshConfig) from a YAML document — typically a mounted ConfigMap projected from the MeshConfig CR — validating it with protovalidate. System-wide settings (OTEL, SPIRE, mesh domain) are aether (umbrella-chart) config inherited as flags, not part of MeshConfig; see docs/proposals/015_mesh-config.md.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(path string) (*configv1.MeshConfigSpec, error)

Load reads, parses and validates a MeshConfig from the file at path.

The pipeline is YAML -> JSON -> protojson (lenient: unknown fields are ignored for forward-compatibility across versions) -> protovalidate. Inheritance of unset proxy overrides from the aether system config is the caller's job (the agent), which is the only place that holds both.

A missing file is NOT an error: the MeshConfig (proxy observability overrides) is optional, so its absence means "inherit everything from the aether system config". This decouples startup from the controller having projected the ConfigMap yet, and lets deployments without a mounted config (e.g. e2e) run.

func Parse

func Parse(raw []byte) (*configv1.MeshConfigSpec, error)

Parse runs the YAML->proto->validate pipeline on an in-memory document. Load is the file-backed wrapper; Parse exists for tests and for callers that already hold the bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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