Deliver the lab from manifests rendered from score-lab.yaml

deploy/lab is rendered by score-k8s with the platform's provisioners and replaces the
hand-written deploy/manifests. The lab build workflow now renders and commits it after the build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 12:53:21 +01:00
parent 30dc34e700
commit bddd387bab
12 changed files with 255 additions and 113 deletions

View File

@@ -12,7 +12,7 @@ browser ─► hub pe-gatewayapi (demo-vivek-11.apps.lab…) ─► Private Link
|---|---|---|
| `argocd/` | lab **hub** | `kubectl apply` once |
| `hub/` | lab **hub** | `kubectl apply` once |
| `manifests/` | lab **spoke** | Argo CD, from this repo |
| `lab/` | lab **spoke** | Argo CD, from this repo. **Generated**: never edit by hand |
## Apply
@@ -31,7 +31,10 @@ The lab uses argocd-agent's **destination-based mapping**, and this app belongs
- `destination.name: apps-lab`: the agent to deploy to, and the routing key. **Never**
`destination.server`, which resolves to the hub itself.
## Image
## How `lab/` is produced
`manifests/kustomization.yaml` pins the tag. Set it to the commit the lab build pushed, and commit:
Argo CD deploys what is in Git.
`lab/` is rendered from `score-lab.yaml` by the **Build and Push to ACR (lab)** workflow: it builds
the image, renders with the platform's provisioners
(`cruciblecoredevacr.azurecr.io/score-provisioners`, version pinned in the workflow), and commits the
result. The image tag is the commit that was built. To change what is deployed, change
`score-lab.yaml` and run the workflow.