-
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.
refactor(stackable-versioned): Simplify crate overrides
- Loading branch information
Showing
8 changed files
with
435 additions
and
160 deletions.
There are no files selected for viewing
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, | ||
} |
6 changes: 3 additions & 3 deletions
6
...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.
12 changes: 6 additions & 6 deletions
12
...-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module.rs.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
12 changes: 6 additions & 6 deletions
12
...ixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module_preserve.rs.snap
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.