pub fn owner_owned(&self) -> Option<Self> {
        if self.inner.owner_references.is_empty() {
            None
        } else {
            if self.inner.owner_references.len() > 1 {
                error!("too many owners: {:#?}", self.inner);
            }

            let owner = &self.inner.owner_references[0];

            Some(Self {
                revision: 0,
                inner: ObjectMeta {
                    name: owner.name.to_owned(),
                    namespace: self.namespace.to_owned(),
                    uid: owner.uid.to_owned(),
                    ..Default::default()
                },
            })
        }
    }
/// create owner if exists, only worry about first references
create owner if exists, only worry about first references
create owner if exists only worry about first references
pub fn owner_owned(&self) -> Option<Self> {
        if self.inner.owner_references.is_empty() {
            None
        } else {
            if self.inner.owner_references.len() > 1 {
                error!("too many owners: {:#?}", self.inner);
            }
            let owner = &self.inner.owner_references[0];
            Some(Self {
                revision: 0,
                inner: ObjectMeta {
                    name: owner.name.to_owned(),
                    namespace: self.namespace.to_owned(),
                    uid: owner.uid.to_owned(),
                    ..Default::default()
                },
            })
        }
    }
pub fn owner_owned ( & self ) -> Option < Self > { if self . inner . owner_references . is_empty ( ) { None } else { if self . inner . owner_references . len ( ) > 1 { error ! ( " " self inner ) ; } let owner = & self . inner . owner_references [ 0 ] ; Some ( Self { revision : 0 , inner : ObjectMeta { name : owner . name . to_owned ( ) , namespace : self . namespace . to_owned ( ) , uid : owner . uid . to_owned ( ) , .. Default :: default ( ) } , } ) } }
create owner if exists, only worry about first references
create owner if exists only worry about first references
&self
&self