Skip to content
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

Support creating multiple URLs with the same TargetPort #3710

Closed
3 tasks
yangcao77 opened this issue Aug 6, 2020 · 6 comments
Closed
3 tasks

Support creating multiple URLs with the same TargetPort #3710

yangcao77 opened this issue Aug 6, 2020 · 6 comments
Labels
area/devfile-spec Issues or PRs related to the Devfile specification and how odo handles and interprets it. kind/user-story An issue of user-story kind lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. v2 Issue or PR that applies to the v2 of odo

Comments

@yangcao77
Copy link
Contributor

/kind user-story
/area url
/area devfile

User Story

As a user I want to create multiple URLs with the same port, so that I have different path defined using different ingresses/routes for the same port, and I can create one http URL and another https URL using the same port as well.

Acceptance Criteria

  • modify the current validation on devfile TargetPort to allow multiple identical ports
  • update the logic of url creation. (i.e. any maps use port number as key should use URL name instead)
  • update the test case
@openshift-ci-robot openshift-ci-robot added kind/user-story An issue of user-story kind area/url area/devfile-spec Issues or PRs related to the Devfile specification and how odo handles and interprets it. labels Aug 6, 2020
@mik-dass
Copy link
Contributor

mik-dass commented Aug 7, 2020

As a user I want to create multiple URLs with the same port, so that I have different path defined using different ingresses/routes for the same port, and I can create one http URL and another https URL using the same port as well.

It is currently possible to create URLs on the same port.


Applying URL changes
 ✓  URL example: http://example.com created
 ✓  URL example-1: http://example-1.com created

Syncing to component nodejs
 ✓  Checking file changes for pushing [378505ns]
 ✓  No file changes detected, skipping build. Use the '-f' flag to force the build.

Pushing devfile component nodejs
 ✓  Changes successfully pushed to component
[mrinaldas@localhost project]$ odo url list
Found the following URLs for component nodejs
NAME          STATE      URL                      PORT     SECURE     KIND
example       Pushed     http://example.com       3000     false      ingress
example-1     Pushed     http://example-1.com     3000     false      ingress
[mrinaldas@localhost project]$ 

It doesn't work for devfile endpoints and gives validation error. We need to change that.

@yangcao77
Copy link
Contributor Author

To support this, we want wait for #3718 to be done first, to move url settings into to devfile.yaml. Also:

  • different containers should not have same Targetport. In kubernetes the containers in same port share single network namespace, so two containers cannot listen to same port, in same pod.

  • within a single container, multiple endpoints have same port should only expose once in service spec, as service does not support duplicate ports.

  • within a single container, two endpoints have same port but with different protocal, if it's (UDP & TCP), should be done in UDP support for devfile component services and URLs #3663

@openshift-bot
Copy link

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@openshift-ci-robot openshift-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 9, 2020
@openshift-bot
Copy link

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

@openshift-ci-robot openshift-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Dec 9, 2020
@openshift-bot
Copy link

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

@openshift-ci-robot
Copy link
Collaborator

@openshift-bot: Closing this issue.

In response to this:

Rotten issues close after 30d of inactivity.

Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.

/close

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.

@rm3l rm3l added the v2 Issue or PR that applies to the v2 of odo label Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devfile-spec Issues or PRs related to the Devfile specification and how odo handles and interprets it. kind/user-story An issue of user-story kind lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. v2 Issue or PR that applies to the v2 of odo
Projects
Archived in project
Development

No branches or pull requests

5 participants