genpolicy: add topologySpreadConstraints support

Allow genpolicy to process Pod YAML files including
topologySpreadConstraints.

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai
2023-11-29 01:34:36 +00:00
committed by Saul Paredes
parent b0cdf4eb0d
commit 75aee526a9
2 changed files with 30 additions and 0 deletions

View File

@@ -27,3 +27,7 @@ spec:
securityContext:
seccompProfile:
type: RuntimeDefault
topologySpreadConstraints:
- maxSkew: 2
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: ScheduleAnyway