-
Story
-
Resolution: Unresolved
-
Critical
-
None
-
None
-
None
-
False
-
-
False
-
-
On-Premises Migration Strategy Suggestion for OptimizationDetails Component
To migrate the OptimizationDetails page to on-premises hosting, you need to remove all Red Hat cloud-specific dependencies and replace them with local alternatives. The main challenges involve:
- Module Federation Replacement - Convert from remote micro-frontend to local bundled components
- Authentication System - Replace Red Hat SSO with local authentication
- Chrome Service Dependencies - Implement local navigation and user management
- API Integration - Update endpoints to point to local backends
Changes:
- Replace AsyncComponent Dependency with a local async component that uses React's lazy() and Suspense
- Remove Chrome Service Dependencies ??
- Implement other Authentication - Red Hat SSO integration other authentication system
- Bundle the micro-frontend locally instead of loading it remotely and update the module federation configuration from RH cloud to local implementation infra (hosted locally with it's own fed-mods.json)
- frontend-components: some of the components must be replaced:
// Cloud-dependent components import { AsyncComponent, // ❌ Module Federation + Chrome API RBACProvider, // ❌ Red Hat RBAC service useChrome, // ❌ Red Hat Chrome service } from '@redhat-cloud-services/frontend-components'; // Also avoid these related packages entirely: // '@redhat-cloud-services/frontend-components-notifications' // ❌ Cloud notification service // '@redhat-cloud-services/frontend-components-translations' // ❌ Cloud translation service