pub async fn values(mf: &Manifest, output: &str) -> Result<()> {
    let encoded = serde_yaml::to_string(&mf)?;
    let pth = Path::new(".").join(output);
    debug!("Writing helm values for {} to {}", mf.name, pth.display());
    let mut f = File::create(&pth).await?;
    f.write_all(&encoded.as_bytes()).await?;
    f.sync_data().await?;
    debug!(
        "Wrote helm values for {} to {}: \n{}",
        mf.name,
        pth.display(),
        encoded
    );
    Ok(())
}
/// Create helm values file for a service
///
/// Requires a completed manifest (with inlined configs)
Create helm values file for a service
Requires a completed manifest (with inlined configs)
Create helm values file for a service Requires a completed manifest ( with inlined configs )
pub async fn values(mf: &Manifest, output: &str) -> Result<()> {
    let encoded = serde_yaml::to_string(&mf)?;
    let pth = Path::new(".").join(output);
    debug!("Writing helm values for {} to {}", mf.name, pth.display());
    let mut f = File::create(&pth).await?;
    f.write_all(&encoded.as_bytes()).await?;
    f.sync_data().await?;
    debug!(
        "Wrote helm values for {} to {}: \n{}",
        mf.name,
        pth.display(),
        encoded
    );
    Ok(())
}
pub async fn values ( mf : & Manifest , output : & str ) -> Result < ( ) > { let encoded = serde_yaml :: to_string ( & mf ) ? ; let pth = Path :: new ( " " ) . join ( output ) ; debug ! ( " " mf name pth display ( ) ) ; let mut f = File :: create ( & pth ) . await ? ; f . write_all ( & encoded . as_bytes ( ) ) . await ? ; f . sync_data ( ) . await ? ; debug ! ( " \n " mf name pth display ( ) encoded ) ; Ok ( ( ) ) }
Create helm values file for a service
Requires a completed manifest (with inlined configs)
Create helm values file for a service Requires a completed manifest ( with inlined configs )
mf
&Manifest
output
&str
mf
&Manifest
output
&str