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
Redirect deployer webapp page to Kubeflow dashboard after its ready #1945
Conversation
/test kubeflow-presubmit |
This is great. |
/lgtm /hold |
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.
Looks great! only 1 comment.
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jlewi, kunmingg The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
…ubeflow#1945) * Wait for dashboard to get ready and redirect * Fixed javascript compilation issues * Fixed CORS issue with redirection using a hack for image fetching * add comment to explain reliance on JupyterHub logo * Formatting fix * Added a comment explaining CORS bypass * Added waiting message for dashboard redirect. * Add a 10s wait between retries
…ubeflow#1945) * Wait for dashboard to get ready and redirect * Fixed javascript compilation issues * Fixed CORS issue with redirection using a hack for image fetching * add comment to explain reliance on JupyterHub logo * Formatting fix * Added a comment explaining CORS bypass * Added waiting message for dashboard redirect. * Add a 10s wait between retries
fixes #1420
Fetching a GET on the dashboard URI which belongs in a different domain from the deployer in general gets prevented by the browser due to CORS prevention. This fix gets around that issue by leveraging the fact that a static image fetch hosted at the other dashboard site would not be prevented by the browser. Once that image is able to load within the deployer, it can redirect the user to the dashboard.
This change is