mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-17 13:04:23 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -8,3 +8,4 @@ spec:
|
||||
- name: redis
|
||||
image: registry.k8s.io/pause:3.6@sha256:3d380ca8864549e74af4b29c10f9cb0956236dfb01c40ca076fb6c37253234db
|
||||
priority: 1
|
||||
schedulerName: test-scheduler-name
|
||||
|
||||
Reference in New Issue
Block a user