///
/// Translates K8 object into Internal metadata object
///
Translates K8 object into Internal metadata object
Translates K8 object into Internal metadata object
pub fn k8_obj_to_kv_obj<S>(
        k8_obj: K8Obj<S::K8Spec>,
    ) -> Result<MetadataStoreObject<S, K8MetaItem>, K8ConvertError<S::K8Spec>>
    where
        S: K8ExtendedSpec,
        <S as Spec>::Owner: K8ExtendedSpec,
    {
        S::convert_from_k8(k8_obj)
            .map(|val| {
                trace!("converted val: {:#?}", val);
                val
            })
            .map_err(|err| err)
    }
pub fn k8_obj_to_kv_obj < S > ( k8_obj : K8Obj < S :: K8Spec > , ) -> Result < MetadataStoreObject < S , K8MetaItem > , K8ConvertError < S :: K8Spec > > where S : K8ExtendedSpec , < S as Spec > :: Owner : K8ExtendedSpec , { S :: convert_from_k8 ( k8_obj ) . map ( | val | { trace ! ( " " val ) ; val } ) . map_err ( | err | err ) }
Translates K8 object into Internal metadata object
Translates K8 object into Internal metadata object
k8_obj
K8Obj<S::K8Spec>