Skip to main content

Module builtin

Module builtin 

Source
Expand description

Registry of kustomizations embedded in caproni itself.

Ported from internal/deployer/kustomize/builtin.go. The Go original walks an embedded io/fs.FS per overlay (//go:embed *.yaml); this port instead reuses the flat (name, content) file lists already ported to xianyun_infra::{dev_ca, traefik_tlsstore}::FILES, since both builtin overlays here are flat (no nested directories).

Enums§

BuiltinError
Errors from builtin overlay resolution and materialization.

Functions§

builtin_name
Extracts the overlay name from a builtin: path.
is_builtin_path
Reports whether path uses the builtin: scheme.
materialize_builtin_overlay
Copies the embedded overlay named by a builtin: path into a fresh temporary directory and returns it – kustomize builds it directly, and caproni writes the CA material and hostname into the same directory. The caller owns the directory and must remove it via the returned cleanup function, which is always safe to call.
overlay_needs_ca
Reports whether path names a registered builtin overlay that consumes caproni’s runtime CA material.
overlay_needs_hostname
Reports whether path names a registered builtin overlay that carries the cluster hostname literals.
validate_builtin_path
Returns Ok(()) when path names a registered builtin overlay.