/// Create input metadata for our context
/// which has namespace
Create input metadata for our context
which has namespace
Create input metadata for our context which has namespace
pub async fn delete<S>(
          &self,
          name: &str,
     ) -> Result<(),C::MetadataClientError>
     where
          S: K8Spec + Serialize + Default + Debug + Clone + DeserializeOwned ,
          <S as K8Spec>::Status:  Default + Debug + DeserializeOwned
     {
          debug!("deleting k8 obj: {}",name);
          let meta = InputObjectMeta {
               name: name.to_owned(),
               namespace: self.namespace.clone(),
               ..Default::default()
          };
          let client = self.k8_ws.client();
          client.delete_item::<S,_>(&meta).await?;
          Ok(())
     }
pub async fn delete < S > ( & self , name : & str , ) -> Result < ( ) , C :: MetadataClientError > where S : K8Spec + Serialize + Default + Debug + Clone + DeserializeOwned , < S as K8Spec > :: Status : Default + Debug + DeserializeOwned { debug ! ( " " name ) ; let meta = InputObjectMeta { name : name . to_owned ( ) , namespace : self . namespace . clone ( ) , .. Default :: default ( ) } ; let client = self . k8_ws . client ( ) ; client . delete_item :: < S , _ > ( & meta ) . await ? ; Ok ( ( ) ) }
Create input metadata for our context
which has namespace
Create input metadata for our context which has namespace
&self
name
&str