-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The CSI spec requires the CO (= csi-sanity) to create the staging directory and the *parent* of the target directory. Kubernetes (kubernetes/kubernetes#75535) and csi-sanit have handled the target directory incorrectly by creating it. Now directory handling is standard-compliant and more strict, to catch mistakes: - the specified target directory is treated as the parent which gets created by csi-sanity, while the actual NodePublishVolume call then specifies an entry inside that directory; this was done to keep the code simple (handling both directories is the same) and to minimize API changes - os.Mkdir and os.Remove are used instead of the more forgiving os.MkdirAll and os.RemoveAll; as a result, both directories now must be different (which is what they should have been in the anyway, it just happened to work when they were identical) - the mock driver checks for non-existence of the target directory
- Loading branch information
Showing
6 changed files
with
63 additions
and
32 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
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
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