Composable monorepo CI fixes: - Add empty go.sum.tmpl files for pkg, service, worker, and cli components - Fix Dockerfile.tmpl glob patterns (COPY go.work.sum* is invalid in Kaniko) - Add deps step to CI that runs go work sync and go mod tidy before builds - Fix scalar-go dependency version (v0.1.2 doesn't exist, use v0.13.0) Health endpoint improvements: - Add registry health check (zot OCI /v2/ endpoint) - Add health metrics for CI, registry, and Git - Add /health/ci endpoint for Woodpecker health Visual verification scaffolding: - Add Playwright pod and scripts ConfigMap - Add vision.md and implementation breakdown plan Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
642 B
Go
26 lines
642 B
Go
package port
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/orchard9/rdev/internal/domain"
|
|
)
|
|
|
|
// DatabasePinger checks database connectivity.
|
|
// *sql.DB satisfies this interface.
|
|
type DatabasePinger interface {
|
|
PingContext(ctx context.Context) error
|
|
}
|
|
|
|
// KubernetesChecker checks Kubernetes API connectivity.
|
|
type KubernetesChecker interface {
|
|
// ServerVersion returns the server version string, or an error if unreachable.
|
|
ServerVersion() (string, error)
|
|
}
|
|
|
|
// RegistryChecker checks container registry health.
|
|
type RegistryChecker interface {
|
|
// Check returns the health status of the registry.
|
|
Check(ctx context.Context) domain.RegistryStatus
|
|
}
|