Skip to content

Commit 085f86e

Browse files
committed
test(versioned): Add new kube override test
1 parent edb3f03 commit 085f86e

3 files changed

Lines changed: 454 additions & 0 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
use stackable_versioned::versioned;
2+
// ---
3+
#[versioned(
4+
version(name = "v1alpha1"),
5+
version(name = "v1beta1"),
6+
version(name = "v1"),
7+
crates(
8+
kube = ::kube,
9+
schemars = ::schemars
10+
)
11+
)]
12+
// ---
13+
pub mod versioned {
14+
#[versioned(crd(group = "foo.example.org"))]
15+
#[derive(
16+
Clone,
17+
Debug,
18+
serde::Deserialize,
19+
serde::Serialize,
20+
schemars::JsonSchema,
21+
kube::CustomResource,
22+
)]
23+
pub struct FooSpec {
24+
#[versioned(added(since = "v1beta1"), changed(since = "v1", from_name = "bah"))]
25+
bar: usize,
26+
baz: bool,
27+
}
28+
}
29+
// ---
30+
fn main() {}

0 commit comments

Comments
 (0)