Skip to content

Add support for devfile, port and name detection #2781

@kadel

Description

@kadel

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"
	}
]

Metadata

Metadata

Type

No type

Projects

Status

✅ Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions