From 48c715515ea13899fc0ae18fbd124002816a0ae4 Mon Sep 17 00:00:00 2001 From: SenXuDC Date: Thu, 6 Dec 2018 23:01:52 +0800 Subject: [PATCH] Update fsstore.go --- pkg/kubelet/kubeletconfig/checkpoint/store/fsstore.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubelet/kubeletconfig/checkpoint/store/fsstore.go b/pkg/kubelet/kubeletconfig/checkpoint/store/fsstore.go index 382f04b5379..26c48d06f26 100644 --- a/pkg/kubelet/kubeletconfig/checkpoint/store/fsstore.go +++ b/pkg/kubelet/kubeletconfig/checkpoint/store/fsstore.go @@ -95,7 +95,7 @@ func (s *fsStore) Exists(source checkpoint.RemoteConfigSource) (bool, error) { func (s *fsStore) Save(payload checkpoint.Payload) error { // Note: Payload interface guarantees UID() and ResourceVersion() to be non-empty path := s.checkpointPath(payload.UID(), payload.ResourceVersion()) - // ensure the parent dir (checkpoints/uid) exists, since ReplaceDir requires the parent of the replacee + // ensure the parent dir (checkpoints/uid) exists, since ReplaceDir requires the parent of the replace // to exist, and we checkpoint as checkpoints/uid/resourceVersion/files-from-configmap if err := utilfiles.EnsureDir(s.fs, filepath.Dir(path)); err != nil { return err