@@ -22,27 +22,30 @@ use syn::Path;
2222/// times.
2323/// - `skip`: Controls skipping parts of the generation.
2424#[ derive( Clone , Debug , FromMeta ) ]
25- pub ( crate ) struct KubernetesArguments {
26- pub ( crate ) group : String ,
27- pub ( crate ) kind : Option < String > ,
28- pub ( crate ) singular : Option < String > ,
29- pub ( crate ) plural : Option < String > ,
30- pub ( crate ) namespaced : Flag ,
25+ pub struct KubernetesArguments {
26+ pub group : String ,
27+ pub kind : Option < String > ,
28+ pub singular : Option < String > ,
29+ pub plural : Option < String > ,
30+ pub namespaced : Flag ,
3131 // root
32- pub ( crate ) crates : Option < KubernetesCrateArguments > ,
33- pub ( crate ) status : Option < Path > ,
32+ pub crates : Option < KubernetesCrateArguments > ,
33+ pub status : Option < Path > ,
3434 // derive
3535 // schema
3636 // scale
3737 // printcolumn
3838 #[ darling( multiple, rename = "shortname" ) ]
39- pub ( crate ) shortnames : Vec < String > ,
39+ pub shortnames : Vec < String > ,
4040 // category
4141 // selectable
4242 // doc
4343 // annotation
4444 // label
45- pub ( crate ) skip : Option < KubernetesSkipArguments > ,
45+ pub skip : Option < KubernetesSkipArguments > ,
46+
47+ #[ darling( default ) ]
48+ pub options : RawKubernetesOptions ,
4649}
4750
4851/// This struct contains supported kubernetes skip arguments.
@@ -52,19 +55,25 @@ pub(crate) struct KubernetesArguments {
5255/// - `merged_crd` flag, which skips generating the `crd()` and `merged_crd()` functions are
5356/// generated.
5457#[ derive( Clone , Debug , FromMeta ) ]
55- pub ( crate ) struct KubernetesSkipArguments {
58+ pub struct KubernetesSkipArguments {
5659 /// Whether the `crd()` and `merged_crd()` generation should be skipped for
5760 /// this container.
58- pub ( crate ) merged_crd : Flag ,
61+ pub merged_crd : Flag ,
5962}
6063
6164/// This struct contains crate overrides to be passed to `#[kube]`.
6265#[ derive( Clone , Debug , FromMeta ) ]
63- pub ( crate ) struct KubernetesCrateArguments {
64- pub ( crate ) kube_core : Option < Path > ,
65- pub ( crate ) kube_client : Option < Path > ,
66- pub ( crate ) k8s_openapi : Option < Path > ,
67- pub ( crate ) schemars : Option < Path > ,
68- pub ( crate ) serde : Option < Path > ,
69- pub ( crate ) serde_json : Option < Path > ,
66+ pub struct KubernetesCrateArguments {
67+ pub kube_core : Option < Path > ,
68+ pub kube_client : Option < Path > ,
69+ pub k8s_openapi : Option < Path > ,
70+ pub schemars : Option < Path > ,
71+ pub serde : Option < Path > ,
72+ pub serde_json : Option < Path > ,
73+ pub versioned : Option < Path > ,
74+ }
75+
76+ #[ derive( Clone , Default , Debug , FromMeta ) ]
77+ pub struct RawKubernetesOptions {
78+ pub experimental_conversion_tracking : Flag ,
7079}
0 commit comments