genpolicy: ignore preemptionPolicy

Ignore the pod preemptionPolicy field from input YAML - irrelevant
for building the Policy.

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai
2026-05-05 02:19:26 +00:00
parent bdaa65e29d
commit b6349f50ab
2 changed files with 4 additions and 0 deletions

View File

@@ -98,6 +98,9 @@ pub struct PodSpec {
#[serde(skip_serializing_if = "Option::is_none")]
priorityClassName: Option<String>,
#[serde(skip_serializing_if = "Option::is_none")]
preemptionPolicy: Option<String>,
}
/// See Reference / Kubernetes API / Workload Resources / Pod.

View File

@@ -43,3 +43,4 @@ spec:
- name: hostpath-vol-read-only
hostPath:
path: /tmp/results-read-only
preemptionPolicy: PreemptLowerPriority