[ 
https://issues.apache.org/jira/browse/YUNIKORN-2606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17868467#comment-17868467
 ] 

Denis Coric commented on YUNIKORN-2606:
---------------------------------------

As a part of the YHS, we are implementing custom components for the YuniKorn 
web. The idea is to make minimal changes to the original and enable a 
plug-and-play way of loading external components into it by using the Module 
Federation.

By default, YuniKorn Web will work as is, but when specific ENV params are set 
during the build time it will enable loading components over the network (from 
the YHS server) that will have additional features enabled by the YHS itself.

Expected changes in the YuniKorn Web (it will show in the PR, but we will add 
more details in the Jira and I guess in the docs as well): 
- enabling dynamic components that will be set with the change of env variables
- adding module federation dependency
- adding a predefined list of params that will enable loading external modules 
and logic in the code to enable that

> Implement env variable (on build time) for to use Module Federation for 
> loading custom sidebar component
> --------------------------------------------------------------------------------------------------------
>
>                 Key: YUNIKORN-2606
>                 URL: https://issues.apache.org/jira/browse/YUNIKORN-2606
>             Project: Apache YuniKorn
>          Issue Type: Sub-task
>          Components: webapp
>            Reporter: Denis Coric
>            Assignee: Denis Coric
>            Priority: Major
>         Attachments: image-2024-05-07-18-25-08-070.png
>
>
> -We need a link to the external application that will display logs and more 
> details about the application or the pod itself.- 
> -External URLs can be defined in the form of a string template that can be 
> set as an env variable.-
> -If the variable is present on build time, the Logs link will be visible on 
> the UI.-
> To minimize changes in the YuniKorn itself and enable maximal customization 
> and easy connection with the YuniKorn History Server (YHS) that is being 
> developed, the easiest solution would be to add externally loaded component 
> by using module federation. Components will be served by the YHS server 
> (changes on YHS endpoints would reflect in web components as well) and loaded 
> in YuniKorn web with Module Federation. 
> This ticket should add the required configuration for loading a custom module 
> that will be enabled through the env variables. If env is not set, YuniKorn 
> will work as usual (no changes to the default behavior)
> !image-2024-05-07-18-25-08-070.png|width=1240,height=647!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@yunikorn.apache.org
For additional commands, e-mail: issues-h...@yunikorn.apache.org

Reply via email to