A minimal Go HTTP server used to validate OpenShift CI workflows — specifically the ephemeral-namespace workflow that provisions short-lived namespaces on the ConsoleDot ephemeral cluster via bonfire.
This repository exists solely to exercise the ephemeral-namespace workflow defined in the openshift/release step registry. The application itself is intentionally trivial: a health-check endpoint and a version endpoint.
The CI configuration for this repo defines two tests:
| Test | Purpose |
|---|---|
unit |
Runs go test ./... to validate the application builds and passes tests. |
ephemeral-smoke |
Uses the ephemeral-namespace workflow to reserve a namespace, deploy the built image, verify the health endpoint, and release the namespace. |
go test ./...
go run .
curl http://localhost:8080/healthzThe CI configuration lives in openshift/release at:
ci-operator/config/openshift-online/osci-workflow-validation/openshift-online-osci-workflow-validation-main.yaml
The ephemeral-smoke test uses the ephemeral-namespace workflow which:
- Pre: Reserves a namespace from the ephemeral cluster pool using
bonfire namespace reserve - Test: Deploys the application and verifies the
/healthzendpoint returns200 - Post: Releases the namespace back to the pool via
bonfire namespace release
The workflow requires a secret named ephemeral-bot-svc-account in the test-credentials namespace containing:
| Key | Description |
|---|---|
oc-login-token |
Service account token for the ephemeral cluster |
oc-login-server |
API server URL of the ephemeral cluster |