-
Notifications
You must be signed in to change notification settings - Fork 593
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
Bug 1837677: open the VNC console in a new window #5548
Conversation
@glekner: This pull request references Bugzilla bug 1837677, which is invalid:
Comment 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. |
@@ -0,0 +1,56 @@ | |||
import * as React from 'react'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rawagner can you review :)
@glekner great 🍰 I liked better the option of the new window with no buttons at all ( just the terminal ) can you make a screenshot of that option too ? |
This is great @glekner ! Please take a look at this design suggestion I have for rearranging the buttons Thanks. |
() => { | ||
externalWindow.current = window.open( | ||
'', | ||
'', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add the vmi name + "Console" as the window name ?
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: glekner, yaacov The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Looks pretty good, but it has few limitations which could be fixed.
IMO this is very counter-intuitive and we would get complaints about this soon. cons
We should have referenceable URL and proper standalone window for this to be user friendly. Luckily something similar has already been done and is used in the console (che workspaces terminal): they also have an option to open the terminal in standalone window at this is how the init step looks (see the PR for other examples): can we get inspired by this and do something similar? And have our own url with the vm name like: |
Notes:
This is kubevirt backend endpoint for vnc [1] |
yes we are using that internally - although our console is also for serial and rdp. Do you want to encode the selected console into the url? Like also, not sure we should be changing vm -> vmi endpoint, because the consoles page should be also accessible when the vmi is non existent |
sounds like a good idea. do we need to handle permissions to those namespaces or they will already be dealt with? |
+1, we could have the same approach like the details page with StatusBox and show the appropriate error or |
Closing in favour of #5593 |
This enables opening the vnc console in a new window.
If the main window context is changed (e.g. move from console to details tab) then the new window will close aswell.
Screens: