You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ odo list
APP NAME TYPE SOURCE STATE
app django python file://./ Pushed
app nodejs nodejs file://./ Pushed
Created url for django component from the component directory of nodejs component
$ odo url create --component django
✓ URL django-8080 created for component: django
To create URL on the OpenShift Cluster, please use `odo push`
$ odo url list
Found the following URLs forcomponent nodejsin application app:
NAME STATE URL PORT
django-8080 Not Pushed :// 8080
There are local changes. Please run 'odo push'.
$ pwd
/home/dshah/src/nodejs-ex
Upon doing odo push, the url create above redirects to the application in nodejs component.
But using --context flag with odo url create --component produces expected results
$ odo url create django-url --component django --context ~/src/django-ex
✓ URL django-url created for component: django
To create URL on the OpenShift Cluster, please use `odo push`
nodejs-ex - master! $ odo push --context ~/src/django-ex
$ pwd
/home/dshah/src/nodejs-ex
Actual behavior
Creating a url for a component while executing command from a directory belonging to different component yields a url for latter rather than former.
Expected behavior
odo url create -h should mention that --component needs a --context flag.
OR
odo url create -h should mention that the component in pwd will be adhered to instead of the name provided to --component flag.
Any logs, error output, etc?
The text was updated successfully, but these errors were encountered:
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.
[kind/bug]
What versions of software are you using?
odo version
: masterHow did you run odo exactly?
django
component from the component directory ofnodejs
componentodo push
, the url create above redirects to the application innodejs
component.--context
flag withodo url create --component
produces expected resultsActual behavior
Creating a url for a component while executing command from a directory belonging to different component yields a url for latter rather than former.
Expected behavior
odo url create -h
should mention that--component
needs a--context
flag.OR
odo url create -h
should mention that the component inpwd
will be adhered to instead of the name provided to--component
flag.Any logs, error output, etc?
The text was updated successfully, but these errors were encountered: