argo-cd/resource_customizations/apps.kruise.io/DaemonSet/health_test.yaml
Jingchao f980187f17
fix: openkruise health check npe error #19545 (#19660)
* test: add broken unit test data

Signed-off-by: Jingchao <alswlx@gmail.com>

* fix: npe error in kruise ds health-check

Signed-off-by: Jingchao <alswlx@gmail.com>

---------

Signed-off-by: Jingchao <alswlx@gmail.com>
2024-09-11 15:32:37 -07:00

25 lines
813 B
YAML

tests:
- healthStatus:
status: Healthy
message: "All Daemonset workloads are ready and updated"
inputPath: testdata/healthy.yaml
- healthStatus:
status: Degraded
message: "Some pods are not ready or available"
inputPath: testdata/degraded.yaml
- healthStatus:
status: Progressing
message: "Waiting for initialization"
inputPath: testdata/unknown.yaml
- healthStatus:
status: Progressing
message: "Waiting for initialization"
inputPath: testdata/no-update-strategy-partition.yaml
- healthStatus:
status: Suspended
message: "Daemonset is paused"
inputPath: testdata/suspended.yaml
- healthStatus:
status: Suspended
message: "Daemonset needs manual intervention"
inputPath: testdata/partition_suspended.yaml