Skip to content

feat: add wait-for-directory init container template#200

Open
harness-jc wants to merge 3 commits intomainfrom
feature/wait-for-directory-init-container
Open

feat: add wait-for-directory init container template#200
harness-jc wants to merge 3 commits intomainfrom
feature/wait-for-directory-init-container

Conversation

@harness-jc
Copy link
Copy Markdown
Collaborator

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

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
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.

1 participant