-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
36 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
7 changes: 7 additions & 0 deletions
7
modules/031-local-path-provisioner/images/local-path-provisioner/patches/README.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Patches | ||
|
||
## Fix DirectoryOrCreate | ||
|
||
Use `type: Directory` instead of `type: DirectoryOrCreate` for created PVs | ||
to avoid the situations when initial storage is broken and unmounted. | ||
https://github.com/rancher/local-path-provisioner/pull/224 |
13 changes: 13 additions & 0 deletions
13
...ocal-path-provisioner/images/local-path-provisioner/patches/fix-directory-or-create.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/provisioner.go b/provisioner.go | ||
index b6591d0..be1aa9b 100644 | ||
--- a/provisioner.go | ||
+++ b/provisioner.go | ||
@@ -215,7 +215,7 @@ func (p *LocalPathProvisioner) Provision(opts pvController.ProvisionOptions) (*v | ||
} | ||
|
||
fs := v1.PersistentVolumeFilesystem | ||
- hostPathType := v1.HostPathDirectoryOrCreate | ||
+ hostPathType := v1.HostPathDirectory | ||
|
||
valueNode, ok := node.GetLabels()[KeyNode] | ||
if !ok { |