-
Notifications
You must be signed in to change notification settings - Fork 244
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
use Devfiles for s2i components #4281
Comments
@girishramnani you might want to consider #4201 while working on this. Basically, |
|
Need #4369 to go in first, right @girishramnani ? |
Just so its documented - I dont think |
Also this issue will break all s2i components - no existing s2i components would work. |
I forgot to mention that in the issue :-(. This can't break existing s2i components without any warning. |
we can do a Y stream release to signify such a huge breaking change @kadel |
We can deprecate s2i components using an early PR that goes in the week’s release and then this PR can be released in later version |
Y stream should not break backward compatibility.
that is too quick. BTW the original idea for this PR was to just make sure that new components will be all based on Devfile. Removal of LocalConfig components would happen later only after we are sure that almost no one is using it. I have updated Acceptance Criteria to include this |
it should be part of the initial work. Some components won't work without |
its supported now @dharmit |
Breaking changeCurrently a converted s2i component would already have a url defined even if the original s2i component didn't have one, this was done to keep the behavior consistent between s2i and devfile cmps, as a new devfile component creates the url without a user doing "odo url create" |
removing all duplicate tests that are present in devfile and s2i both - Criteria of removal is to exactly match the title of the test and instructions in the tests Current situation - 10 integration tests failing, 12 e2e tests failing. |
Currently I cannot debug e2e tests because they are timing out on prow. |
Fixed all the tests but gingko is timing out, I tried to reproduce this timeout but it didn’t happen so thinking about other ways to fix this |
Some questions asked so far |
Need to add help and update docs |
But I went through the odo.dev docs, there are 20 pages of doc and nearly no mention of —s2i. We need 2-3 paragraphs explaining —git, —binary and other 2 issues. And the demo video needs to change. |
Current plan - |
Docs #4683 |
Use devfile.yml for s2i components instead of LocalConfig.yaml
Motivation
Odo has two types of components, Devfile and s2i. Currently, each component type has its own separate code path. This means that each command needs to understand how to do the action for Devfile and also for s2i. Technically it is possible to create a Devfile that will mimic what odo is doing with s2i. We already have this in
odo utils convert
. Odo should leverage that logic and start treating s2i components as regular Devfile. This will reduce the odo code base and will make code maintenance a lot simpler.odo create --s2i
odo create --s2i
command would no longer generateLocalConfig
(./odo/config.yml
). Instead, it should just generatedevfile.yml
, and optionally./odo/env.yml
) depending on what will be required.all other commands
The rest of the commands (like
odo storage
,odo url
, etc..) should not need to know anything about s2i. For them, it will be just another Devfile component.Acceptance Criteria
odo create --s2i
should use the s2i to devfile tool to build the devfile on the fly and follow devfile flow in the future.LocalConfig
s2i component it still needs to workThe text was updated successfully, but these errors were encountered: