Closed as not planned
Description
Which area/kind this issue is related to?
/area alizer
Issue Description
This is part of EPIC #1154 and is focusing on the update of alizer's strategies by supporting devfile port detection. As a result, someone will be able to choose the devfile port detection as part of the port-detection strategy and they will be able to get any ports defined inside a devfile. The steps required are the following:
- Create a new const inside the
model.go
:
const Devfile PortDetectionAlgorithm = 3
-
Update the
component
command'sgetPortDetectionStrategy
to take into account themodel.Devfile
as part of the strategy. -
In every
DoEnrichComponent
function we should update theswitch
in order to include themodel.Devfile
case. The enrichers are the following:dotnet_enricher.go
go_enricher.go
java_enricher.go
javascript_enricher.go
php_enricher.go
python_enricher.go
-
The
model.Devfile
case should call theGetPortsFromDevfile
function created in Implement alizer support for devfile port detection #1331.
Acceptance Criteria
- The new strategy option of
model.Devfile
has been added to thecompose
command. - All enrichers are up-to-date and they support the new strategy option.
- Test cases are created for changes in each enricher and for
getPortDetectionStrategy
- Update port detection and other documentation.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done ✅