Skip to content

Commit

Permalink
fix resources
Browse files Browse the repository at this point in the history
Signed-off-by: Mariam Fahmy <mariam.fahmy@nirmata.com>
  • Loading branch information
MariamFahmy98 committed Sep 9, 2024
1 parent 16a067b commit 9170771
Show file tree
Hide file tree
Showing 10 changed files with 41 additions and 42 deletions.
7 changes: 3 additions & 4 deletions other-cel/prevent-cr8escape/.chainsaw-test/pods-good.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ kind: Pod
metadata:
name: goodpod02
spec:
securityContext:
allowPrivilegeEscalation: false
containers:
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35
securityContext:
allowPrivilegeEscalation: false
---
apiVersion: v1
kind: Pod
Expand All @@ -31,5 +31,4 @@ metadata:
spec:
containers:
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35

image: ghcr.io/kyverno/test-busybox:1.35
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
spec:
rules:
- host: endpoint01
https:
http:
paths:
- backend:
service:
Expand All @@ -27,7 +27,7 @@ metadata:
spec:
rules:
- host: endpoint01
https:
http:
paths:
- path: /testpath
pathType: Prefix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ metadata:
spec:
rules:
- host: endpoint01
https:
http:
paths:
- backend:
service:
Expand All @@ -28,7 +28,7 @@ metadata:
spec:
rules:
- host: endpoint01
https:
http:
paths:
- path: /testpath
pathType: Prefix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
rules:
- host: endpoint01
https:
http:
paths:
- backend:
service:
Expand All @@ -22,7 +22,7 @@ metadata:
spec:
rules:
- host: endpoint01
https:
http:
paths:
- path: /testpath
pathType: Prefix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
rules:
- host: "*.foo.bar"
https:
http:
paths:
- backend:
service:
Expand All @@ -22,7 +22,7 @@ metadata:
spec:
rules:
- host: foo-bar
https:
http:
paths:
- path: /testpath
pathType: Prefix
Expand All @@ -32,7 +32,7 @@ spec:
port:
number: 80
- host: "*.example.com"
https:
http:
paths:
- path: /testpath
pathType: Prefix
Expand All @@ -49,7 +49,7 @@ metadata:
spec:
rules:
- host: "*.bar"
https:
http:
paths:
- path: /testpath
pathType: Prefix
Expand All @@ -59,7 +59,7 @@ spec:
port:
number: 80
- host: foo-bar
https:
http:
paths:
- path: /testpath
pathType: Prefix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
rules:
- host: endpoint01
https:
http:
paths:
- backend:
service:
Expand All @@ -22,7 +22,7 @@ metadata:
spec:
rules:
- host: endpoint02
https:
http:
paths:
- path: /testpath
pathType: Prefix
Expand All @@ -32,7 +32,7 @@ spec:
port:
number: 80
- host: endpoint01
https:
http:
paths:
- path: /testpath
pathType: Prefix
Expand Down
21 changes: 11 additions & 10 deletions other-cel/restrict-node-affinity/.chainsaw-test/pod-good.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ metadata:
spec:
affinity:
podAffinity:
prefferedDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: bar
operator: In
values:
- bar
topologyKey: topology.kubernetes.io/zone
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: bar
operator: In
values:
- bar
topologyKey: topology.kubernetes.io/zone
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
Expand All @@ -35,5 +37,4 @@ spec:
topologyKey: topology.kubernetes.io/zone
containers:
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35

image: ghcr.io/kyverno/test-busybox:1.35
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@ spec:
containers:
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35
restartPolicy: OnFailure

restartPolicy: OnFailure
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ spec:
spec:
affinity:
podAffinity:
prefferedDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: bar
operator: In
values:
- bar
topologyKey: topology.kubernetes.io/zone
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: bar
operator: In
values:
- bar
topologyKey: topology.kubernetes.io/zone
containers:
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35
Expand All @@ -42,5 +44,4 @@ spec:
containers:
- name: busybox
image: ghcr.io/kyverno/test-busybox:1.35
restartPolicy: OnFailure

restartPolicy: OnFailure
3 changes: 1 addition & 2 deletions other-cel/restrict-node-affinity/.kyverno-test/resource.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,4 @@ spec:
cpu: "500m"
limits:
memory: "256Mi"
cpu: "500m"

cpu: "500m"

0 comments on commit 9170771

Please sign in to comment.