recipes

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

README

Recipe Data Directory

Recipe metadata and component configurations for the AICR bundler. Files in this directory are embedded into the CLI binary and API server at compile time.

Quick Reference

Task Documentation
Recipe architecture Data Architecture
Create/modify recipes Recipe Development Guide
Add or modify components Components
CLI commands CLI Reference

Directory Structure

recipes/
├── registry.yaml                  # Component registry (Helm & Kustomize configs)
├── overlays/                      # Recipe overlays (including base.yaml as root)
├── mixins/                        # Composable mixin fragments
│   ├── os-ubuntu.yaml             # Ubuntu OS constraints
│   ├── platform-inference.yaml    # Inference gateway components
│   └── platform-kubeflow.yaml     # Kubeflow trainer component
├── checks/                        # Component health checks
├── validators/                    # Validator catalog (catalog.yaml)
└── components/                    # Per-component Helm/Kustomize values

Recipe naming convention: {accelerator}-{service}-{os}-{intent}-{platform}.yaml (each segment optional except where required by the base inheritance chain).

Examples: h100-eks-training.yaml, h100-eks-ubuntu-training.yaml, h100-eks-ubuntu-training-kubeflow.yaml.

Architecture

The recipe system uses a base-plus-overlay architecture with mixin composition:

  • Base (overlays/base.yaml) provides default configurations
  • Overlays provide environment-specific optimizations and inherit from a parent via spec.base
  • Mixins (mixins/*.yaml) provide shared fragments composed via spec.mixins instead of duplication
  • Inline overrides allow per-recipe customization

Validation

All recipe metadata and component values are validated as part of make test:

  • Schema conformance, criteria enums, valuesFile path resolution
  • Constraint syntax, no duplicate criteria across overlays, merge consistency
make test
go test -v ./pkg/recipe/... -run TestAllMetadataFilesConformToSchema
go test -v ./pkg/recipe/... -run TestNoDuplicateCriteriaAcrossOverlays

For details, see Automated Validation.

See Also

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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