Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <registry-route>/cvo-dev/agentic-skills:latest .
podman push --tls-verify=false <registry-route>/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)