route-timeout-validator
This project implements a Kubernetes admission webhook that validates Route
objects in OpenShift. It ensures that Routes
do not use haproxy.router.openshift.io/timeout
above a certain threshold, controlled by an environment variable.
Features
- Validates the
Route
timeout annotation format.
- Checks if the
Route
timeout value is within the specified maximum timeout.
- Supports bypassing
Route
timeout validation based on namespace labels.
Configuration
Getting started
Deploying the controller
$ make deploy IMG=ghcr.io/dana-team/route-timeout-validator:<release>
Install with Helm
Helm chart docs are available on charts/route-timeout-validator
directory.
Make sure cert-manager
is installed as a prerequisite.
$ helm upgrade --install route-timeout-validator --namespace route-timeout-system --create-namespace oci://ghcr.io/dana-team/helm-charts/route-timeout-validator --version <release>
Build your own image
$ make docker-build docker-push IMG=<registry>/route-timeout-validator:<tag>