Commit 02dd37f
feat: add label-based exclusion to inject-coco-initdata policy
Add exclude block to inject-coco-initdata Kyverno policy to skip
pods with label coco.io/skip-initdata: "true".
This allows special-purpose kata pods (like firmware collection pods)
to bypass init_data injection when they don't need attestation to KBS.
Use case: The firmware collection workflow (PR #89) needs to launch
a kata pod to collect TEE measurements using veritas, but doesn't
require init_data injection since it only accesses the TEE device
directly and doesn't request secrets from KBS.
Without this exclusion, the policy tries to inject init_data but
fails because the pod doesn't have the coco.io/initdata-configmap
annotation, blocking pod creation.
Usage: Add label coco.io/skip-initdata: "true" to any kata pod that
should bypass init_data injection.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent e69084c commit 02dd37f
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
| |||
0 commit comments