mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-09 09:26:54 +00:00
* fix mutate preprocessing for anchors Signed-off-by: Jim Bugwadia <jim@nirmata.com> * make fmt Signed-off-by: Jim Bugwadia <jim@nirmata.com> Co-authored-by: shuting <shutting06@gmail.com>
22 lines
No EOL
571 B
YAML
22 lines
No EOL
571 B
YAML
apiVersion: kyverno.io/v1
|
|
kind: ClusterPolicy
|
|
metadata:
|
|
name: mutate-emptydir
|
|
spec:
|
|
rules:
|
|
- name: setDefault
|
|
match:
|
|
resources:
|
|
kinds:
|
|
- Deployment
|
|
mutate:
|
|
foreach:
|
|
- list: "request.object.spec.template.spec.volumes"
|
|
patchStrategicMerge:
|
|
spec:
|
|
template:
|
|
spec:
|
|
volumes:
|
|
- name: "{{ element.name }}"
|
|
(emptyDir):
|
|
+(sizeLimit): "20Mi" |