/// 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 create<S>(
          &self,
          name: String,
          spec: S
     ) -> Result<(),C::MetadataClientError>
     where
          S: K8Spec + Serialize + Default + Debug + Clone + DeserializeOwned + Send,
          <S as K8Spec>::Status:  Default + Debug + Serialize + DeserializeOwned + Send
     {
          debug!("creating k8 spec: {:#?}",spec);
          let input = InputK8Obj {
               api_version: S::api_version(),
               kind: S::kind(),
               metadata: InputObjectMeta {
                    name,
                    namespace: self.namespace.clone(),
                    ..Default::default()
               },
               spec,
               ..Default::default()
          };
          let client = self.k8_ws.client();
          client.apply(input).await?;
          Ok(())
     }
pub async fn create < S > ( & self , name : String , spec : S ) -> Result < ( ) , C :: MetadataClientError > where S : K8Spec + Serialize + Default + Debug + Clone + DeserializeOwned + Send , < S as K8Spec > :: Status : Default + Debug + Serialize + DeserializeOwned + Send { debug ! ( " " spec ) ; let input = InputK8Obj { api_version : S :: api_version ( ) , kind : S :: kind ( ) , metadata : InputObjectMeta { name , namespace : self . namespace . clone ( ) , .. Default :: default ( ) } , spec , .. Default :: default ( ) } ; let client = self . k8_ws . client ( ) ; client . apply ( input ) . await ? ; Ok ( ( ) ) }
Create input metadata for our context
which has namespace
Create input metadata for our context which has namespace
&self
name
String
spec
S