Skip to content

Commit

Permalink
chore(stackable-versioned): Remove {write,print}_merged_crd function (#…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
Techassi authored Nov 29, 2024
1 parent c5dc4f5 commit 3f9c4cd
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 383 deletions.
4 changes: 0 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 2 additions & 3 deletions crates/stackable-versioned-macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,16 @@ development = ["k8s-openapi", "schemars", "serde_yaml", "stackable-versioned"]

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

[lib]
proc-macro = true

[features]
full = ["k8s"]
k8s = ["dep:kube", "dep:k8s-openapi", "dep:stackable-shared"]
k8s = ["dep:kube", "dep:k8s-openapi"]

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

convert_case.workspace = true
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3f9c4cd

Please sign in to comment.