Skip to content

Commit cccc080

Browse files
butler54claude
andcommitted
fix: add UPDATE operation to initdata injection policy
The policy only fired on Pod/Deployment CREATE, so pods created before the initdata ConfigMap existed never got the cc_init_data annotation. Adding UPDATE allows Kyverno to inject the annotation when a Deployment is updated (e.g. by ArgoCD sync), triggering a rolling restart with the correct initdata. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a601af0 commit cccc080

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

charts/all/coco-kyverno-policies/templates/inject-coco-initdata.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ spec:
2424
- Pod
2525
operations:
2626
- CREATE
27+
- UPDATE
2728
preconditions:
2829
all:
2930
- key: "{{ "{{" }}request.object.spec.runtimeClassName || '' {{ "}}" }}"

0 commit comments

Comments
 (0)