-
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
odo init
non-interactive mode: Allow specifying ports when Devfile has at most one container component
#6919
Comments
/duplicate |
/triage duplicate |
/close |
@kadel: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
odo init --port
odo init --port
: Single container component scenario
After a discussion with Tomas, re-opened the issue and scoped it to handling only the single container component scenario. |
odo init --port
: Single container component scenarioodo init
non-interactive mode: Allow specifying ports when Devfile has at most one container component
Grooming (2023-06-22) Closed in favor of #6925 |
/kind user-story
User Story
As an odo user, I want to be able to set the ports when calling
odo init
non-interactively 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 as a user, I also want to be able to specify such port(s) non-interactively.
This is useful to support the port detection feature in the IDE extensions as well (redhat-developer/vscode-openshift-tools#2781).
As discussed in #6211 (comment), there might be issues with Devfiles that have more than one container components, but this issue will be addressed in #6264.
The goal of this issue is to handle the case where the Devfile has only one container component, which should cover most of the Devfile stacks in the default registry.
Acceptance Criteria
[ ] odo init shoudl have paramersts to allow overriding ports in the devfile[ ] to know in which container the port shoudl be added odo init should take an optional argumentcommand-name
--port
flag, which would allow users to specify several ports--port
flagdebug
ordebug-*
ports?Links
odo init
interactive mode: allow setting detected ports when Devfile has multiple container components #6264/kind user-story
The text was updated successfully, but these errors were encountered: