1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

updated test after bubfix

This commit is contained in:
Anton Kostenko 2019-06-10 16:08:35 +03:00
parent d0e1524480
commit 1ae3db1517
11 changed files with 32 additions and 30 deletions

View file

@ -35,4 +35,4 @@ spec:
- name: "*" - name: "*"
resources: resources:
requests: requests:
cpu: "<4" cpu: "<4m"

View file

@ -12,7 +12,7 @@ spec :
mutate: mutate:
overlay: overlay:
data: data:
char.properties: | char.properties:
Name=Ellen Ripley Name=Ellen Ripley
Race=human Race=human
patches: patches:

View file

@ -6,7 +6,7 @@ spec :
rules: rules:
- name: "First policy v2" - name: "First policy v2"
resource: resource:
kinds : kinds :
- Deployment - Deployment
mutate: mutate:
patches: patches:

View file

@ -6,7 +6,7 @@ spec :
rules: rules:
- name: pEP - name: pEP
resource: resource:
kinds : kinds :
- Endpoints - Endpoints
selector: selector:
matchLabels: matchLabels:

View file

@ -12,5 +12,5 @@ spec:
paths: paths:
- path: /testpath - path: /testpath
backend: backend:
serviceName: test serviceName: testprod
servicePort: 80 servicePort: 80

View file

@ -9,7 +9,9 @@ spec:
- name: piv0 - name: piv0
image: perl image: perl
command: ["perl"] command: ["perl"]
ports: dsvd12 ports:
- containerPort: 90
protocol: TCP
- name: pi - name: pi
image: perl image: perl
command: ["perl"] command: ["perl"]

View file

@ -4,6 +4,21 @@ metadata:
name: policy-job-perl-bigint name: policy-job-perl-bigint
spec : spec :
rules: rules:
- name: job2
resource:
kinds:
- Job
name: pi
mutate:
overlay:
spec:
template:
spec:
containers:
- (name): piv0
ports:
- containerPort: 80
protocol: TCP
- name: job1 - name: job1
resource: resource:
kinds: kinds:
@ -36,18 +51,3 @@ spec :
template: template:
spec: spec:
restartPolicy: Never restartPolicy: Never
- name: job2
resource:
kinds:
- Job
name: pi
mutate:
overlay:
spec:
template:
spec:
containers:
- (name): piv0
ports:
- containerPort: 80
protocol: TCP

View file

@ -6,20 +6,20 @@ spec :
rules: rules:
- name: "rule" - name: "rule"
resource: resource:
kinds : kinds :
- LimitRange - LimitRange
selector: selector:
matchLabels: matchLabels:
containerSize: minimal containerSize: minimal
mutate: mutate:
patches: patches:
- path : "/spec/limits/0/memory" - path : "/spec/limits/0/default/memory"
op : replace op : add
value: "384Mi" value: 384Mi
validate: validate:
message: "The CPU value is incorrect" message: "The CPU value is incorrect"
pattern: pattern:
spec: spec:
limits: limits:
- default: - default:
cpu: 9m cpu: 10m

View file

@ -6,7 +6,7 @@ spec:
rules: rules:
- name: np1 - name: np1
resource: resource:
kinds : kinds :
- NetworkPolicy - NetworkPolicy
selector: selector:
matchLabels: matchLabels:

View file

@ -6,7 +6,7 @@ spec:
rules: rules:
- name: pvc1 - name: pvc1
resource: resource:
kinds : kinds :
- PersistentVolumeClaim - PersistentVolumeClaim
matchLabels: matchLabels:
originalLabel: isHere originalLabel: isHere
@ -22,4 +22,4 @@ spec:
pattern: pattern:
spec: spec:
accessModes: accessModes:
- ReadWrite - ReadWrite*

View file

@ -6,7 +6,7 @@ spec:
rules: rules:
- name: statefulset1 - name: statefulset1
resource: resource:
kinds : kinds :
- StatefulSet - StatefulSet
selector: selector:
matchLabels: matchLabels: