diff --git a/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@basic.rs.snap b/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@basic.rs.snap index 5ab28cce..83bab487 100644 --- a/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@basic.rs.snap +++ b/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@basic.rs.snap @@ -129,49 +129,4 @@ impl Foo { &stored_apiversion.to_string(), ) } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to a file located at `path`. - pub fn write_merged_crd

( - path: P, - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> - where - P: AsRef<::std::path::Path>, - { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::write_yaml_schema( - &merged_crd, - path, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to stdout. - pub fn print_merged_crd( - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::print_yaml_schema( - &merged_crd, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } } diff --git a/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@crate_overrides.rs.snap b/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@crate_overrides.rs.snap index 84203198..2999586a 100644 --- a/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@crate_overrides.rs.snap +++ b/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@crate_overrides.rs.snap @@ -132,49 +132,4 @@ impl Foo { &stored_apiversion.to_string(), ) } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to a file located at `path`. - pub fn write_merged_crd

( - path: P, - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> - where - P: AsRef<::std::path::Path>, - { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::write_yaml_schema( - &merged_crd, - path, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to stdout. - pub fn print_merged_crd( - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::print_yaml_schema( - &merged_crd, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } } diff --git a/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module.rs.snap b/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module.rs.snap index 4052cbf1..d01dbc54 100644 --- a/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module.rs.snap +++ b/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module.rs.snap @@ -246,51 +246,6 @@ impl Foo { &stored_apiversion.to_string(), ) } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to a file located at `path`. - pub fn write_merged_crd

( - path: P, - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> - where - P: AsRef<::std::path::Path>, - { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::write_yaml_schema( - &merged_crd, - path, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to stdout. - pub fn print_merged_crd( - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::print_yaml_schema( - &merged_crd, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } } #[automatically_derived] pub(crate) enum Bar { @@ -329,49 +284,4 @@ impl Bar { &stored_apiversion.to_string(), ) } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to a file located at `path`. - pub fn write_merged_crd

( - path: P, - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> - where - P: AsRef<::std::path::Path>, - { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::write_yaml_schema( - &merged_crd, - path, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to stdout. - pub fn print_merged_crd( - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::print_yaml_schema( - &merged_crd, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } } diff --git a/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module_preserve.rs.snap b/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module_preserve.rs.snap index 7a2aede1..601a8a0a 100644 --- a/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module_preserve.rs.snap +++ b/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@module_preserve.rs.snap @@ -234,51 +234,6 @@ pub(crate) mod versioned { &stored_apiversion.to_string(), ) } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to a file located at `path`. - pub fn write_merged_crd

( - path: P, - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> - where - P: AsRef<::std::path::Path>, - { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::write_yaml_schema( - &merged_crd, - path, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to stdout. - pub fn print_merged_crd( - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::print_yaml_schema( - &merged_crd, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } } pub enum Bar { V1Alpha1, @@ -314,50 +269,5 @@ pub(crate) mod versioned { &stored_apiversion.to_string(), ) } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to a file located at `path`. - pub fn write_merged_crd

( - path: P, - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> - where - P: AsRef<::std::path::Path>, - { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::write_yaml_schema( - &merged_crd, - path, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to stdout. - pub fn print_merged_crd( - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::print_yaml_schema( - &merged_crd, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } } } diff --git a/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@renamed_kind.rs.snap b/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@renamed_kind.rs.snap index c2c826c4..fbda4713 100644 --- a/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@renamed_kind.rs.snap +++ b/crates/stackable-versioned-macros/fixtures/snapshots/stackable_versioned_macros__test__k8s_snapshots@renamed_kind.rs.snap @@ -129,49 +129,4 @@ impl FooBar { &stored_apiversion.to_string(), ) } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to a file located at `path`. - pub fn write_merged_crd

( - path: P, - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> - where - P: AsRef<::std::path::Path>, - { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::write_yaml_schema( - &merged_crd, - path, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } - /// Generates and writes a merged CRD which contains all versions defined using the `#[versioned()]` - /// macro to stdout. - pub fn print_merged_crd( - stored_apiversion: Self, - operator_version: &str, - ) -> Result<(), ::stackable_versioned::Error> { - use ::stackable_shared::yaml::{YamlSchema, SerializeOptions}; - let merged_crd = Self::merged_crd(stored_apiversion) - .map_err(|err| ::stackable_versioned::Error::MergeCrd { - source: err, - })?; - YamlSchema::print_yaml_schema( - &merged_crd, - operator_version, - SerializeOptions::default(), - ) - .map_err(|err| ::stackable_versioned::Error::SerializeYaml { - source: err, - }) - } }