forked from kubernetes-csi/external-provisioner
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR extends the supported DataSources handled by the external-provisioner to include PVCs (Clone) and Populators (external CRDs). It removes the restriction of of the provisioner erroring when a DataSource.Kind of anything other than VolumeSnapshot is supplied (the Kubernetes API currently enforces this anyway via it's verifictaion checks) and adds handling for a DataSource.Kind of PersistentVolumeClaim. In addition for things like external populators, we provide a default case that just logs that the proviserion doesn't take any action on the received type, but if the type is supported/allowed via the Kubernetes API then the DataSource information is stll in the spec for external controllers to act upon. This allows external controllers to work (again requires Kubernetes API support), and can be formalized/added easily when an official populator controller is merged. Addresses: Issue kubernetes-csi#172
- Loading branch information
j-griffith
committed
Jan 29, 2019
1 parent
64844fb
commit 0627c2b
Showing
2 changed files
with
251 additions
and
16 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