-
Notifications
You must be signed in to change notification settings - Fork 243
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
Support exec command for deploy #5701
Comments
Try to have similar reusable code for |
The example devfile uses a container component to execute the exec command. In odo, we spin up such a container in the inner loop only. So for an How do we want to handle this situation? @kadel |
Good questions. |
That would mean creating a k8s job with the spec of the specified container. Sounds doable at first glance. But certain attributes of a Devfile container component like
OK. |
Should the container continue to run even after the task is done? If we use k8s jobs to run exec command, the pod running the job will terminate as soon as the task is done? |
User Story
exec
command as adeploy
command (or as part of thecomposite
command that is defined asdeploy
command as it is allowed by devfile specAcceptance Criteria
/kind user-story
Example
devfile example with
exec
command in deployhttps://github.com/kadel/demo-odo-springboot/blob/d5956f5a8af41ae28dc4d97e0d9c03c9250c1e27/devfile.yaml#L114
/area devfile-spec
The text was updated successfully, but these errors were encountered: