mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-17 04:52:23 +00:00
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:
@@ -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.
|
||||
|
||||
@@ -43,3 +43,4 @@ spec:
|
||||
- name: hostpath-vol-read-only
|
||||
hostPath:
|
||||
path: /tmp/results-read-only
|
||||
preemptionPolicy: PreemptLowerPriority
|
||||
|
||||
Reference in New Issue
Block a user