-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for volume populators (#2482)
* Add support for volume populators in CDI This commit enables the use of volume populators in CDI, so datavolume-owned PVCs can be populated using custom logic. Volume populators are CRDs used to populate volumes externally, independently of CDI. These CRDs can now be specified using the new DataSourceRef API field in the DataVolume spec. When a DataVolume is created with a populated DataSourceRef field, the datavolume-controller creates the corresponding PVC accordingly but skips all the population-related steps. Once the PVC is bound, the DV phase changes to succeeded. Signed-off-by: Alvaro Romero <alromero@redhat.com> * Modify CDI test infrastructure to support testing of external populators This commit introduces several changes to CDI ci to support the testing of DataVolumes with external populators: * A sample volume populator is now deployed in the test infrastructure, in a similar way as bad-webserver or test-proxy. This populator will be used in functional tests from now on. * A new test file with external population tests has been introduced in the tests directory Signed-off-by: Alvaro Romero <alromero@redhat.com> * Update dependencies to include lib-volume-populator library Signed-off-by: Alvaro Romero <alromero@redhat.com> * Add functional tests for proper coverage of external population of DataVolumes Signed-off-by: Alvaro Romero <alromero@redhat.com> * Minor fixes on external-population logic for DataVolumes: * Added comments for exported structs * Removed non-inclusive language * Improved error messages in webhooks * Fixed logic on datavolume-controller Signed-off-by: Alvaro Romero <alromero@redhat.com> * Improve DataVolume external-population logic when using the old 'DataSource' API This commit introduces several changes into the datavolume external-population controller to improve its behavior when using the DataSource field. It also introduces minor fixes on the generic populator logic. Signed-off-by: Alvaro Romero <alromero@redhat.com> * Add unit tests for external-population controller and DV admission Signed-off-by: Alvaro Romero <alromero@redhat.com> Signed-off-by: Alvaro Romero <alromero@redhat.com>
- Loading branch information
Showing
294 changed files
with
18,521 additions
and
3,747 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
Oops, something went wrong.