async fn find_all_manifest_crds(ns: &str) -> Result<Vec<String>> {
    let getargs = vec![
        "get".into(),
        format!("-n={}", ns),
        "shipcatmanifests".into(),
        "-ojsonpath='{.items[*].metadata.name}'".into(),
    ];
    let (out, _) = kout(getargs).await?;
    if out == "''" {
        // stupid kubectl
        return Ok(vec![]);
    }
    Ok(out.split(' ').map(String::from).collect())
}
/// Find all ManifestCrds in a given namespace
///
/// Allows us to purge manifests that are not in Manifest::available()
Find all ManifestCrds in a given namespace
Allows us to purge manifests that are not in Manifest::available()
Find all ManifestCrds in a given namespace Allows us to purge manifests that are not in Manifest :: available ()
async fn find_all_manifest_crds(ns: &str) -> Result<Vec<String>> {
    let getargs = vec![
        "get".into(),
        format!("-n={}", ns),
        "shipcatmanifests".into(),
        "-ojsonpath='{.items[*].metadata.name}'".into(),
    ];
    let (out, _) = kout(getargs).await?;
    if out == "''" {
        // stupid kubectl
        return Ok(vec![]);
    }
    Ok(out.split(' ').map(String::from).collect())
}
async fn find_all_manifest_crds ( ns : & str ) -> Result < Vec < String > > { let getargs = vec ! [ " " into ( ) format ( " " ns ) " " into ( ) " " into ( ) ] ; let ( out , _ ) = kout ( getargs ) . await ? ; if out == " " { // stupid kubectl return Ok ( vec ! [ ] ) ; } Ok ( out . split ( ' ' ) . map ( String :: from ) . collect ( ) ) }
Find all ManifestCrds in a given namespace
Allows us to purge manifests that are not in Manifest::available()
Find all ManifestCrds in a given namespace Allows us to purge manifests that are not in Manifest :: available ()
ns
&str
ns
&str