feat: add wait-for-directory init container template#200
Open
harness-jc wants to merge 3 commits intomainfrom
Open
feat: add wait-for-directory init container template#200harness-jc wants to merge 3 commits intomainfrom
harness-jc wants to merge 3 commits intomainfrom
Conversation
Add new template function that creates an init container to wait for a directory to exist on the Kubernetes node before starting main containers. Features: - Configurable timeout (default: 300s) and check interval (default: 2s) - Uses busybox:1.36 with full image override support - Read-only mount for safety - Progress logging with elapsed time tracking Testing: - Template smoke tests in CI - 15 unit tests via helm-unittest - Tests cover Pod structure, volume mounts, timeouts, image overrides Documentation: - New docs/INIT_CONTAINERS.md with complete usage examples - Updated README.md with link to init containers docs - Updated CHANGELOG.md for v1.5.1 Bump chart version to 1.5.1
Match test chart dependency version with library chart version bump to 1.5.1
Update all documentation and test examples to use /var/dumps as the default directory path instead of /var/lib/data for better clarity. Changes: - Updated template function examples - Updated INIT_CONTAINERS.md documentation - Updated CI test values and assertions - All tests still passing
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add new template function that creates an init container to wait for a directory to exist on the Kubernetes node before starting main containers.
Features:
Testing:
Documentation:
Bump chart version to 1.5.1