Unverified Commit 710b8761 authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #71797 from SenXuDC/SenXuDC-patch-1

fix typo replacee -> replace
parents 7946a9a3 48c71551
...@@ -95,7 +95,7 @@ func (s *fsStore) Exists(source checkpoint.RemoteConfigSource) (bool, error) { ...@@ -95,7 +95,7 @@ func (s *fsStore) Exists(source checkpoint.RemoteConfigSource) (bool, error) {
func (s *fsStore) Save(payload checkpoint.Payload) error { func (s *fsStore) Save(payload checkpoint.Payload) error {
// Note: Payload interface guarantees UID() and ResourceVersion() to be non-empty // Note: Payload interface guarantees UID() and ResourceVersion() to be non-empty
path := s.checkpointPath(payload.UID(), payload.ResourceVersion()) 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 // to exist, and we checkpoint as checkpoints/uid/resourceVersion/files-from-configmap
if err := utilfiles.EnsureDir(s.fs, filepath.Dir(path)); err != nil { if err := utilfiles.EnsureDir(s.fs, filepath.Dir(path)); err != nil {
return err return err
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment