-
Notifications
You must be signed in to change notification settings - Fork 11
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(heimdall): dumb-init to avoid leftover zombies #400
base: main
Are you sure you want to change the base?
Conversation
WalkthroughThis pull request includes updates to the Heimdall Helm Chart, specifically incrementing the version from Changes
Possibly related PRs
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 using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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
🧹 Outside diff range and nitpick comments (3)
charts/heimdall/values.yaml (1)
91-91
: Improved YAML structure forstorageClassName
The indentation of the
storageClassName
field has been corrected, aligning it properly with other fields in thevolumeClaimSpec
section. This change enhances readability and maintains a consistent YAML structure without altering the functionality.charts/heimdall/templates/heimdall/statefulset.yaml (2)
Line range hint
144-148
: Approved: Consistent use of dumb-init and improved command formattingThe changes in the main Heimdall container are well-implemented:
- Using
dumb-init
to executeheimdalld
for the main process ensures consistent process management across the container lifecycle.- The formatting changes to the command arguments improve readability without altering functionality.
For consistency with the init container, consider using the full path to
dumb-init
:- exec /storage/dumb-init -- heimdalld start \ + exec /storage/dumb-init -- heimdalld start \This minor change ensures that the same
dumb-init
binary is used in both containers.
Line range hint
211-216
: Approved: Consistent use of dumb-init in REST server and improved command formattingThe changes in the Heimdall REST server container are well-implemented and consistent with the other containers:
- Using
dumb-init
to executeheimdalld rest-server
ensures consistent process management across all containers.- The formatting changes to the command arguments improve readability without altering functionality.
For consistency with the other containers, consider using the full path to
dumb-init
:- exec /storage/dumb-init -- heimdalld rest-server \ + exec /storage/dumb-init -- heimdalld rest-server \This minor change ensures that the same
dumb-init
binary is used in all containers.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
📒 Files selected for processing (4)
- charts/heimdall/Chart.yaml (1 hunks)
- charts/heimdall/README.md (1 hunks)
- charts/heimdall/templates/heimdall/statefulset.yaml (3 hunks)
- charts/heimdall/values.yaml (1 hunks)
✅ Files skipped from review due to trivial changes (1)
- charts/heimdall/README.md
🧰 Additional context used
🔇 Additional comments (3)
charts/heimdall/Chart.yaml (1)
18-18
: LGTM: Version increment is appropriate.The chart version has been correctly incremented from 1.2.4 to 1.2.5, which is consistent with semantic versioning for a new feature addition (dumb-init) as mentioned in the PR title.
Let's verify if this version change is consistent across other relevant files:
✅ Verification successful
Version consistency confirmed across relevant files.
The version
1.2.5
is correctly updated inChart.yaml
andREADME.md
, and no occurrences of the old version1.2.4
remain.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check if the version 1.2.5 is consistently used across relevant files # Test: Search for the new version number in other files rg --type yaml --type md '1\.2\.5' # Test: Ensure no occurrences of the old version remain rg --type yaml --type md '1\.2\.4'Length of output: 554
charts/heimdall/templates/heimdall/statefulset.yaml (2)
66-68
: Excellent addition of dumb-init for improved process managementThe incorporation of
dumb-init
is a great improvement to the container's process management. Here's why:
- It ensures proper signal handling and zombie process reaping.
- Moving
dumb-init
to a shared storage location (/storage/dumb-init
) makes it available for use in other containers.- Using
dumb-init
to executeheimdalld
during initialization (line 74) is consistent with the goal of preventing zombie processes.These changes will lead to more robust and reliable container behavior.
Also applies to: 74-74
Line range hint
1-280
: Summary: Excellent implementation of dumb-init for improved process managementThe changes in this file consistently implement
dumb-init
across all containers (init, main Heimdall, and REST server). This improvement will:
- Ensure proper signal handling and zombie process reaping.
- Lead to more robust and reliable container behavior.
- Reduce the risk of resource leaks due to orphaned processes.
The minor formatting changes also improve the readability of the configuration without altering its functionality.
Overall, these changes represent a significant improvement in the Heimdall deployment's process management and maintainability.
Summary by CodeRabbit
New Features
dumb-init
for better signal handling in the Heimdall daemon.Documentation
Chores
values.yaml
configuration file for better readability.