-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vmsingle: properly add volumes with non-empty storageDataPath
Previously, operator inconsistenetely added volumeMounts for vmsingle deployment, if spec.storageDataPath is set. It added only volumeMount without volumes. And it produces runtime deployment creation error. Intentional behaviour and the main puprose of storageDataPath option is to allow to override storage settings configured by operator. This commit skips adding volumeMounts for this case and fixes runtime error. Also it adds additional check to the validation webhook, which validates if volumes and volumeMounts is set for non-mepty storageDataPath. Related issue: #1158 Signed-off-by: f41gh7 <[email protected]>
- Loading branch information
Showing
6 changed files
with
72 additions
and
26 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