genpolicy: Add support for envFrom

This change adds support for the `envFrom` field in the `Pod` resource

Signed-off-by: Saul Paredes <saulparedes@microsoft.com>
This commit is contained in:
Saul Paredes
2024-04-29 13:35:36 -07:00
parent fc4357f642
commit 2681fc7eb0
6 changed files with 147 additions and 1 deletions

View File

@@ -10,3 +10,4 @@ metadata:
data:
data-1: value-1
data-2: value-2
data-3: value-3

View File

@@ -49,6 +49,9 @@ spec:
- echo
- startupProbe
- test
envFrom:
- configMapRef:
name: policy-configmap
topologySpreadConstraints:
- maxSkew: 2
topologyKey: kubernetes.io/hostname