Skip to content

Commit

Permalink
hack: temp commit for build
Browse files Browse the repository at this point in the history
  • Loading branch information
piyush-jena committed Aug 31, 2024
1 parent 2b3f2d9 commit 8d28192
Show file tree
Hide file tree
Showing 9 changed files with 205 additions and 37 deletions.
75 changes: 45 additions & 30 deletions sources/Cargo.lock

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

8 changes: 4 additions & 4 deletions sources/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -192,22 +192,22 @@ x509-parser = "0.16"
base64 = "0.22"

[workspace.dependencies.bottlerocket-modeled-types]
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
git = "https://github.com/piyush-jena/bottlerocket-settings-sdk"
tag = "bottlerocket-settings-models-v0.3.0"
version = "0.3.0"

[workspace.dependencies.bottlerocket-settings-models]
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
git = "https://github.com/piyush-jena/bottlerocket-settings-sdk"
tag = "bottlerocket-settings-models-v0.3.0"
version = "0.3.0"

[workspace.dependencies.bottlerocket-settings-plugin]
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
git = "https://github.com/piyush-jena/bottlerocket-settings-sdk"
tag = "bottlerocket-settings-plugin-v0.1.0"
version = "0.1.0"

[workspace.dependencies.settings-extension-oci-defaults]
git = "https://github.com/bottlerocket-os/bottlerocket-settings-sdk"
git = "https://github.com/piyush-jena/bottlerocket-settings-sdk"
tag = "bottlerocket-settings-models-v0.3.0"
version = "0.1.0"

Expand Down
14 changes: 13 additions & 1 deletion sources/api/schnauzer/src/helpers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ use url::Url;
pub mod stdlib;

pub use stdlib::{
any_enabled, base64_decode, default, goarch, join_array, join_map, negate_or_else,
any_enabled, base64_decode, default, goarch, join_array, join_map, negate_or_else, toml_encode,
IfNotNullHelper, IsArray, IsBool, IsNull, IsNumber, IsObject, IsString,
};

Expand Down Expand Up @@ -282,6 +282,18 @@ mod error {
rps: handlebars::JsonValue,
burst: handlebars::JsonValue,
},

#[snafu(display(
"Unable to encode input '{}' from template '{}' as toml: {}",
value,
source,
template
))]
TomlEncode {
value: serde_json::Value,
source: serde_json::Error,
template: String,
},
}

// Handlebars helpers are required to return a RenderError.
Expand Down
Loading

0 comments on commit 8d28192

Please sign in to comment.