migtools / mig-ui

Openshift Migration UI
Apache License 2.0
10 stars 31 forks source link

UI should be deployable and run independently from a cluster #258

Closed eriknelson closed 5 years ago

eriknelson commented 5 years ago

A user should be able to deploy the UI easily into a cluster using some kind of installation script, whether that's ansible or bash. We need a way to provide configuration data to the front end via migMeta (things like the clusterAPI address, where to create secrets, what namespace the API objects should be created in, etc.). Webpack delivers this data to the front-end by reading a local config.dev.json file currently, but inside of a cluster, this is going to require a lightweight server that has a few responsibilities:

Overall, this issue encompasses:

eriknelson commented 5 years ago

I had a branch that I had done a bunch of work on the serverside of this here: https://github.com/eriknelson/mig-ui/commit/48f3c6434bcdca62e59d0ac62a0bafeac353c608

Plan is to rebase and use what's here.

eriknelson commented 5 years ago

WIP PR here: https://github.com/fusor/mig-ui/pull/265

Server + Image + Ansible and templates are mostly complete. We are currently blocked on testing, because CORS is still not supported on 4.x clusters. We're hopeful this will be implemented for us relatively quickly so we will be able to test this.

eriknelson commented 5 years ago

An unsupported solution is in place and confirmed to be working, we have a JIRA against OCP requesting CORS support be officially supported in the 4.2 timeframe. I've also confirmed the 3.x CORS configuration works as expected, so I was able to perform a full login and migration from a deployed UI in a 4.1 cluster.

We're still seeing some static file issues with the CSS that's baked into the production build. Working to resolve that as the last integration problem before merge to master.