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§
- Builtin
Error - Errors from builtin overlay resolution and materialization.
Functions§
- builtin_
name - Extracts the overlay name from a
builtin:path. - is_
builtin_ path - Reports whether
pathuses thebuiltin: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
pathnames a registered builtin overlay that consumes caproni’s runtime CA material. - overlay_
needs_ hostname - Reports whether
pathnames a registered builtin overlay that carries the cluster hostname literals. - validate_
builtin_ path - Returns
Ok(())whenpathnames a registered builtin overlay.