-
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
self linking of the component should not be there using odo link #1052
Comments
Hi @mohitsuman This indeed should not be possible, but I am curious to what led you to executing such a command? Thanks |
Hi @geoand , We are working on OpenShift extension which uses odo under the hood. Now in the VSCode UI, when the user is given a list of components to link, it can be have the same component in the list and running the We for now are handling this condition on UI and not showing the same component in the list to select, but it reminded us that |
@mohitsuman Thanks for the insight! |
I think this is something the CLI should probably not control. In this case, I think this is more a feature for the VSCode plugin and I think it solved the right way, by filtering the component there. In any case, there's also the possibility to have the same component name in a different application, so if at any point, this issue is solved in |
Shouldn't odo check that user is not doing something stupid on invalid? Of course, it has to be smart enough to recognize that you are linking to a different component with the same name and allow that. |
I agree that odo should try and prevent things that don't make sense |
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 |
@dharmit any update for this ? |
@mohitsuman I'm adding this to our team discussion. Mainly because this is something we need to discuss for odo v2 as well even though this issue was opened for v1. |
@dharmit sure thing, let us know the discussion conclusion. |
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 |
@mohitsuman I'm closing this one since it's being tracked as an acceptance criterion on #3423. /close |
@dharmit: 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. |
@mohitsuman this has been fixed by #4777. |
[kind/bug]
What versions of software are you using?
odo version
: odo v0.0.16 (82968cb)How did you run odo exactly?
Running odo from the binary.
Actual behavior
If I do
odo link
on the component and pass the same component name in the --component parameter, it works.e.g. odo link nodejs --component nodejs
Expected behavior
We should handle this condition and make sure that self linking of the component is not allowed or a warning is shown.
The text was updated successfully, but these errors were encountered: