Odo uses Alizer to suggest the best devfile for the users, together with the name and ports used by the application.
The extension should use this information to list Devfile detected by Alizer in Devfile stack selection first and suggest the default name as detected by Alizer (name field is currently missing in the odo analyze bit it will be added redhat-developer/odo#6649)
Also, part of the "Create component" flow should be selecting the correct port; the default ports should be preselected based on the odo analyze output.
As and example of how it can be done, check odo init flow
$ odo analyze -o json
[
{
"devfile": "go",
"devfileRegistry": "DefaultDevfileRegistry",
"ports": [
9000
],
"devfileVersion": "1.0.2"
}
]
Odo uses Alizer to suggest the best devfile for the users, together with the name and ports used by the application.
The extension should use this information to list Devfile detected by Alizer in Devfile stack selection first and suggest the default name as detected by Alizer (
namefield is currently missing in theodo analyzebit it will be added redhat-developer/odo#6649)Also, part of the "Create component" flow should be selecting the correct port; the default ports should be preselected based on the
odo analyzeoutput.As and example of how it can be done, check
odo initflow