Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add image population #10

Merged
merged 11 commits into from
Aug 23, 2022
Merged

Add image population #10

merged 11 commits into from
Aug 23, 2022

Conversation

afritzler
Copy link
Member

@afritzler afritzler commented Aug 18, 2022

Proposed Changes

  • Add image population
    Add support for the dataSourceRef in a PVC of type Volume. The populator machinery will then use the .spec.Image from the Volume object and populate via a shadow a PVC a PV (of VolumeMode block device) and re-map the PV claim to the original PVC.
  • Add tests
  • Add Docker image for image populator
  • Add workflow for releasing image for populator

The main controller logic is derived from the Kubernetes volume populator project and adapted to use the controller-runtime controller flow: https://github.com/kubernetes-csi/lib-volume-populator/blob/master/populator-machinery/controller.go

@afritzler afritzler force-pushed the enh/image-population branch from 9595b85 to 8b0af00 Compare August 18, 2022 14:54
@afritzler afritzler added the enhancement New feature or request label Aug 18, 2022
@afritzler afritzler force-pushed the enh/image-population branch from 8b0af00 to f85f9ab Compare August 18, 2022 15:09
@afritzler afritzler force-pushed the enh/image-population branch 2 times, most recently from 026845f to 73f44f5 Compare August 18, 2022 22:42
@github-actions github-actions bot added size/XL and removed size/XXL labels Aug 18, 2022
@afritzler afritzler force-pushed the enh/image-population branch from 4cae8c2 to 0ae604c Compare August 22, 2022 14:37
@github-actions github-actions bot added size/XXL and removed size/XL labels Aug 22, 2022
@afritzler afritzler force-pushed the enh/image-population branch from 5a67757 to cc8d4a3 Compare August 22, 2022 15:47
@afritzler afritzler force-pushed the enh/image-population branch from 2c59ce5 to 844bde0 Compare August 22, 2022 15:55
@afritzler afritzler force-pushed the enh/image-population branch from 2ceb987 to f6c2680 Compare August 23, 2022 09:32
@afritzler afritzler merged commit 26048ce into main Aug 23, 2022
@afritzler afritzler deleted the enh/image-population branch August 23, 2022 09:36
lukas016 pushed a commit to opensovereigncloud/ceph-provider that referenced this pull request May 23, 2024
* Add image population

* Add `ImagePopulatorReconciler`

- Add an own implementation of the populator controller.
- Fix deps

* Add shadow pvc for population

* Add image populator tests

* First working end to end test

* Register image populator reconciler in main

* Add docker build workflow for populator and manager

* Fix tests

* Add more test cases

* Improve watch setup by extracting PVC UID from objs

- Extended test coverage

* Fix docker build workflow

Co-authored-by: Lukas Frank <[email protected]>

Co-authored-by: Lukas Frank <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants