-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
fix: Add volumeMounts only if defaultStorage is enabled #7911
base: develop
Are you sure you want to change the base?
Conversation
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThe recent updates to the Helm chart introduce conditional volume mounts based on configuration settings, specifically focusing on whether Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
Please update chart version |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (8)
- changelog.d/20240518_021532_jacky.lam_helm_defaultstorage.md (1 hunks)
- helm-chart/Chart.yaml (1 hunks)
- helm-chart/templates/cvat_backend/server/deployment.yml (2 hunks)
- helm-chart/templates/cvat_backend/utils/deployment.yml (2 hunks)
- helm-chart/templates/cvat_backend/worker_annotation/deployment.yml (2 hunks)
- helm-chart/templates/cvat_backend/worker_export/deployment.yml (2 hunks)
- helm-chart/templates/cvat_backend/worker_import/deployment.yml (2 hunks)
- helm-chart/values.yaml (1 hunks)
Files skipped from review due to trivial changes (3)
- changelog.d/20240518_021532_jacky.lam_helm_defaultstorage.md
- helm-chart/Chart.yaml
- helm-chart/templates/cvat_backend/utils/deployment.yml
Additional comments not posted (5)
helm-chart/templates/cvat_backend/server/deployment.yml (1)
Line range hint
68-85
: The conditional logic for volume mounts is correctly implemented based on thedefaultStorage.enabled
anddisableDistinctCachePerService
settings. This ensures that volume mounts are only added when necessary, aligning with the PR's objectives to prevent unnecessary volume mounts whendefaultStorage
is disabled.helm-chart/templates/cvat_backend/worker_export/deployment.yml (1)
Line range hint
64-84
: The conditional volume mounts in the worker export deployment are correctly implemented. This change ensures that the volume mounts are consistent with thedefaultStorage.enabled
anddisableDistinctCachePerService
settings, which is crucial for maintaining the integrity and isolation of data across different services.
[APROVED]helm-chart/templates/cvat_backend/worker_import/deployment.yml (1)
Line range hint
64-84
: The implementation of conditional volume mounts in the worker import deployment mirrors the changes in other components, maintaining consistency across the board. This is essential for ensuring that volume mounts are handled correctly based on the configuration settings provided invalues.yaml
.helm-chart/templates/cvat_backend/worker_annotation/deployment.yml (1)
Line range hint
64-84
: The conditional volume mounts for the annotation worker are implemented in line with the changes in other deployment files. This consistency is key to ensuring that all components behave predictably under the same configuration conditions, particularly concerning volume management.helm-chart/values.yaml (1)
270-275
: The comments added to thedefaultStorage
configuration provide clear guidance on the implications of disablingdefaultStorage
. This is a valuable addition for users who need to manually manage volume mounts, ensuring they are aware of the necessary steps to maintain functionality.
f45e7ab
to
c50d2d1
Compare
Quality Gate passedIssues Measures |
Motivation and context
These volume mounts are conditionally enabled in one initContainers but not others. When using a custom PVC, disabling
defaultStorage
will not prevent these volumes from being mounted. This causes an issue where themountPath
keys are not enabled when we add the custom VMs underadditionalVolumeMounts
.How has this been tested?
Checklist
develop
branch(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)
License
Feel free to contact the maintainers if that's a concern.
Summary by CodeRabbit
Bug Fixes
defaultStorage
is enabled.Chores
0.13.0
to0.13.1
.values.yaml
regarding manual volume mounting whendefaultStorage
is disabled.