argo-cd/resource_customizations/openfaas.com/Function/health_test.yaml
Alex Ellis 2a05ae02ab
Add health status for OpenFaaS functions (#18015)
Adds test-case for Progressing, Degraded, Healthy and
Suspended, to avoid users having to update their Argo ConfigMaps
by hand.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2024-04-29 14:19:12 -04:00

17 lines
519 B
YAML

tests:
- healthStatus:
status: Progressing
message: "Waiting for Function"
inputPath: testdata/progressing.yaml
- healthStatus:
status: Degraded
message: "Secret missing: secrets \"missing-secret\" not found"
inputPath: testdata/degraded_no_secret.yaml
- healthStatus:
status: Healthy
message: "Deployment and service reconciled"
inputPath: testdata/healthy.yaml
- healthStatus:
status: Suspended
message: "No replicas available"
inputPath: testdata/suspended_zero_replicas.yaml