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

feat: add support for extra volume mounts for redis sentinel #994

Merged
merged 4 commits into from
Jun 19, 2024

Conversation

lsoica
Copy link
Contributor

@lsoica lsoica commented Jun 17, 2024

Description

Add the capability to mount extra volumes for the Redis Sentinel STS. One use case is the sentinel config file which is dynamically created at boot time so it needs write access to a file system.

Fixes #970

Type of change

  • New feature (non-breaking change which adds functionality)

Checklist

  • Tests have been added/modified and all tests pass.
  • Functionality/bugs have been confirmed to be unchanged or fixed.
  • I have performed a self-review of my own code.
  • Documentation has been updated or added where necessary.

@lsoica lsoica changed the title Allow Redis Sentinel to mount emptyDir volumes feat: Allow Redis Sentinel to mount emptyDir volumes Jun 17, 2024
Copy link

codecov bot commented Jun 17, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.78%. Comparing base (d121d86) to head (41cbb7c).
Report is 75 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #994      +/-   ##
==========================================
+ Coverage   35.20%   44.78%   +9.58%     
==========================================
  Files          19       20       +1     
  Lines        3213     2686     -527     
==========================================
+ Hits         1131     1203      +72     
+ Misses       2015     1413     -602     
- Partials       67       70       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lsoica lsoica reopened this Jun 17, 2024
@lsoica lsoica changed the title feat: Allow Redis Sentinel to mount emptyDir volumes feat: add support for extra volume mounts for redis sentinel Jun 17, 2024
Signed-off-by: laurentiusoica <[email protected]>
Signed-off-by: laurentiusoica <[email protected]>
Signed-off-by: laurentiusoica <[email protected]>
@lsoica
Copy link
Contributor Author

lsoica commented Jun 18, 2024

@drivebyer could I have your review here please?

@drivebyer
Copy link
Collaborator

drivebyer commented Jun 19, 2024

@drivebyer, could I have your review here, please?

@lsoica Sure, I will review this within today.

@drivebyer drivebyer merged commit 909d9e4 into OT-CONTAINER-KIT:master Jun 19, 2024
29 checks passed
mattrobinsonsre pushed a commit to mattrobinsonsre/redis-operator that referenced this pull request Jul 11, 2024
…AINER-KIT#994)

* feat: add support for extra volume mounts for redis sentinel

Signed-off-by: laurentiusoica <[email protected]>

* fix: add tests

Signed-off-by: laurentiusoica <[email protected]>

* fix: yaml lint

Signed-off-by: laurentiusoica <[email protected]>

* fix: docs

Signed-off-by: laurentiusoica <[email protected]>

---------

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

Successfully merging this pull request may close these issues.

Setting readOnlyRootFilesystem true makes redis-sentinel CrashLoopBackOff
3 participants