-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fileutil: WritePayloads atomically for nested paths (#1028)
WritePayloads attempts to cleanup files not written by AtomicWriter by checking whether or not the file is a symlink. However, in the case of nested paths, AtomicWriter only symlinks the first component of the path, so cleanupProviderFiles would erroneously remove the file. See: https://github.com/kubernetes-sigs/secrets-store-csi-driver/blob/f851c86011e845f96184b61d53f3a88dcba0f81a/pkg/util/fileutil/atomic_writer.go#L416-L426
- Loading branch information
Showing
2 changed files
with
72 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters