-
Notifications
You must be signed in to change notification settings - Fork 243
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 should automatically create url for previewUrl #2858
Comments
I'm in favour of option #2 for Kube:
What about also adding |
+1
I was thinking about that. |
+1 @kadel @girishramnani Should we save this previewURL in the env.yaml file before push? Also what if the previewURL port is not exposed by the component? Should we fail or ignore? |
blocked on #2885 |
If needed we can save some information there.
Not sure to be honest. We might have to check the devfile spec if this is valid or verify what Che does in this situation. |
One possible way how this could be implemented is: when using OpenShift:when when using Kubernetes:when when using Docker:when When doing the equivalent of |
@kadel I also feel the creation of previewURL should be done only on the first push.
In this scenario Also on a openshift cluster
So we should detect if a URL already exists for a certain port and avoid creation of preview URLs. |
I would actually be ok if it creates url again. If It is defined in devfile it should be created. If someone wants to really delete the URL then it should be deleted from devfile.yaml Otherwise, you will have problems when someone adds previewUrl into devfile.yaml after it was pushed.
Yes |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: 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. |
/kind user-story
User Story
As a user I want to just run
odo push
after cloning project with devfile.yaml in the project root and have the project running and accessible in the cluster, without executing any other command.Acceptance Criteria
odo push
should automatically create URL for anypreviewUrl
defined in devfile.yamlodo push
against k8s cluster with devfile that haspreviewUrl
should show a warning listing all previewUrl ports and inform user that she/he needs to useodo url create
command to specify host for URLodo push --ignorePreviewUrl
should ignore allpreviewUrl
in the devfile. No Ingress or Route will be auto-created based on thepreviewUrl
s in devfile.yamlNotes
PreviewUrl documentation https://github.com/redhat-developer/devfile/blob/master/docs/devfile.md#previewurl
fail and tell the user to runodo url create --port 9080 --host mycluster.example.com
?odo url create
with--host
to create url?Example:
For the following devfile,
odo push
should automatically create URL for port 9080/kind user-story
/area OpenShift
/area url
/area devfile
/priority medium
The text was updated successfully, but these errors were encountered: