diff --git a/AGENTS.md b/AGENTS.md index 3f2fb85980..ce74c14f9f 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -189,45 +189,3 @@ Subsystems include: `pkg/cvo`, `pkg/payload`, `lib/resourceapply`, `hack`, etc. ### Development and Testing - Never test against production clusters - always use disposable test environments - CVO has significant control over cluster state and can disrupt operations during development - -### Deploying CVO with Lightspeed Proposals (Dev) - -The proposal controller is gated behind `TechPreviewNoUpgrade`. To test on a Default feature set cluster: - -1. **Bypass the feature gate** (local only, do not commit): - ```go - // In pkg/cvo/cvo.go, shouldEnableProposalController() - return true - ``` - -2. **Build and push the skills image** to the cluster's internal registry: - ```bash - oc new-project cvo-dev - # Build from the agentic-skills repo - podman build -f Dockerfile -t /cvo-dev/agentic-skills:latest . - podman push --tls-verify=false /cvo-dev/agentic-skills:latest - ``` - -3. **Set `LIGHTSPEED_SKILLS_IMAGE`** in `install/0000_00_cluster-version-operator_30_deployment.yaml` to the internal registry image (local only, do not commit): - ```yaml - - name: LIGHTSPEED_SKILLS_IMAGE - value: "image-registry.openshift-image-registry.svc:5000/cvo-dev/agentic-skills@sha256:..." - ``` - -4. **Build and deploy** following the standard dev workflow in `docs/dev/README.md`: - ```bash - CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o _output/linux/amd64/cluster-version-operator ./cmd/cluster-version-operator/ - # Build image on cluster, then: oc adm release new ... - ``` - -5. **Grant image pull access** for the sandbox namespace: - ```bash - oc policy add-role-to-group system:image-puller system:serviceaccounts:openshift-lightspeed -n cvo-dev - ``` - -6. **Apply the prompt ConfigMap**: - ```bash - oc apply -f install/0000_00_cluster-version-operator_50_lightspeed-prompts.yaml - ``` - -7. **Revert local changes** before committing (steps 1 and 3) \ No newline at end of file