1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-15 17:51:20 +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: "*"
resources:
requests:
cpu: "<4"
cpu: "<4m"

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -4,6 +4,21 @@ metadata:
name: policy-job-perl-bigint
spec :
rules:
- name: job2
resource:
kinds:
- Job
name: pi
mutate:
overlay:
spec:
template:
spec:
containers:
- (name): piv0
ports:
- containerPort: 80
protocol: TCP
- name: job1
resource:
kinds:
@ -36,18 +51,3 @@ spec :
template:
spec:
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:
- name: "rule"
resource:
kinds :
kinds :
- LimitRange
selector:
matchLabels:
containerSize: minimal
mutate:
patches:
- path : "/spec/limits/0/memory"
op : replace
value: "384Mi"
- path : "/spec/limits/0/default/memory"
op : add
value: 384Mi
validate:
message: "The CPU value is incorrect"
pattern:
spec:
limits:
- default:
cpu: 9m
cpu: 10m

View file

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

View file

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

View file

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