Commit Graph

33 Commits

Author SHA1 Message Date
Rob Kooper b48ecac166 Add missing pvname
This adds the ability to use the pvname as part of the pathpattern. The defaultpath is now a string that is parsed the same way as the user specified pathpattern.
2023-03-14 08:32:02 -05:00
Francisco Orselli 386af3ff87
Fix onDelete option for subdirectories 2022-07-06 09:45:58 +02:00
Yonatan Kahana 9015173f00 build: import GetPersistentVolumeClass from component-helpers
Signed-off-by: Yonatan Kahana <yonatankahana.il@gmail.com>
2022-04-02 01:07:15 +03:00
Humble Chirammal 7c23a7dd7a Remove unnecessary conversion of resource storage
This commit also does more corrections like error handling,
formatting, typos..etc

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-03-04 14:31:34 +05:30
Humble Chirammal e53fbc3d59 Handle error in a some conditions and also correct error message
This commit also does:
`Replace` string method changed to `ReplaceALL`

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-02-10 12:26:03 +05:30
zhoumiao b8e203661b prevent mounting of root directory
If storageClass enable pathPattern like:

`pathPattern: "${.PVC.annotations.nfs.io/storage-path}"`

but pvc without annotation would make empty `customPath` and create a pv with nfs root path.
2021-03-31 21:23:20 +08:00
Peter Micuch 9b9ac9aa8d Preserve name of the PV directory name during archiving 2021-02-25 10:10:50 +01:00
Kubernetes Prow Robot 4fce9ffaac
Merge pull request #26 from petermicuch/bump_to_k8s_1_18_0
Switched to k8s 1.18.0 as attempt to fix issue #25
2021-01-06 13:33:52 -08:00
Yonatan Kahana b4789a61c6 Enable mountOptions from StorageClass to PersistentVolume
Signed-off-by: Yonatan Kahana <yonatankahana.il@gmail.com>
2020-12-12 15:33:36 +02:00
Peter Micuch 4295196b5e Code formating updates 2020-12-11 12:19:41 +01:00
Peter Micuch a706bed5ca Switched to k8s 1.18.0 2020-12-10 23:40:32 +01:00
Robert Munteanu 4cef281f64 Add a flag to disable leader election
Related to #20.
2020-11-26 23:48:25 +01:00
Hanna Bledai 9c630ed0e1
Merge branch 'master' into Update-path-creation-and-save-data-after-removing-PV 2020-10-20 10:18:50 +03:00
moonek 9716b0bf21 Support for running controller outside of cluster 2020-10-13 11:29:03 +09:00
Hanna Bledai 513433d4b1 Update README, remove dublicated lines 2020-10-08 15:40:37 +03:00
Hanna Bledai 30d9813bdf Updated README and saved archiveOnDelete 2020-10-02 10:41:11 +03:00
Hanna Bledai a5f4a8b72b fixed : 37,102 lines 2020-09-21 16:01:14 +03:00
Hanna Bledai fe9be3d5d8 fixed : 37,102 lines 2020-09-21 15:56:30 +03:00
Hanna Bledai 9d6c66ea94 #6: Update path creation and implemented possibility save data after removing PV 2020-09-17 13:11:28 +03:00
kmova 96592d24ac update readme and go imports to new location
This commit fixes the following:
- fixes the go imports to use the new loction
- setup go modules for this project
- update the docker files to use the new binary name
- update the README to use the new repo name

Signed-off-by: kmova <kiran.mova@mayadata.io>
(cherry picked from commit 234543e14d)
2020-09-07 05:49:09 +00:00
mooncake 255839fbb8 Fix some typos
Signed-off-by: mooncake <xcoder@tenxcloud.com>
(cherry picked from commit 1ae796f9f4)
2020-09-07 05:49:08 +00:00
Matthew Wong f5924d99c9 Use kubernetes-sigs/sig-storage-lib-external-provisioner
(cherry picked from commit 14209716a3)
2020-09-07 05:49:08 +00:00
Matthew Wong a54ff504ef Fix archiveOnDelete parsing
(cherry picked from commit 9b94fa6ac2)
2020-09-07 05:49:08 +00:00
Gary Morse 125ed5e73e Adds archiveOnDelete parameter to nfs-client provisioner
(cherry picked from commit 2b11b498c5)
2020-09-07 05:49:08 +00:00
Di Weng b3eb332a8f Skip deletion if the corresponding directory is not found
(cherry picked from commit 9debe1e4d3)
2020-09-07 05:49:08 +00:00
Philippe Gagnon a36f0fe11d Propagate StorageClass MountOptions to PVs created by nfs-client-provisioner
(cherry picked from commit ec6a216177)
2020-09-07 05:49:08 +00:00
Matthew Wong de8b13b92e Revert "Add namespace extended attributes to directory"
(cherry picked from commit 700393b237)
2020-09-07 05:49:08 +00:00
Peter Grant 2ad4797674 Add namespace extended attributes to directory
(cherry picked from commit 75f9bcccbc)
2020-09-07 05:49:08 +00:00
Steve Leon 1338d50440 Incorporate K8S API changes.
- Importing API types from k8s.io/api
- Update client-go and apimachinery version
- Remove lib/helper and use the kubernetes one temporary

(cherry picked from commit 53163dd4b2)
2020-09-07 05:49:08 +00:00
Matthew Wong 1a9be4e278 Name PV as required by external provisioner contract
(cherry picked from commit 8fb0e5cc14)
2020-09-07 05:49:07 +00:00
Jackie Li c2780fa773 fix spell error & add travis build
(cherry picked from commit c916b18425)
2020-09-07 05:49:07 +00:00
Jackie Li a48c8119e4 add boilerplate required license terms
(cherry picked from commit 8bb44ce813)
2020-09-07 05:49:07 +00:00
Jackie Li 3376ae7e5f nfs-client-provisioner initial code
(cherry picked from commit 5a51799e23)
2020-09-07 05:48:52 +00:00