genpolicy: ignore pod schedulerName field

Ignore the input schedulerName field, irrelevant for generating Policy.

Signed-off-by: Dan Mihai <dmihai@microsoft.com>
This commit is contained in:
Dan Mihai
2026-05-05 15:45:41 +00:00
parent c51a30570f
commit 4a91e7d2f5
2 changed files with 4 additions and 0 deletions

View File

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

View File

@@ -8,3 +8,4 @@ spec:
- name: redis
image: registry.k8s.io/pause:3.6@sha256:3d380ca8864549e74af4b29c10f9cb0956236dfb01c40ca076fb6c37253234db
priority: 1
schedulerName: test-scheduler-name