-
Notifications
You must be signed in to change notification settings - Fork 373
Make Genie agent container's entry point and command dynamic #1251
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
Conversation
when: | ||
def entryPointTemplate = ["my", "entrypoint"] | ||
def commandTemplate = ["my", "command"] | ||
environment.withProperty( |
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.
What happens if the property is malformed?
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.
In that case, the Titus container will still launch, but it will fail finally. This change is mainly intended to help with testing and rolling out changes related to the entry point or command. The default values are stored in property files like application.yml, so we don't anticipate needing a long-term fast property for this scenario.
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.
LGTM. Docs, functionality, and tests all align. Only one question on error handling if the property isn't valid csv.
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.
Looks good, thanks
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.
Overall LGTM. Something nice to have is minor improvements on logging for monitoring and debugging purposes.
Summary
Make the entry point and command properties dynamic for Titus Launcher
What changed?
genie.agent.launcher.titus.entry-point-template
genie.agent.launcher.titus.command-template