2019-08-30 00:22:37 -07:00
|
|
|
# file path relative to project root
|
|
|
|
input:
|
2019-10-14 14:10:34 -07:00
|
|
|
policy: test/policy/validate/policy_validate_healthChecks.yaml
|
|
|
|
resource: test/resources/resource_validate_healthChecks.yaml
|
2019-08-30 00:22:37 -07:00
|
|
|
expected:
|
|
|
|
validation:
|
|
|
|
policyresponse:
|
2021-06-30 00:43:11 +03:00
|
|
|
policy:
|
|
|
|
namespace: ''
|
|
|
|
name: check-probe-exists
|
2019-08-30 00:22:37 -07:00
|
|
|
resource:
|
|
|
|
kind: Pod
|
|
|
|
apiVersion: v1
|
|
|
|
namespace: ''
|
|
|
|
name: probe
|
|
|
|
rules:
|
|
|
|
- name: check-readinessProbe-exists
|
|
|
|
type: Validation
|
2020-12-07 11:26:04 -08:00
|
|
|
message: validation rule 'check-readinessProbe-exists' passed.
|
2019-08-30 00:22:37 -07:00
|
|
|
success: true
|
|
|
|
- name: check-livenessProbe-exists
|
|
|
|
type: Validation
|
2020-12-07 11:26:04 -08:00
|
|
|
message: validation rule 'check-livenessProbe-exists' passed.
|
2019-08-30 00:22:37 -07:00
|
|
|
success: true
|