hawtio-online as a plugin #4226
Replies: 2 comments 3 replies
-
|
I would suggest that it is possible but would take some coding to be able to achieve a working application. One of the benefits of hawtio-online application being in the cluster is that it already has ready access to the sibling applications in the cluster. Having the hawtio-online plugin accessing applications from outside the cluster requires the necessary authentication - so that would be the first obstacle (not insurmountable). So, yes, it is probably doable but would require some careful coding and testing to get an application working. It certainly does not come straight out of the current releases / products. |
Beta Was this translation helpful? Give feedback.
-
|
So the construction of hawtio-online is:
The online-shell contains a bootstrap.tsx which is responsible for utilising the @hawtio/react module webpack federation and loading in the @hawtio/react built-in plugins, the kubernetes api plugin, the management api plugin and the oauth plugin. Therefore, online-shell is simply the react application container for all the existing plugins (a more complex version of the @hawtio/react example app). So if you have a custom hawtio backend/ui that is based upon the hawtio example app, then you should be able to follow the bootstrap template in order to get those plugins to appear in the same application. The only other thing online-shell provides in the Discover plugins (discover-core and discover), which provide hawtio-online's listing of the pods allowing you to click on them. Therefore, if you want this kind of UI listing the jolokia pods and providing the connect buttons then you'll want these too. At this time, I am not convinced simply importing them or loading them in as remote webpack modules would work but I have never tried. That's said forking them at this time as-is and seeing if you can get a working app up and running would be the way I would go. Assuming you got something satisfactory working with the modules locally, creating a PR etc... might be the next step to consider how they could be exported and made available as dependencies / remote modules. HTH? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to use hawtio-online as a plugin for hawtio?
Use case is to have your own hawtio backend + ui with custom plugins/auth/etc. and to be able to collect jolokia instances from the cluster using hawtio-online ui libs or something?
Beta Was this translation helpful? Give feedback.
All reactions