Files
JingchaoandGitHub b4888f67a3 fix: openkruise health check npe error #19545 (#19660)
* test: add broken unit test data

Signed-off-by: Jingchao <[email protected]>

* fix: npe error in kruise ds health-check

Signed-off-by: Jingchao <[email protected]>

---------

Signed-off-by: Jingchao <[email protected]>
2024-09-11 15:32:37 -07:00

26 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