-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/request-secret-lifetime
- Loading branch information
Showing
18 changed files
with
937 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
crates/stackable-versioned-macros/fixtures/inputs/k8s/crate_overrides.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#[versioned( | ||
version(name = "v1alpha1"), | ||
version(name = "v1beta1"), | ||
version(name = "v1"), | ||
k8s( | ||
group = "foo.example.org", | ||
singular = "foo", | ||
plural = "foos", | ||
namespaced, | ||
crates( | ||
kube_core = ::kube::core | ||
) | ||
) | ||
)] | ||
// --- | ||
#[derive( | ||
Clone, Debug, serde::Deserialize, serde::Serialize, schemars::JsonSchema, kube::CustomResource, | ||
)] | ||
pub struct FooSpec { | ||
#[versioned( | ||
added(since = "v1beta1"), | ||
changed(since = "v1", from_name = "bah", from_type = "u16") | ||
)] | ||
bar: usize, | ||
baz: bool, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
crates/stackable-versioned-macros/fixtures/inputs/k8s/renamed_kind.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#[versioned( | ||
version(name = "v1alpha1"), | ||
version(name = "v1beta1"), | ||
version(name = "v1"), | ||
k8s( | ||
group = "stackable.tech", | ||
kind = "FooBar", | ||
singular = "foo", | ||
plural = "foos", | ||
namespaced, | ||
) | ||
)] | ||
// --- | ||
#[derive( | ||
Clone, Debug, serde::Deserialize, serde::Serialize, schemars::JsonSchema, kube::CustomResource, | ||
)] | ||
pub struct FooSpec { | ||
#[versioned( | ||
added(since = "v1beta1"), | ||
changed(since = "v1", from_name = "bah", from_type = "u16") | ||
)] | ||
bar: usize, | ||
baz: bool, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 27 additions & 9 deletions
36
...d-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@basic.rs.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
180 changes: 180 additions & 0 deletions
180
...ixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@crate_overrides.rs.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.