-
Notifications
You must be signed in to change notification settings - Fork 277
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
Add Java home argument to the manifest workflow #2354
Conversation
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
Signed-off-by: Zelin Hao <zelinhao@amazon.com>
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.
This is going to start adding JDK args into OpenSearch Dashboards' manifests as well, which is certainly not desired.
I think you need to do something more elaborate. Instead of hard-coding both image_map
and data: Dict = ...
maybe create a folder structure with templates and load those depending on the product and version being built, falling back to a default that doesn't have anything in it?
manifests/templates/opensearch/main/manifest.yml
manifests/templates/opensearch/2.x/manifest.yml
manifests/templates/opensearch-dashboards/main/manifest.yml
Another alternative would be to look for the previous version of the manifest, and copy image
and args
from there. Maybe simpler?
Finally, if you do go the hard-coded route, create a map of maps to split up OS and OSD.
oops you are right. I didn't think about about the dashboard situation. I will close this PR for now and dive into the solution you propose. Thanks. |
Description
Add Java home argument to the manifest workflow based on the manifest version. If it's 1.x (in our case 1.3.x primarily), it will add jdk 11 argument. If it's 2.x or 3.x, it will add jdk 17 for now. Otherwise, it will set to jdk17 by default.
Issues Resolved
#2044
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.