2019-11-04 17:55:13 -08:00
|
|
|
# file path is relative to project root
|
2019-08-30 00:22:37 -07:00
|
|
|
input:
|
2019-10-14 14:10:34 -07:00
|
|
|
policy: test/policy/mutate/policy_mutate_validate_qos.yaml
|
|
|
|
resource: test/resources/resource_mutate_validate_qos.yaml
|
2019-08-30 00:22:37 -07:00
|
|
|
expected:
|
|
|
|
mutation:
|
|
|
|
patchedresource: test/output/output_mutate_validate_qos.yaml
|
|
|
|
policyresponse:
|
|
|
|
policy: policy-qos
|
|
|
|
resource:
|
|
|
|
kind: Deployment
|
|
|
|
apiVersion: apps/v1
|
|
|
|
namespace: ''
|
|
|
|
name: qos-demo
|
|
|
|
rules:
|
|
|
|
- name: add-memory-limit
|
|
|
|
type: Mutation
|
|
|
|
success: true
|
2019-08-30 14:06:47 -07:00
|
|
|
message: succesfully process overlay
|
2019-08-30 00:22:37 -07:00
|
|
|
validation:
|
|
|
|
policyresponse:
|
|
|
|
policy: policy-qos
|
|
|
|
resource:
|
|
|
|
kind: Deployment
|
|
|
|
apiVersion: apps/v1
|
|
|
|
namespace: ''
|
|
|
|
name: qos-demo
|
|
|
|
rules:
|
|
|
|
- name: check-cpu-memory-limits
|
|
|
|
type: Validation
|
2019-09-05 12:44:38 -07:00
|
|
|
message: Validation rule 'check-cpu-memory-limits' succesfully validated
|
2019-08-30 00:22:37 -07:00
|
|
|
success: true
|