[trival] fix typo

This commit is contained in:
jianglingxia
2017-07-21 14:09:18 +08:00
parent ef98b80bd0
commit 88828cc777
6 changed files with 6 additions and 6 deletions

View File

@@ -178,7 +178,7 @@ func (rm *ReplicationManager) getPodControllers(pod *v1.Pod) []*v1.ReplicationCo
// resolveControllerRef returns the controller referenced by a ControllerRef,
// or nil if the ControllerRef could not be resolved to a matching controller
// of the corrrect Kind.
// of the correct Kind.
func (rm *ReplicationManager) resolveControllerRef(namespace string, controllerRef *metav1.OwnerReference) *v1.ReplicationController {
// We can't look up by UID, so look up by Name and then verify UID.
// Don't even try to look up by Name if it's the wrong Kind.