Skip to content

Commit 3f9c4cd

Browse files
authored
chore(stackable-versioned): Remove {write,print}_merged_crd function (#924)
* chore(stackable-versioned): Remove {write,print}_merged_crd function The dependency on stackable-shared can cause some conflicts in projects which use stackable-versioned. This also de-couples Stackable specific code from the versioning macro, which we want to be usable outside of Stackable as well. Consumers can still generate the merged CRD and then use functions from the stackable_shared::CustomResourceExt trait to print or write the YAML. * chore(stackable-versioned): Update changelog * chore: Remove unused stackable-shared dependency * chore: Remove unused Error struct * test: Update Kubernetes snapshot tests * chore: Remove unused kube dependency
1 parent c5dc4f5 commit 3f9c4cd

11 files changed

+4
-383
lines changed

Cargo.lock

Lines changed: 0 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/stackable-versioned-macros/Cargo.toml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,16 @@ development = ["k8s-openapi", "schemars", "serde_yaml", "stackable-versioned"]
1919

2020
# cargo-udeps throws an error stating that these dependencies are unused. They are all marked as
2121
# optional, which trips up cargo-udeps for whatever reason...
22-
normal = ["k8s-openapi", "kube", "stackable-shared"]
22+
normal = ["k8s-openapi", "kube"]
2323

2424
[lib]
2525
proc-macro = true
2626

2727
[features]
2828
full = ["k8s"]
29-
k8s = ["dep:kube", "dep:k8s-openapi", "dep:stackable-shared"]
29+
k8s = ["dep:kube", "dep:k8s-openapi"]
3030

3131
[dependencies]
32-
stackable-shared = { path = "../stackable-shared", optional = true }
3332
k8s-version = { path = "../k8s-version", features = ["darling"] }
3433

3534
convert_case.workspace = true

crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@basic.rs.snap

Lines changed: 0 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@crate_overrides.rs.snap

Lines changed: 0 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module.rs.snap

Lines changed: 0 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module_preserve.rs.snap

Lines changed: 0 additions & 90 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@renamed_kind.rs.snap

Lines changed: 0 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)