pub async fn patch(&self, data: &serde_json::Value) -> Result<()> {
        let pp = PatchParams::default();
        // Run this patch with a smaller deserialization surface via kube::Resource
        // kube::Api would force ShipcatManifest fully valid here
        // and this would prevent status updates during schema changes.
        let req = self
            .mfs
            .patch_status(&self.name, &pp, serde_json::to_vec(data)?)
            .map_err(ErrorKind::KubeError)?;
        let o = self
            .client
            .request::<MinimalMfCrd>(req) // <- difference from using Api::patch_status
            .await
            .map_err(ErrorKind::KubeError)?;
        debug!("Patched status: {:?}", o.status);
        Ok(())
    }
// helper to send a merge patch
helper to send a merge patch
helper to send a merge patch
pub async fn patch(&self, data: &serde_json::Value) -> Result<()> {
        let pp = PatchParams::default();
        // Run this patch with a smaller deserialization surface via kube::Resource
        // kube::Api would force ShipcatManifest fully valid here
        // and this would prevent status updates during schema changes.
        let req = self
            .mfs
            .patch_status(&self.name, &pp, serde_json::to_vec(data)?)
            .map_err(ErrorKind::KubeError)?;
        let o = self
            .client
            .request::<MinimalMfCrd>(req) // <- difference from using Api::patch_status
            .await
            .map_err(ErrorKind::KubeError)?;
        debug!("Patched status: {:?}", o.status);
        Ok(())
    }
pub async fn patch ( & self , data : & serde_json :: Value ) -> Result < ( ) > { let pp = PatchParams :: default ( ) ; // Run this patch with a smaller deserialization surface via kube::Resource // kube::Api would force ShipcatManifest fully valid here // and this would prevent status updates during schema changes. let req = self . mfs . patch_status ( & self . name , & pp , serde_json :: to_vec ( data ) ? ) . map_err ( ErrorKind :: KubeError ) ? ; let o = self . client . request :: < MinimalMfCrd > ( req ) // <- difference from using Api::patch_status . await . map_err ( ErrorKind :: KubeError ) ? ; debug ! ( " " o status ) ; Ok ( ( ) ) }
helper to send a merge patch
helper to send a merge patch
&self
data
&serde_json::Value
&self
data
&serde_json::Value