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:
|
|
|
|
policy: check-probe-exists
|
|
|
|
resource:
|
|
|
|
kind: Pod
|
|
|
|
apiVersion: v1
|
|
|
|
namespace: ''
|
|
|
|
name: probe
|
|
|
|
rules:
|
|
|
|
- name: check-readinessProbe-exists
|
|
|
|
type: Validation
|
2019-11-04 20:15:44 -08:00
|
|
|
message: Validation rule 'check-readinessProbe-exists' succeeded.
|
2019-08-30 00:22:37 -07:00
|
|
|
success: true
|
|
|
|
- name: check-livenessProbe-exists
|
|
|
|
type: Validation
|
2019-11-04 20:15:44 -08:00
|
|
|
message: Validation rule 'check-livenessProbe-exists' succeeded.
|
2019-08-30 00:22:37 -07:00
|
|
|
success: true
|