From 38458e05061965c6e6f5fe632ddb31ad7728fba5 Mon Sep 17 00:00:00 2001 From: clux Date: Tue, 15 Nov 2022 07:10:27 +0000 Subject: [PATCH] minor feedback points Signed-off-by: clux --- kube-runtime/src/reflector/object_ref.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kube-runtime/src/reflector/object_ref.rs b/kube-runtime/src/reflector/object_ref.rs index d5f402212..466506161 100644 --- a/kube-runtime/src/reflector/object_ref.rs +++ b/kube-runtime/src/reflector/object_ref.rs @@ -107,7 +107,7 @@ impl ObjectRef { } #[must_use] - pub fn with_owner(mut self, owner: &OwnerReference) -> Self { + pub fn with_uid(mut self, owner: &OwnerReference) -> Self { self.extra.uid = Some(owner.uid.clone()); self } @@ -160,7 +160,7 @@ impl Display for ObjectRef { if let Some(tm) = &self.types { write!(f, "{}.{}/{}", tm.kind, tm.api_version, self.name)?; } else { - write!(f, "{}", self.name)?; + write!(f, "unknown/{}", self.name)?; } if let Some(namespace) = &self.namespace { write!(f, ".{namespace}")?;