-
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathscale.rs
More file actions
28 lines (28 loc) · 618 Bytes
/
scale.rs
File metadata and controls
28 lines (28 loc) · 618 Bytes
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
use stackable_versioned::versioned;
// ---
#[versioned(version(name = "v1alpha1"))]
// ---
pub(crate) mod versioned {
#[versioned(crd(
group = "stackable.tech",
scale(
spec_replicas_path = ".spec.replicas",
status_replicas_path = ".status.replicas",
label_selector_path = ".status.selector"
)
))]
#[derive(
Clone,
Debug,
serde::Deserialize,
serde::Serialize,
schemars::JsonSchema,
kube::CustomResource,
)]
struct FooSpec {
bar: usize,
baz: bool,
}
}
// ---
fn main() {}