Merge pull request #719 from ethan-daocloud/patch-1

cleanup: fix misspelled words in error message
This commit is contained in:
Sargun Dhillon
2019-08-12 11:09:35 -07:00
committed by GitHub

View File

@@ -228,7 +228,7 @@ func (pc *PodController) updatePodStatus(ctx context.Context, pod *corev1.Pod) e
status, err := pc.provider.GetPodStatus(ctx, pod.Namespace, pod.Name)
if err != nil && !errdefs.IsNotFound(err) {
span.SetStatus(err)
return pkgerrors.Wrap(err, "error retreiving pod status")
return pkgerrors.Wrap(err, "error retrieving pod status")
}
// Update the pod's status
@@ -292,7 +292,7 @@ func (pc *PodController) podStatusHandler(ctx context.Context, key string) (retE
namespace, name, err := cache.SplitMetaNamespaceKey(key)
if err != nil {
return pkgerrors.Wrap(err, "error spliting cache key")
return pkgerrors.Wrap(err, "error splitting cache key")
}
pod, err := pc.podsLister.Pods(namespace).Get(name)