argo-cd/resource_customizations/openfaas.com/Function/testdata/degraded_no_secret.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

48 lines
1.7 KiB
YAML

{
"apiVersion": "openfaas.com/v1",
"kind": "Function",
"metadata": {
"annotations": {
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"openfaas.com/v1\",\"kind\":\"Function\",\"metadata\":{\"annotations\":{},\"name\":\"env\",\"namespace\":\"openfaas-fn\"},\"spec\":{\"annotations\":{},\"environment\":{\"fprocess\":\"env\",\"test\":\"yes\"},\"image\":\"ghcr.io/openfaas/alpine:latest\",\"labels\":{},\"name\":\"env\",\"secrets\":[\"missing-secret\"]}}\n"
},
"creationTimestamp": "2024-04-29T13:42:46Z",
"generation": 1,
"name": "env",
"namespace": "openfaas-fn",
"resourceVersion": "580675",
"uid": "7a00bc7b-eb01-4f6a-b5f7-7893422ace7d"
},
"spec": {
"annotations": {},
"environment": {
"fprocess": "env",
"test": "yes"
},
"image": "ghcr.io/openfaas/alpine:latest",
"labels": {},
"name": "env",
"secrets": [
"missing-secret"
]
},
"status": {
"conditions": [
{
"lastTransitionTime": "2024-04-29T13:42:46Z",
"message": "Function queued for creation",
"observedGeneration": 1,
"reason": "Reconciling",
"status": "True",
"type": "Reconciling"
},
{
"lastTransitionTime": "2024-04-29T13:42:46Z",
"message": "Secret missing: secrets \"missing-secret\" not found",
"observedGeneration": 1,
"reason": "SecretMissing",
"status": "True",
"type": "Stalled"
}
]
}
}