pub async fn secret_presence_full(conf: &Config, regions: Vec<String>) -> Result<()> {
    for r in regions {
        info!("validating secrets in {}", r);
        let reg = conf.get_region(&r)?; // verifies region or region alias exists
        reg.verify_secrets_exist().await?; // verify secrets for the region
        for svc in shipcat_filebacked::available(conf, &reg).await? {
            let mf = shipcat_filebacked::load_manifest(&svc.base.name, conf, &reg).await?;
            debug!("validating secrets for {} in {}", &svc.base.name, r);
            mf.verify_secrets_exist(&reg.vault).await?;
        }
    }
    Ok(())
}
/// Validate the secrets exists in all regions
///
/// This is one of very few functions not validating a single kube context,
/// so it does special validation of all the regions.
Validate the secrets exists in all regions
This is one of very few functions not validating a single kube context,
so it does special validation of all the regions.
Validate the secrets exists in all regions This is one of very few functions not validating a single kube context so it does special validation of all the regions .
pub async fn secret_presence_full(conf: &Config, regions: Vec<String>) -> Result<()> {
    for r in regions {
        info!("validating secrets in {}", r);
        let reg = conf.get_region(&r)?; // verifies region or region alias exists
        reg.verify_secrets_exist().await?; // verify secrets for the region
        for svc in shipcat_filebacked::available(conf, &reg).await? {
            let mf = shipcat_filebacked::load_manifest(&svc.base.name, conf, &reg).await?;
            debug!("validating secrets for {} in {}", &svc.base.name, r);
            mf.verify_secrets_exist(&reg.vault).await?;
        }
    }
    Ok(())
}
pub async fn secret_presence_full ( conf : & Config , regions : Vec < String > ) -> Result < ( ) > { for r in regions { info ! ( " " r ) ; let reg = conf . get_region ( & r ) ? ; // verifies region or region alias exists reg . verify_secrets_exist ( ) . await ? ; // verify secrets for the region for svc in shipcat_filebacked :: available ( conf , & reg ) . await ? { let mf = shipcat_filebacked :: load_manifest ( & svc . base . name , conf , & reg ) . await ? ; debug ! ( " " svc base name r ) ; mf . verify_secrets_exist ( & reg . vault ) . await ? ; } } Ok ( ( ) ) }
Validate the secrets exists in all regions
This is one of very few functions not validating a single kube context,
so it does special validation of all the regions.
Validate the secrets exists in all regions This is one of very few functions not validating a single kube context so it does special validation of all the regions .
conf
&Config
regions
Vec<String>
conf
&Config
regions
Vec<String>