Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
cgwalters committed Oct 22, 2023
1 parent c48c634 commit b8c1942
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions lib/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,12 +476,15 @@ async fn add(
write_configmap(sysroot, &booted_deployment, name, &cfgobj, cancellable)?;
println!("Stored configmap: {name}");

// let merge_commit = merge_deployment.csum();
// let commit = require_base_commit(repo, &merge_commit)?;
// let state = ostree_container::store::query_image_commit(repo, &commit)?;
// crate::deploy::deploy(sysroot, Some(merge_deployment), &stateroot, state, &origin).await?;
// crate::deploy::cleanup(sysroot).await?;
// println!("Queued changes for next boot");
let new_spec = {
let mut new_spec = host.spec.clone();
new_spec.configmap.push(name.to_owned());
new_spec
};
let new_spec = RequiredHostSpec::from_spec(&new_spec)?;
let stateroot = booted_deployment.osname();
let image = host.status.booted.as_ref().query_image();
crate::deploy::stage(sysroot, &stateroot, &fetched, &new_spec).await?;

Ok(())
}
Expand Down

0 comments on commit b8c1942

Please sign in to comment.