Minor cleanup: fix typos

This commit is contained in:
xiangpengzhao 2016-10-31 20:43:58 -04:00
parent 482475e378
commit 829980d871

View File

@ -1283,7 +1283,7 @@ func (kl *Kubelet) GetClusterDNS(pod *api.Pod) ([]string, []string, error) {
// * Call the container runtime's SyncPod callback // * Call the container runtime's SyncPod callback
// * Update the traffic shaping for the pod's ingress and egress limits // * Update the traffic shaping for the pod's ingress and egress limits
// //
// If any step if this workflow errors, the error is returned, and is repeated // If any step of this workflow errors, the error is returned, and is repeated
// on the next syncPod call. // on the next syncPod call.
func (kl *Kubelet) syncPod(o syncPodOptions) error { func (kl *Kubelet) syncPod(o syncPodOptions) error {
// pull out the required options // pull out the required options
@ -1494,7 +1494,7 @@ func (kl *Kubelet) deletePod(pod *api.Pod) error {
return nil return nil
} }
// handleOutOfDisk detects if pods can't fit due to lack of disk space. // isOutOfDisk detects if pods can't fit due to lack of disk space.
func (kl *Kubelet) isOutOfDisk() bool { func (kl *Kubelet) isOutOfDisk() bool {
// Check disk space once globally and reject or accept all new pods. // Check disk space once globally and reject or accept all new pods.
withinBounds, err := kl.diskSpaceManager.IsRuntimeDiskSpaceAvailable() withinBounds, err := kl.diskSpaceManager.IsRuntimeDiskSpaceAvailable()
@ -1851,7 +1851,7 @@ func (kl *Kubelet) LatestLoopEntryTime() time.Time {
return val.(time.Time) return val.(time.Time)
} }
// PLEGHealthCheck returns whether the PLEG is healty. // PLEGHealthCheck returns whether the PLEG is healthy.
func (kl *Kubelet) PLEGHealthCheck() (bool, error) { func (kl *Kubelet) PLEGHealthCheck() (bool, error) {
return kl.pleg.Healthy() return kl.pleg.Healthy()
} }