Description
/kind user-story
User Story
As an odo user, I want to be able to set the ports detected automatically by odo
when calling odo init
interactively even if the suggested Devfile has many container components So that I can have my Devfile initialized right away with the right ports without having to edit it later on.
#5863 added the ability to automatically detect my application ports from the source code and use that as ports when initializing a Devfile interactively, but odo
currently shows a warning if the Devfile has multiple container components:
odo/pkg/init/backend/applicationports.go
Lines 33 to 39 in b481d4c
As discussed in #6211 (comment), there might be issues with Devfiles that have more than one container components.
#6919 handles the simpler case of a Devfile that has at most one container component, and the goal of this issue is to handle the case where the Devfile has more than one container component when running odo init
interactively. #6923 will handle the case for the non-interactive mode.
Acceptance Criteria
- It should ...
Comments
- An idea discussed in
odo init
interactive mode: Automatic port detection based on Alizer detection #5863 (comment): figure out the container withmountSources
(the main container), and override ports for it. But this can have some limitations - Another idea is to use the
run
command and determine the container component it uses. This is what will is mentioned for handling the non-interactive mode:odo init
non-interactive mode: Allow specifying ports when Devfile has multiple container components #6923
Links
- Related Epic (mandatory):
- Feature request: Feature: Set port config while creating initial devfile #4448
/kind user-story
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
No status