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

VEC-556 detect memory and set jvm options #32

Open
wants to merge 22 commits into
base: main
Choose a base branch
from

Conversation

arrowplum
Copy link
Contributor

@arrowplum arrowplum commented Mar 12, 2025

  • Detect memory and set java limits in init container
  • Attempt at validating config especially allowing missing optional but enforcing required
  • Many more tests

davi17g and others added 6 commits March 4, 2025 20:30
- Add JVM options calculation based on container memory limits
- Add test coverage for JVM options generation
- Update Helm chart to support JVM options configuration
- Improve error handling and logging for JVM option generation
- Added detailed logging for heartbeat configuration checks and seed generation.
- Enhanced error handling to skip optional heartbeat setup gracefully.
- Updated Helm chart to include a new volume for aerospike-secret and improved init container configuration.
- Refactored code to streamline heartbeat seed DNS name generation and configuration.
- Introduced service account token path for Kubernetes integration.
- Enhanced test environment setup with mock service account token.
- Improved JVM options calculation and testing, ensuring proper handling of environment variables.
- Removed unnecessary podinfo volume from Helm chart configuration.
- Updated logging for JVM options and configuration file writing.
…or Search

- Added mandatory field checks for configuration in writeConfig function.
- Improved error handling for missing or invalid configuration fields.
- Expanded test cases to cover minimal and maximal configuration scenarios.
- Introduced YAML unmarshalling to verify configuration format in tests.
- Updated logging and error messages for better clarity during configuration writing.
- Updated JVM options management to write options to a file instead of using environment variables.
- Introduced a new function to handle writing JVM options with proper error handling and file permissions.
- Enhanced unit tests for JVM options to verify file content and permissions.
- Removed the deprecated ConfigMap for JVM options from Helm chart.
- Updated statefulset configuration to read JVM options from the new file location.
@arrowplum arrowplum changed the title feat: Enhance JVM options calculation and testing for init container VEC-556 detect memory and set jvm options Mar 14, 2025
- Fixed the image tag syntax in the init container configuration.
- Streamlined the conditional port configuration for service, manage, and interconnect sections in the statefulset template.
- Updated the command for the main container to use JAVA_TOOL_OPTIONS instead of JAVA_OPTS for better compatibility.
- Introduced a new workflow to automate testing of the init container.
- Configured the workflow to run on pushes and pull requests to the main branch.
- Set up Go environment and installed dependencies before executing tests.
…container workflow (unbreaks signing action)

- Changed the path for the GPG setup action in the build-chart-jfrog workflow.
- Added permissions for reading contents and writing pull requests in the test-init-container workflow.
@arrowplum arrowplum requested review from hev and ashishshinde March 14, 2025 17:56
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.

2 participants