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

35 lines
1.1 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"}}
creationTimestamp: "2024-04-29T13:38:50Z"
generation: 1
name: env
namespace: openfaas-fn
resourceVersion: "580543"
uid: 865f74b9-cbc5-455a-abd7-4a1cdeae22d1
spec:
annotations: {}
environment:
fprocess: env
test: "yes"
image: ghcr.io/openfaas/alpine:latest
labels: {}
name: env
status:
conditions:
- lastTransitionTime: "2024-04-29T13:38:50Z"
message: Deployment and service reconciled
observedGeneration: 1
reason: Ready
status: "True"
type: Ready
- lastTransitionTime: "2024-04-29T13:41:27Z"
message: At least one replica available
observedGeneration: 1
reason: ReplicaAvailable
status: "False"
type: Healthy