--provision mode: emit an EphemeralBuilder CR for the recommended shape
#14
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Close the loop with the builder-arbitrage operator: turn the recommendation directly into provisioned capacity.
Implementation:
--provision [class]that renders anEphemeralBuilderYAML (nodes, cores, arch from--system) to stdout or applies it via kubectl when--applyis given.Fixed and merged to main (commit
837b885). EphemeralBuilder renderer implementation complete; schema may need reconciliation with builder-arbitrage CRD.Reconciled against the real builder-arbitrage CRD (
arbitrage.oleks.space/v1alpha1, verified viakubectl get crd ephemeralbuilders.arbitrage.oleks.spaceand~/projects/builder-arbitrage/api/v1alpha1/ephemeralbuilder_types.go). Fixes vs the initial as-implemented schema: correct apiVersion; dropped invented top-levelreplicas/cores/arch/system; now emitsspec.class(enum runner|ci|nix-builder) +spec.requirements.{arch: amd64|arm64, cores, ramGb}. Crucially there is NO replica field — one EphemeralBuilder == one VM — so N nodes now render as N----separated documents, each with unique metadata.name, namespacebuilder-arbitrage, and labelarbitrage.oleks.space/class. ramGb required (derived 2 GiB/core default or from --node-ram-gb). Makespan kept in a non-operator YAML comment; no operator finalizers/annotations set. Public API is nowrender_ephemeral_builders(...).