-
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 OpenShift build and deploy support in odo #3300
Comments
@kadel @elsony @girishramnani @sbose78 Would be very useful to get your view on this proposal/design. |
I did plan to have both 'odo deploy' and 'odo pipelines' co-exist. So this is well-aligned! "odo build" is for deploying the code as a 'real' workload. An ideal solution to build the source into an image should look like this: "odo deploy" should only build an image, push it to a registry and deploy it, with/without use of Tekton objects.
Regarding guidance,
I went through your doc and left some comments. What are your thoughts on the image registry creds? We would need to ensure the service account which is going to do the build has the right creds linked.
|
Thanks for your comments on the proposal document. I merged some and responded to some. Please let me know if you have further comments/questions. I do understand we have a wider proposal on this area, that will cover a broader design and multiple strategies etc. However, it will not be available in devfile v2.0.0. So, the main purpose of raising this issue was to see if we feel that providing a simple implementation as dev-preview/tech-preview would be feasible/practical, and start steering us towards where we want to be with the wider proposal. I do not think we want to support all the cases with devfile v2.0.0 and instead, give ourselves more time/space to come up with a well thought through design for v2.1.0. |
Absolutely. My long comment was to layout the broader idea behind what we must eventually support, after starting small. Also, even if something is semi-baked and not ready to be "released" as a spec in devfile 2.1.0, I'll support getting "preview" features in odo and then finalize the spec - even while working on odo support for devfile 2.0.0 |
In today's meeting we raised the question of how
The linked Google doc states,
If this holds then For now we need to decide whether 'no local changes' is an absolute rule than extends to the 'remote manifest' case. |
by default This is how I see a simple e2e scenario with an inner-loop and outer-loop when using odo.
|
@kadel This looks good! |
@kadel @sbose78 Thanks for articulating the flow well. I also wanted to get some agreement on the main purpose/intent for this command as that might help us scope it properly. In my view, It is NOT the recommended way for deploying apps developed using odo. That part should be dealt by If we agree with the above can also state that
|
Coming back from a long weekend, will review! :) |
+1
Yes, but it would be great if this was somehow configurable. Currently, we don't have a standard way of how these links should be represented. We can delay this for later when we know more about how to properly deal with external links/services.
Similar to above, if the user wants to push this into separate namespace it should be possible.
+1 |
Initial design proposal for adding a odo deply command. This is related to redhat-developer#3300 Signed-off by: Neeraj Laad <neeraj.laad@gmail.com>
Are you building Here are our options:
|
@sbose78 Thanks for your thoughts. We were thinking on the same lines of adding a tag and credentials as flags with defaults referring to OpenShift scenario. Another options that is possible is to provide this for OpenShift only as a starting point and then add Kubernetes support later. |
+100 ! Thoughts, @kadel ? |
A quick question - |
@girishramnani I can see it would be useful if the developer can develop/push on docker and test the deploy part on Kubernetes cluster. I'm not sure if we can do that without having to switch the push target today. Perhaps that support can be added as a second pass. Thoughts? |
/assign @neeraj-laad @EnriqueL8 |
@neeraj-laad: GitHub didn't allow me to assign the following users: EnriqueL8. Note that only openshift members, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/assign |
Removing need-information label since the design proposal has been merged: #3368 |
we need to finalise the spec before we merge this |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/kind feature
Which functionality do you think we should add?
Add a new command (verb) to build a production-like/slim container image for their project and deploy the built image on the target platform.
odo deploy
could provide developers with a way to build a container image for their application and deploy it on a target Kubernetes deployment using the build/deploy guidance provided by the stack.The design proposal for this feature is here: #3368
Early design thoughts were captured here: https://docs.google.com/document/d/1uaFOmutO_bWMv78tPTrdCUuFEBMfz9GADyVInySDsOI
Note: This google doc is now obsolete as we have a forma design proposal.
Why is this needed?
odo provides a great way to develop containerized applications on Docker and Kubernetes platforms (including OpenShift) using applications stacks based on Devfiles. However, this is limited to development inner-loop for a project and there is no support for outer-loop - build a slim/production container image for your application and deploy the build container.
It would be very useful for application developers to be able to build a container image and perform a Kubernetes deployment for their project. This information could be provided by the devfile to avoid developers having to worry about these aspects.
The text was updated successfully, but these errors were encountered: