From 540f3bb7f8a9a013bb8bb778a506957d914e4e3b Mon Sep 17 00:00:00 2001 From: zdj6373 Date: Sat, 14 Jan 2017 10:03:57 +0800 Subject: [PATCH] Log rectification,review --- pkg/controller/controller_ref_manager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/controller_ref_manager.go b/pkg/controller/controller_ref_manager.go index 7f28b776c7f..09aa4788bab 100644 --- a/pkg/controller/controller_ref_manager.go +++ b/pkg/controller/controller_ref_manager.go @@ -109,7 +109,7 @@ func GetControllerOf(controllee *v1.ObjectMeta) *metav1.OwnerReference { func (m *PodControllerRefManager) AdoptPod(pod *v1.Pod) error { // we should not adopt any pods if the controller is about to be deleted if m.controllerObject.DeletionTimestamp != nil { - return fmt.Errorf("cancel the adopt attempt for pod %s because the controlller is being deleted", + return fmt.Errorf("cancel the adopt attempt for pod %s because the controller is being deleted", strings.Join([]string{pod.Namespace, pod.Name, string(pod.UID)}, "_")) } addControllerPatch := fmt.Sprintf(