Automount volumes (#6698)

* Simplify AddOdoProjectVolume and AddOdoMandatoryVolume

* Rename / Clarify HandleEphemeralStorage function

* Regroup volume-specific code

* Move volume specific code to a separated function

* Add a new module configAutomount

* Automount PVC (without options)

* Add unit tests

* Separate functions

* Mount secrets

* Mount configmaps

* Specific mount path

* MountAs annotation

* Mounting cm/secret as env

* Refacto: use inAllContainers + replace result with volume

* Mounting cm/secret as subpath

* Read-only

* Integration tests

* Rename label

* Automount during odo deploy Exec command

* Add documentation

* Fix TODO

* Review

* Fix indentation

* Rename labels/annotations
This commit is contained in:
Philippe Martin
2023-04-18 13:58:45 +02:00
committed by GitHub
parent 7f25f0cf61
commit 7a721348b3
36 changed files with 1788 additions and 194 deletions

View File

@@ -95,3 +95,7 @@ $mockgen -source=pkg/exec/interface.go \
$mockgen -source=pkg/podman/interface.go \
-package podman \
-destination pkg/podman/mock.go
$mockgen -source=pkg/configAutomount/interface.go \
-package configAutomount \
-destination pkg/configAutomount/mock.go