Files
f6b85bd4f5 fix(health): add logic for disabled policies (#21347)
Signed-off-by: Dale Haiducek <[email protected]>
Signed-off-by: Alexandre Gaudreault <[email protected]>
Co-authored-by: Alexandre Gaudreault <[email protected]>
2025-09-12 22:09:30 +00:00

33 lines
1.1 KiB
YAML

tests:
- healthStatus:
status: Degraded
message: 'NonCompliant clusters: local-cluster, managed'
inputPath: testdata/degraded_root.yaml
- healthStatus:
status: Degraded
message: 'NonCompliant templates: example-namespace'
inputPath: testdata/degraded_replicated.yaml
- healthStatus:
status: Healthy
message: All clusters are compliant
inputPath: testdata/healthy_root.yaml
- healthStatus:
status: Healthy
message: All templates are compliant
inputPath: testdata/healthy_replicated.yaml
- healthStatus:
status: Healthy
message: Policy is disabled
inputPath: testdata/disabled_root.yaml
- healthStatus:
status: Progressing
message: Waiting for the status to be reported
inputPath: testdata/progressing_no_status.yaml
- healthStatus:
status: Progressing
message: Waiting for the status to be reported
inputPath: testdata/progressing_nil_status.yaml
- healthStatus:
status: Healthy
message: No clusters match this policy
inputPath: testdata/healthy_with_placement_empty_compliant.yaml