Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print selective deployment error to container stdio #229

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion containerd-shim-spin/src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,10 @@ impl SpinEngine {
.ok()
.map(|s| s.split(',').map(|s| s.to_string()).collect::<Vec<String>>());
if let Some(components) = components_to_execute {
crate::retain::retain_components(&mut locked_app, &components)?;
if let Err(e) = crate::retain::retain_components(&mut locked_app, &components) {
println!("Error with selective deployment: {:?}", e);
return Err(e);
}
}
configure_application_variables_from_environment_variables(&locked_app)?;
let trigger_cmds = get_supported_triggers(&locked_app)
Expand Down