mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #35939 from xiangpengzhao/minor-cleanup
Automatic merge from submit-queue Minor cleanup: fix typos Fix some typos.
This commit is contained in:
commit
61242f7408
@ -1345,7 +1345,7 @@ func (kl *Kubelet) GetClusterDNS(pod *v1.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
|
||||||
@ -1625,7 +1625,7 @@ func (kl *Kubelet) deletePod(pod *v1.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()
|
||||||
|
Loading…
Reference in New Issue
Block a user