mirror of
https://github.com/vhaudiquet/homeprod.git
synced 2026-09-12 04:01:14 +00:00
kyverno(kube): bump version
This commit is contained in:
@@ -86,12 +86,11 @@ spec:
|
||||
matchLabels:
|
||||
app: engine-image
|
||||
mutate:
|
||||
# Use `foreach` over the pod's own containers (relative paths, NOT
|
||||
# request.object.*) so the rule works in BOTH admission AND background
|
||||
# modes. The backgroundController has no admission request, so
|
||||
# request.object.* is unavailable in background scanning.
|
||||
# `request.object` is available in BOTH admission and background modes:
|
||||
# the backgroundController synthesizes an admission-like request for
|
||||
# existing resources, so the same foreach works for both.
|
||||
foreach:
|
||||
- list: "spec.containers[]"
|
||||
- list: "request.object.spec.containers"
|
||||
patchStrategicMerge: |
|
||||
spec:
|
||||
containers:
|
||||
@@ -99,12 +98,7 @@ spec:
|
||||
resources:
|
||||
requests:
|
||||
cpu: null
|
||||
- list: "spec.initContainers[]"
|
||||
preconditions:
|
||||
all:
|
||||
- key: "{{ spec.initContainers[] || `[]` | length(@) }}"
|
||||
operator: GreaterThan
|
||||
value: 0
|
||||
- list: "request.object.spec.initContainers || `[]`"
|
||||
patchStrategicMerge: |
|
||||
spec:
|
||||
initContainers:
|
||||
|
||||
@@ -12,7 +12,7 @@ spec:
|
||||
name: kyverno
|
||||
namespace: kyverno
|
||||
chart: kyverno
|
||||
version: '3.3.7'
|
||||
version: '3.9.0'
|
||||
interval: 5m
|
||||
# Minimal footprint for a single-node cluster:
|
||||
# - admissionReports disabled (no extra Redis/Postgres)
|
||||
|
||||
Reference in New Issue
Block a user