1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
use super::Container;
use std::collections::BTreeMap;
#[derive(Serialize, Deserialize, Debug, Clone)]
#[cfg_attr(feature = "filesystem", serde(deny_unknown_fields))]
pub struct JobVolumeClaim {
pub size: String,
pub mountPath: String,
}
#[derive(Serialize, Deserialize, Debug, Clone, Default)]
pub struct CronJob {
#[serde(flatten)]
pub container: Container,
pub schedule: String,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub volumeClaim: Option<JobVolumeClaim>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub timeout: Option<u32>,
#[serde(default, skip_serializing_if = "Option::is_none")]
pub backoffLimit: Option<u16>,
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
pub podAnnotations: BTreeMap<String, String>,
}