A component that bridges OpenShift cluster alerts into the Lightspeed Agentic system. It polls the in-cluster AlertManager API for firing alerts and creates Proposal custom resources (agentic.openshift.io/v1alpha1) to trigger automated analysis and remediation workflows.
- Go 1.26+
- Access to an OpenShift cluster (for deployment)
- golangci-lint (for linting)
make build # outputs ./bin/alerts-adaptermake test # run all tests
make coverage # generate HTML coverage report
make lint # run golangci-lintmake runmake container-buildkubectl apply -f manifests/The adapter runs as a single-replica Deployment in the openshift-lightspeed namespace, using in-cluster authentication.
| Environment variable | Default | Description |
|---|---|---|
ALERTMANAGER_URL |
https://alertmanager-main.openshift-monitoring.svc:9094 |
AlertManager API endpoint |
Internal polling parameters (constants in internal/adapter/adapter.go):
- Poll interval: 30s
- Initial delay: 5 min (minimum time an alert must fire before a Proposal is created)
- Cooldown window: 1 hour (minimum time after a terminal Proposal before retrying)
- ARCHITECTURE.md — design rationale, requirements, deployment model, and future work
- openspec/specs/ — detailed specs for each subsystem, managed with the OpenSpec framework