Skip to content
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

Merged
merged 8 commits into from Nov 13, 2018

Conversation

abhi-g
Copy link
Member

@abhi-g abhi-g commented Nov 12, 2018

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 Reviewable

@abhi-g
Copy link
Member Author

abhi-g commented Nov 12, 2018

/test kubeflow-presubmit

@jlewi
Copy link
Contributor

jlewi commented Nov 12, 2018

This is great.

@jlewi
Copy link
Contributor

jlewi commented Nov 12, 2018

/lgtm
/approve

/hold
in case @kunmingg wants to review.

Copy link
Contributor

@kunmingg kunmingg left a 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.

@kunmingg
Copy link
Contributor

/lgtm
/approve

@k8s-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kunmingg
Copy link
Contributor

/hold cancel

@k8s-ci-robot k8s-ci-robot merged commit 308d270 into kubeflow:master Nov 13, 2018
@abhi-g abhi-g deleted the redirect branch November 13, 2018 21:17
rogaha pushed a commit to rogaha/kubeflow that referenced this pull request Nov 20, 2018
…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
saffaalvi pushed a commit to StatCan/kubeflow that referenced this pull request Feb 11, 2021
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[kfctl] Web app redirect after IAP up.
5 participants