Closed eriknelson closed 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.
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.
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.
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 localconfig.dev.json
file currently, but inside of a cluster, this is going to require a lightweight server that has a few responsibilities:ConfigMap
, encode that data and anything else that the UI would need to know into a base64 encodedmigMeta
object, and then serve the apps html template with that encoded blob + the script tag to load the app.Overall, this issue encompasses: