@openshift-assisted/ui-lib 2.50.1 → 2.51.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/cim/components/Agent/BMHStatusInfo.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/MinimalHWRequirements.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/ConditionsTable.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/HostedClusterProgress.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/NodePoolsProgress.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/utils/status.d.ts +2 -2
- package/build/@types/cim/components/Hypershift/utils/status.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agentStatus.d.ts +1 -1
- package/build/@types/cim/components/helpers/agentStatus.d.ts.map +1 -1
- package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts.map +1 -1
- package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +4 -0
- package/build/@types/common/api/assisted-service/ClustersAPI.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts +1 -1
- package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/OperatorsProgressItem.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ProgressBarTexts.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostPropertyValidationPopover.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostStatus.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostValidationGroups.d.ts.map +1 -1
- package/build/@types/common/components/hosts/Hostname.d.ts.map +1 -1
- package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
- package/build/@types/common/components/hosts/VMRebootConfigurationInfo.d.ts.map +1 -1
- package/build/@types/common/components/hosts/status.d.ts.map +1 -1
- package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
- package/build/@types/common/components/storage/StorageUtils.d.ts +1 -1
- package/build/@types/common/components/storage/StorageUtils.d.ts.map +1 -1
- package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts.map +1 -1
- package/build/@types/common/components/ui/WizardNavItem.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/PullSecretField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RemovableField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
- package/build/@types/common/components/ui/index.d.ts +0 -1
- package/build/@types/common/components/ui/index.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +7 -0
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/config/docs_links.d.ts +1 -0
- package/build/@types/common/config/docs_links.d.ts.map +1 -1
- package/build/@types/common/types/ui-settings.d.ts +0 -1
- package/build/@types/common/types/ui-settings.d.ts.map +1 -1
- package/build/@types/common/validationSchemas/addressValidation.d.ts.map +1 -1
- package/build/@types/common/validationSchemas/clusterDetailsValidation.d.ts +5 -0
- package/build/@types/common/validationSchemas/clusterDetailsValidation.d.ts.map +1 -1
- package/build/@types/ocm/components/Routes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.d.ts +2 -2
- package/build/@types/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmOperatorProgressItem.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.d.ts +9 -0
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/formViewNetworkWideValidationSchema.d.ts +22 -0
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/formViewNetworkWideValidationSchema.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterProperties.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/HostInventoryExpandable.d.ts +1 -1
- package/build/@types/ocm/components/clusterDetail/HostInventoryExpandable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/OpenShiftVersionDetail.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts +2 -2
- package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts +3 -2
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardFooter.d.ts +2 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardFooter.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/NewClusterWizard.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/constants.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/disconnected/DisconnectedStaticIp.d.ts +4 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/DisconnectedStaticIp.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts +4 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/index.d.ts +1 -0
- package/build/@types/ocm/components/clusterWizard/index.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +2 -2
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClusterStatus.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
- package/build/@types/ocm/components/ui/InfoLinkWithModal.d.ts.map +1 -1
- package/build/@types/ocm/components/utils.d.ts +1 -0
- package/build/@types/ocm/components/utils.d.ts.map +1 -1
- package/build/@types/ocm/hooks/useUISettings.d.ts.map +1 -1
- package/build/@types/ocm/services/ClusterDetailsService.d.ts +1 -2
- package/build/@types/ocm/services/ClusterDetailsService.d.ts.map +1 -1
- package/build/@types/ocm/services/ClustersService.d.ts +4 -0
- package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
- package/build/@types/ocm/services/InfraEnvsService.d.ts.map +1 -1
- package/build/@types/ocm/services/types.d.ts +0 -1
- package/build/@types/ocm/services/types.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/current-cluster/slice.d.ts +3 -3
- package/build/cjs/cim/components/Agent/BMHStatusInfo.js +4 -4
- package/build/cjs/cim/components/Agent/BMHStatusInfo.js.map +1 -1
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js +2 -2
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js +7 -6
- package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js +3 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js +2 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/utils/status.js +8 -7
- package/build/cjs/cim/components/Hypershift/utils/status.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +4 -4
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js +3 -3
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js.map +1 -1
- package/build/cjs/cim/components/helpers/agentStatus.js +3 -2
- package/build/cjs/cim/components/helpers/agentStatus.js.map +1 -1
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +2 -2
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
- package/build/cjs/common/api/assisted-service/ClustersAPI.js +3 -0
- package/build/cjs/common/api/assisted-service/ClustersAPI.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +2 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js +8 -7
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js +4 -4
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js +5 -4
- package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js +7 -6
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +17 -8
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js +6 -6
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js.map +1 -1
- package/build/cjs/common/components/hosts/HostStatus.js +2 -1
- package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
- package/build/cjs/common/components/hosts/HostValidationGroups.js +6 -6
- package/build/cjs/common/components/hosts/HostValidationGroups.js.map +1 -1
- package/build/cjs/common/components/hosts/Hostname.js +4 -3
- package/build/cjs/common/components/hosts/Hostname.js.map +1 -1
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +2 -2
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
- package/build/cjs/common/components/hosts/VMRebootConfigurationInfo.js +2 -1
- package/build/cjs/common/components/hosts/VMRebootConfigurationInfo.js.map +1 -1
- package/build/cjs/common/components/hosts/status.js +19 -13
- package/build/cjs/common/components/hosts/status.js.map +1 -1
- package/build/cjs/common/components/storage/DisksTable.js +4 -2
- package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
- package/build/cjs/common/components/storage/StorageUtils.js +3 -2
- package/build/cjs/common/components/storage/StorageUtils.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftVersionModal.js +3 -1
- package/build/cjs/common/components/ui/OpenShiftVersionModal.js.map +1 -1
- package/build/cjs/common/components/ui/WizardFooter.js +1 -1
- package/build/cjs/common/components/ui/WizardFooter.js.map +1 -1
- package/build/cjs/common/components/ui/WizardNavItem.js +2 -2
- package/build/cjs/common/components/ui/WizardNavItem.js.map +1 -1
- package/build/cjs/common/components/ui/formik/PullSecretField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RemovableField.js +3 -3
- package/build/cjs/common/components/ui/formik/RemovableField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RichInputField.js +4 -4
- package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/TextAreaField.js +1 -1
- package/build/cjs/common/components/ui/formik/TextAreaField.js.map +1 -1
- package/build/cjs/common/components/ui/index.js +1 -3
- package/build/cjs/common/components/ui/index.js.map +1 -1
- package/build/cjs/common/config/constants.js +20 -2
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/config/docs_links.js +3 -2
- package/build/cjs/common/config/docs_links.js.map +1 -1
- package/build/cjs/common/validationSchemas/addressValidation.js +3 -1
- package/build/cjs/common/validationSchemas/addressValidation.js.map +1 -1
- package/build/cjs/common/validationSchemas/clusterDetailsValidation.js +31 -2
- package/build/cjs/common/validationSchemas/clusterDetailsValidation.js.map +1 -1
- package/build/cjs/ocm/components/Routes.js +2 -1
- package/build/cjs/ocm/components/Routes.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.js +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +1 -7
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js +4 -4
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.js +5 -2
- package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +90 -6
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +3 -3
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js +68 -0
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js +5 -3
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js +11 -7
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.js +5 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/FormViewNetworkWide.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/FormViewNetworkWide.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/formViewNetworkWideValidationSchema.js +31 -3
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/formViewNetworkWideValidationSchema.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js +1 -5
- package/build/cjs/ocm/components/clusterDetail/ClusterProperties.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js +5 -4
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +4 -3
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +4 -2
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +18 -10
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +4 -5
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContext.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +70 -28
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js +21 -6
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js +11 -1
- package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/constants.js +2 -0
- package/build/cjs/ocm/components/clusterWizard/constants.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +96 -18
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/DisconnectedStaticIp.js +48 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/DisconnectedStaticIp.js.map +1 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js +182 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js.map +1 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +11 -7
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/index.js +3 -1
- package/build/cjs/ocm/components/clusterWizard/index.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +12 -1
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterStatus.js +13 -7
- package/build/cjs/ocm/components/clusters/ClusterStatus.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +7 -6
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +6 -0
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js +2 -2
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js.map +1 -1
- package/build/cjs/ocm/components/utils.js +4 -1
- package/build/cjs/ocm/components/utils.js.map +1 -1
- package/build/cjs/ocm/hooks/useInfraEnvId.js +2 -2
- package/build/cjs/ocm/hooks/useInfraEnvId.js.map +1 -1
- package/build/cjs/ocm/hooks/useUISettings.js +0 -1
- package/build/cjs/ocm/hooks/useUISettings.js.map +1 -1
- package/build/cjs/ocm/services/ClusterDetailsService.js +2 -2
- package/build/cjs/ocm/services/ClusterDetailsService.js.map +1 -1
- package/build/cjs/ocm/services/ClustersService.js +6 -0
- package/build/cjs/ocm/services/ClustersService.js.map +1 -1
- package/build/cjs/ocm/services/InfraEnvsService.js +4 -1
- package/build/cjs/ocm/services/InfraEnvsService.js.map +1 -1
- package/lib/cim/components/Agent/BMHStatusInfo.tsx +12 -4
- package/lib/cim/components/Agent/MinimalHWRequirements.tsx +4 -2
- package/lib/cim/components/Hypershift/DetailsPage/ConditionsTable.tsx +13 -7
- package/lib/cim/components/Hypershift/DetailsPage/HostedClusterProgress.tsx +8 -4
- package/lib/cim/components/Hypershift/DetailsPage/NodePoolsProgress.tsx +6 -2
- package/lib/cim/components/Hypershift/utils/status.tsx +20 -9
- package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +11 -4
- package/lib/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.tsx +4 -6
- package/lib/cim/components/helpers/agentStatus.tsx +7 -3
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +12 -5
- package/lib/common/api/assisted-service/ClustersAPI.ts +6 -0
- package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +5 -2
- package/lib/common/components/clusterDetail/FinalizingProgress.tsx +21 -10
- package/lib/common/components/clusterDetail/OperatorsProgressItem.tsx +11 -5
- package/lib/common/components/clusterDetail/ProgressBarTexts.tsx +17 -5
- package/lib/common/components/clusterWizard/ReviewValidations.tsx +15 -6
- package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +19 -9
- package/lib/common/components/hosts/HostPropertyValidationPopover.tsx +9 -5
- package/lib/common/components/hosts/HostStatus.tsx +14 -3
- package/lib/common/components/hosts/HostValidationGroups.tsx +9 -5
- package/lib/common/components/hosts/Hostname.tsx +7 -4
- package/lib/common/components/hosts/MassChangeHostnameModal.tsx +6 -2
- package/lib/common/components/hosts/VMRebootConfigurationInfo.tsx +12 -3
- package/lib/common/components/hosts/status.tsx +46 -13
- package/lib/common/components/storage/DisksTable.tsx +15 -4
- package/lib/common/components/storage/StorageUtils.tsx +6 -4
- package/lib/common/components/ui/OpenShiftVersionModal.tsx +3 -1
- package/lib/common/components/ui/WizardFooter.tsx +1 -1
- package/lib/common/components/ui/WizardNavItem.tsx +4 -7
- package/lib/common/components/ui/formik/PullSecretField.tsx +1 -0
- package/lib/common/components/ui/formik/RemovableField.tsx +8 -4
- package/lib/common/components/ui/formik/RichInputField.tsx +10 -6
- package/lib/common/components/ui/formik/TextAreaField.tsx +1 -1
- package/lib/common/components/ui/index.ts +0 -2
- package/lib/common/config/constants.ts +19 -0
- package/lib/common/config/docs_links.ts +2 -0
- package/lib/common/types/ui-settings.ts +0 -1
- package/lib/common/validationSchemas/addressValidation.tsx +4 -1
- package/lib/common/validationSchemas/clusterDetailsValidation.tsx +47 -15
- package/lib/ocm/components/Routes.tsx +3 -1
- package/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx +1 -0
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +1 -8
- package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +2 -3
- package/lib/ocm/components/clusterConfiguration/OcmOperatorProgressItem.tsx +11 -5
- package/lib/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.tsx +8 -7
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +155 -20
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +8 -6
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkTypeDropdown.tsx +157 -0
- package/lib/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.tsx +6 -3
- package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +3 -7
- package/lib/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.tsx +28 -15
- package/lib/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.tsx +8 -2
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHostsFields.tsx +1 -0
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/FormViewNetworkWide.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewNetworkWide/formViewNetworkWideValidationSchema.tsx +63 -24
- package/lib/ocm/components/clusterDetail/ClusterProperties.tsx +2 -6
- package/lib/ocm/components/clusterDetail/HostInventoryExpandable.tsx +11 -5
- package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +8 -5
- package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +6 -3
- package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +19 -14
- package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +5 -7
- package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +3 -2
- package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +101 -59
- package/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx +26 -5
- package/lib/ocm/components/clusterWizard/NewClusterWizard.tsx +14 -3
- package/lib/ocm/components/clusterWizard/constants.ts +2 -0
- package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +138 -37
- package/lib/ocm/components/clusterWizard/disconnected/DisconnectedStaticIp.tsx +78 -0
- package/lib/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.tsx +364 -0
- package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +19 -9
- package/lib/ocm/components/clusterWizard/index.ts +1 -0
- package/lib/ocm/components/clusterWizard/wizardTransition.ts +14 -2
- package/lib/ocm/components/clusters/ClusterStatus.tsx +30 -8
- package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +12 -8
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +6 -0
- package/lib/ocm/components/ui/InfoLinkWithModal.tsx +4 -2
- package/lib/ocm/components/utils.ts +4 -0
- package/lib/ocm/hooks/useInfraEnvId.ts +2 -2
- package/lib/ocm/hooks/useUISettings.ts +0 -1
- package/lib/ocm/services/ClusterDetailsService.ts +0 -3
- package/lib/ocm/services/ClustersService.ts +6 -0
- package/lib/ocm/services/InfraEnvsService.ts +4 -1
- package/lib/ocm/services/types.ts +0 -1
- package/package.json +4 -4
- package/build/@types/common/components/ui/UiIcon.d.ts +0 -11
- package/build/@types/common/components/ui/UiIcon.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/CustomManifestCheckbox.d.ts +0 -8
- package/build/@types/ocm/components/clusterConfiguration/CustomManifestCheckbox.d.ts.map +0 -1
- package/build/cjs/common/components/ui/UiIcon.js +0 -11
- package/build/cjs/common/components/ui/UiIcon.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js +0 -58
- package/build/cjs/ocm/components/clusterConfiguration/CustomManifestCheckbox.js.map +0 -1
- package/lib/common/components/ui/UiIcon.tsx +0 -21
- package/lib/ocm/components/clusterConfiguration/CustomManifestCheckbox.tsx +0 -114
|
@@ -14,6 +14,7 @@ const useSetClusterPermissions_1 = tslib_1.__importDefault(require("../../hooks/
|
|
|
14
14
|
const hooks_1 = require("../../hooks");
|
|
15
15
|
const react_core_1 = require("@patternfly/react-core");
|
|
16
16
|
const use_feature_1 = require("../../hooks/use-feature");
|
|
17
|
+
const utils_1 = require("../utils");
|
|
17
18
|
const addStepToClusterWizard = (wizardStepIds, addAfterStep, itemsToAdd) => {
|
|
18
19
|
const stepsIds = [...wizardStepIds];
|
|
19
20
|
const referencePosition = stepsIds.findIndex((step) => step === addAfterStep);
|
|
@@ -31,7 +32,7 @@ const removeStepFromClusterWizard = (wizardStepIds, itemToRemove, numberItemsToR
|
|
|
31
32
|
}
|
|
32
33
|
return stepsIds;
|
|
33
34
|
};
|
|
34
|
-
const getWizardStepIds = (wizardStepIds, staticIpView,
|
|
35
|
+
const getWizardStepIds = (wizardStepIds, staticIpView, isSingleClusterFeatureEnabled) => {
|
|
35
36
|
let stepsCopy = wizardStepIds ? [...wizardStepIds] : [...constants_1.defaultWizardSteps];
|
|
36
37
|
if (staticIpView === dataTypes_1.StaticIpView.YAML) {
|
|
37
38
|
stepsCopy = removeStepFromClusterWizard(stepsCopy, 'static-ip-network-wide-configurations', 2);
|
|
@@ -44,37 +45,56 @@ const getWizardStepIds = (wizardStepIds, staticIpView, customManifestsStep, isSi
|
|
|
44
45
|
else if (staticIpView === 'dhcp-selected') {
|
|
45
46
|
stepsCopy = removeStepFromClusterWizard(stepsCopy, 'static-ip-network-wide-configurations', 2);
|
|
46
47
|
}
|
|
47
|
-
if (customManifestsStep) {
|
|
48
|
-
stepsCopy = addStepToClusterWizard(stepsCopy, 'networking', ['custom-manifests']);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
stepsCopy = removeStepFromClusterWizard(stepsCopy, 'custom-manifests', 1);
|
|
52
|
-
}
|
|
53
48
|
if (isSingleClusterFeatureEnabled) {
|
|
54
49
|
stepsCopy = addStepToClusterWizard(stepsCopy, 'networking', ['credentials-download']);
|
|
55
50
|
}
|
|
56
51
|
return stepsCopy;
|
|
57
52
|
};
|
|
53
|
+
// Same logic as getWizardStepIds but for disconnected flow
|
|
54
|
+
// Adds static IP steps after 'disconnected-optional-configurations' instead of 'cluster-details'
|
|
55
|
+
const getDisconnectedWizardStepIds = (wizardStepIds, staticIpView) => {
|
|
56
|
+
let stepsCopy = wizardStepIds ? [...wizardStepIds] : [...wizardTransition_1.disconnectedSteps];
|
|
57
|
+
if (staticIpView === dataTypes_1.StaticIpView.YAML) {
|
|
58
|
+
stepsCopy = removeStepFromClusterWizard(stepsCopy, 'static-ip-network-wide-configurations', 2);
|
|
59
|
+
stepsCopy = addStepToClusterWizard(stepsCopy, 'disconnected-optional-configurations', [
|
|
60
|
+
'static-ip-yaml-view',
|
|
61
|
+
]);
|
|
62
|
+
}
|
|
63
|
+
else if (staticIpView === dataTypes_1.StaticIpView.FORM) {
|
|
64
|
+
stepsCopy = removeStepFromClusterWizard(stepsCopy, 'static-ip-yaml-view', 1);
|
|
65
|
+
stepsCopy = addStepToClusterWizard(stepsCopy, 'disconnected-optional-configurations', constants_1.staticIpFormViewSubSteps);
|
|
66
|
+
}
|
|
67
|
+
else if (staticIpView === 'dhcp-selected') {
|
|
68
|
+
stepsCopy = removeStepFromClusterWizard(stepsCopy, 'static-ip-network-wide-configurations', 2);
|
|
69
|
+
stepsCopy = removeStepFromClusterWizard(stepsCopy, 'static-ip-yaml-view', 1);
|
|
70
|
+
}
|
|
71
|
+
return stepsCopy;
|
|
72
|
+
};
|
|
58
73
|
const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions, }) => {
|
|
59
74
|
const isSingleClusterFeatureEnabled = (0, use_feature_1.useFeature)('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
|
|
60
75
|
const [currentStepId, setCurrentStepId] = react_1.default.useState();
|
|
61
76
|
const [connectedWizardStepIds, setWizardStepIds] = react_1.default.useState();
|
|
77
|
+
const [disconnectedWizardStepIds, setDisconnectedWizardStepIds] = react_1.default.useState(wizardTransition_1.disconnectedSteps);
|
|
62
78
|
const [wizardPerPage, setWizardPerPage] = react_1.default.useState(10);
|
|
63
|
-
const [customManifestsStep, setCustomManifestsStep] = react_1.default.useState(false);
|
|
64
79
|
const [installDisconnected, setInstallDisconnected] = react_1.default.useState(false);
|
|
80
|
+
const [disconnectedInfraEnv, setDisconnectedInfraEnv] = react_1.default.useState(infraEnv);
|
|
65
81
|
const location = (0, react_router_dom_v5_compat_1.useLocation)();
|
|
66
82
|
const locationState = location.state;
|
|
67
83
|
const { uiSettings, updateUISettings, loading: UISettingsLoading, error: UISettingsError, } = (0, hooks_1.useUISettings)(cluster === null || cluster === void 0 ? void 0 : cluster.id);
|
|
68
84
|
const { clearAlerts, addAlert, alerts } = (0, common_1.useAlerts)();
|
|
69
85
|
const setClusterPermissions = (0, useSetClusterPermissions_1.default)();
|
|
70
|
-
const wizardStepIds = installDisconnected ?
|
|
86
|
+
const wizardStepIds = installDisconnected ? disconnectedWizardStepIds : connectedWizardStepIds;
|
|
71
87
|
react_1.default.useEffect(() => {
|
|
72
88
|
if (!UISettingsLoading) {
|
|
73
89
|
const staticIpInfo = infraEnv ? (0, fromInfraEnv_1.getStaticIpInfo)(infraEnv) : undefined;
|
|
74
|
-
|
|
75
|
-
|
|
90
|
+
let customManifestsRequired = false;
|
|
91
|
+
if (cluster) {
|
|
92
|
+
customManifestsRequired =
|
|
93
|
+
(0, utils_1.isThirdPartyCNI)(cluster.networkType) || (0, utils_1.isOciPlatformType)(cluster);
|
|
94
|
+
}
|
|
95
|
+
const customManifestsStepNeedsToBeFilled = customManifestsRequired && !(uiSettings === null || uiSettings === void 0 ? void 0 : uiSettings.customManifestsAdded);
|
|
76
96
|
const requiredStepId = (0, wizardTransition_1.getClusterWizardFirstStep)(locationState, staticIpInfo, cluster === null || cluster === void 0 ? void 0 : cluster.status, cluster === null || cluster === void 0 ? void 0 : cluster.hosts, customManifestsStepNeedsToBeFilled);
|
|
77
|
-
const firstStepIds = getWizardStepIds(wizardStepIds, staticIpInfo === null || staticIpInfo === void 0 ? void 0 : staticIpInfo.view,
|
|
97
|
+
const firstStepIds = getWizardStepIds(wizardStepIds, staticIpInfo === null || staticIpInfo === void 0 ? void 0 : staticIpInfo.view, isSingleClusterFeatureEnabled);
|
|
78
98
|
// Only move step if there is still none, or the user is at a forbidden step
|
|
79
99
|
if (!currentStepId ||
|
|
80
100
|
(customManifestsStepNeedsToBeFilled && (0, wizardTransition_1.isStepAfter)(currentStepId, requiredStepId))) {
|
|
@@ -82,7 +102,6 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
82
102
|
}
|
|
83
103
|
setWizardStepIds(firstStepIds);
|
|
84
104
|
setClusterPermissions(cluster, permissions);
|
|
85
|
-
setCustomManifestsStep(!!(uiSettings === null || uiSettings === void 0 ? void 0 : uiSettings.addCustomManifests));
|
|
86
105
|
}
|
|
87
106
|
if (!!UISettingsError &&
|
|
88
107
|
!alerts.some((alert) => alert.title === "Couldn't retrieve UI settings")) {
|
|
@@ -100,12 +119,21 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
100
119
|
}
|
|
101
120
|
const handleMoveFromStaticIp = () => {
|
|
102
121
|
//if static ip view change wasn't persisted, moving from static ip step should change the wizard steps to match the view in the infra env
|
|
103
|
-
const
|
|
122
|
+
const currentInfraEnv = installDisconnected ? disconnectedInfraEnv : infraEnv;
|
|
123
|
+
const staticIpInfo = currentInfraEnv ? (0, fromInfraEnv_1.getStaticIpInfo)(currentInfraEnv) : undefined;
|
|
104
124
|
if (!staticIpInfo) {
|
|
105
125
|
throw `Wizard step is currently ${currentStepId}, but no static ip info is defined`;
|
|
106
126
|
}
|
|
107
|
-
|
|
108
|
-
|
|
127
|
+
if (installDisconnected) {
|
|
128
|
+
// For disconnected wizard, update wizard steps directly (same pattern as connected)
|
|
129
|
+
const newStepIds = getDisconnectedWizardStepIds(disconnectedWizardStepIds, staticIpInfo.view);
|
|
130
|
+
setDisconnectedWizardStepIds(newStepIds);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
// For connected wizard, update wizard steps directly
|
|
134
|
+
const newStepIds = getWizardStepIds(wizardStepIds, staticIpInfo.view, isSingleClusterFeatureEnabled);
|
|
135
|
+
setWizardStepIds(newStepIds);
|
|
136
|
+
}
|
|
109
137
|
};
|
|
110
138
|
const onSetCurrentStepId = (stepId) => {
|
|
111
139
|
clearAlerts();
|
|
@@ -114,10 +142,6 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
114
142
|
}
|
|
115
143
|
setCurrentStepId(stepId);
|
|
116
144
|
};
|
|
117
|
-
const onSetAddCustomManifestsStep = (addCustomManifest) => {
|
|
118
|
-
setCustomManifestsStep(addCustomManifest);
|
|
119
|
-
setWizardStepIds(getWizardStepIds(wizardStepIds, undefined, addCustomManifest, isSingleClusterFeatureEnabled));
|
|
120
|
-
};
|
|
121
145
|
return {
|
|
122
146
|
moveBack() {
|
|
123
147
|
clearAlerts();
|
|
@@ -140,21 +164,37 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
140
164
|
else {
|
|
141
165
|
setCurrentStepId('static-ip-network-wide-configurations');
|
|
142
166
|
}
|
|
143
|
-
|
|
167
|
+
if (installDisconnected) {
|
|
168
|
+
// For disconnected wizard, update wizard steps (same pattern as connected)
|
|
169
|
+
setDisconnectedWizardStepIds(getDisconnectedWizardStepIds(disconnectedWizardStepIds, view));
|
|
170
|
+
}
|
|
171
|
+
else {
|
|
172
|
+
setWizardStepIds(getWizardStepIds(wizardStepIds, view, isSingleClusterFeatureEnabled));
|
|
173
|
+
}
|
|
144
174
|
},
|
|
145
175
|
onUpdateHostNetworkConfigType(type) {
|
|
146
|
-
if (
|
|
147
|
-
|
|
176
|
+
if (installDisconnected) {
|
|
177
|
+
// For disconnected wizard, update wizard steps (same pattern as connected)
|
|
178
|
+
if (type === services_1.HostsNetworkConfigurationType.STATIC) {
|
|
179
|
+
setDisconnectedWizardStepIds(getDisconnectedWizardStepIds(disconnectedWizardStepIds, dataTypes_1.StaticIpView.FORM));
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
setDisconnectedWizardStepIds(getDisconnectedWizardStepIds(disconnectedWizardStepIds, 'dhcp-selected'));
|
|
183
|
+
}
|
|
148
184
|
}
|
|
149
185
|
else {
|
|
150
|
-
|
|
186
|
+
// For connected wizard, update wizard steps directly
|
|
187
|
+
if (type === services_1.HostsNetworkConfigurationType.STATIC) {
|
|
188
|
+
setWizardStepIds(getWizardStepIds(wizardStepIds, dataTypes_1.StaticIpView.FORM, isSingleClusterFeatureEnabled));
|
|
189
|
+
}
|
|
190
|
+
else {
|
|
191
|
+
setWizardStepIds(getWizardStepIds(wizardStepIds, 'dhcp-selected', isSingleClusterFeatureEnabled));
|
|
192
|
+
}
|
|
151
193
|
}
|
|
152
194
|
},
|
|
153
195
|
wizardStepIds: wizardStepIds,
|
|
154
196
|
currentStepId,
|
|
155
197
|
setCurrentStepId: onSetCurrentStepId,
|
|
156
|
-
customManifestsStep,
|
|
157
|
-
setCustomManifestsStep: onSetAddCustomManifestsStep,
|
|
158
198
|
wizardPerPage,
|
|
159
199
|
setWizardPerPage,
|
|
160
200
|
uiSettings,
|
|
@@ -169,20 +209,22 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
169
209
|
(connectedWizardStepIds === null || connectedWizardStepIds === void 0 ? void 0 : connectedWizardStepIds.length) && onSetCurrentStepId(connectedWizardStepIds[0]);
|
|
170
210
|
}
|
|
171
211
|
},
|
|
212
|
+
disconnectedInfraEnv,
|
|
213
|
+
setDisconnectedInfraEnv,
|
|
172
214
|
};
|
|
173
215
|
}, [
|
|
174
216
|
wizardStepIds,
|
|
175
217
|
currentStepId,
|
|
176
218
|
infraEnv,
|
|
177
|
-
customManifestsStep,
|
|
178
219
|
wizardPerPage,
|
|
179
220
|
isSingleClusterFeatureEnabled,
|
|
180
221
|
clearAlerts,
|
|
181
222
|
uiSettings,
|
|
182
223
|
updateUISettings,
|
|
183
224
|
installDisconnected,
|
|
184
|
-
setInstallDisconnected,
|
|
185
225
|
connectedWizardStepIds,
|
|
226
|
+
disconnectedWizardStepIds,
|
|
227
|
+
disconnectedInfraEnv,
|
|
186
228
|
]);
|
|
187
229
|
if (!contextValue) {
|
|
188
230
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterWizardContextProvider.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx"],"names":[],"mappings":";;;AAAA,0DAAiD;AACjD,2EAAyD;AACzD,iEAAwF;AACxF,yDAO4B;AAC5B,6CAA+D;AAC/D,2CAA2E;AAC3E,+EAA+E;AAC/E,qFAAqF;AACrF,4CAAyF;AACzF,4GAA4E;AAE5E,uCAA4C;AAC5C,uDAAsD;AACtD,yDAAqD;
|
|
1
|
+
{"version":3,"file":"ClusterWizardContextProvider.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx"],"names":[],"mappings":";;;AAAA,0DAAiD;AACjD,2EAAyD;AACzD,iEAAwF;AACxF,yDAO4B;AAC5B,6CAA+D;AAC/D,2CAA2E;AAC3E,+EAA+E;AAC/E,qFAAqF;AACrF,4CAAyF;AACzF,4GAA4E;AAE5E,uCAA4C;AAC5C,uDAAsD;AACtD,yDAAqD;AACrD,oCAA8D;AAE9D,MAAM,sBAAsB,GAAG,CAC7B,aAAuC,EACvC,YAAoC,EACpC,UAAoC,EACpC,EAAE;IACF,MAAM,QAAQ,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC;IACpC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,YAAY,CAAC,CAAC;IAC9E,MAAM,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACrE,IAAI,iBAAiB,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnD,QAAQ,CAAC,MAAM,CAAC,iBAAiB,GAAG,CAAC,EAAE,CAAC,EAAE,GAAG,UAAU,C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C;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL;QACE,8BAAC,2CAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAAG,QAAQ,CAAiC,CAC7F,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,4BAA4B,CAAC"}
|
|
@@ -12,6 +12,8 @@ const use_translation_wrapper_1 = require("../../../common/hooks/use-translation
|
|
|
12
12
|
const fetchEvents_1 = require("../fetching/fetchEvents");
|
|
13
13
|
const use_feature_1 = require("../../hooks/use-feature");
|
|
14
14
|
const ModalDialogsContext_1 = require("../hosts/ModalDialogsContext");
|
|
15
|
+
const ClustersService_1 = tslib_1.__importDefault(require("../../services/ClustersService"));
|
|
16
|
+
const api_1 = require("../../../common/api");
|
|
15
17
|
const defaultAlertTitle = 'Provided cluster configuration is not valid';
|
|
16
18
|
const ValidationSection = ({ cluster, errorFields = [], alertTitle, alertContent, }) => {
|
|
17
19
|
const { currentStepId } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
@@ -28,16 +30,29 @@ const ValidationSection = ({ cluster, errorFields = [], alertTitle, alertContent
|
|
|
28
30
|
cluster && (react_1.default.createElement(ClusterWizardStepValidationsAlert_1.default, { currentStepId: currentStepId, clusterStatus: cluster.status, hosts: (cluster === null || cluster === void 0 ? void 0 : cluster.hosts) || [], validationsInfo: validationsInfo, wizardStepsValidationsMap: wizardTransition_1.wizardStepsValidationsMap, lastInstallationPreparation: cluster['last-installation-preparation'], uiSettings: uiSettings }))));
|
|
29
31
|
};
|
|
30
32
|
const ClusterWizardFooter = (_a) => {
|
|
31
|
-
var { cluster, additionalActions, errorFields, alertTitle, alertContent, onCancel } = _a, rest = tslib_1.__rest(_a, ["cluster", "additionalActions", "errorFields", "alertTitle", "alertContent", "onCancel"]);
|
|
32
|
-
const { alerts } = (0, common_1.useAlerts)();
|
|
33
|
+
var { cluster, additionalActions, errorFields, alertTitle, alertContent, onCancel, disconnectedClusterId } = _a, rest = tslib_1.__rest(_a, ["cluster", "additionalActions", "errorFields", "alertTitle", "alertContent", "onCancel", "disconnectedClusterId"]);
|
|
34
|
+
const { alerts, addAlert } = (0, common_1.useAlerts)();
|
|
33
35
|
const navigate = (0, react_router_dom_v5_compat_1.useNavigate)();
|
|
34
36
|
const isSingleClusterFeatureEnabled = (0, use_feature_1.useFeature)('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
|
|
35
37
|
const { currentStepId } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
36
38
|
const { resetSingleClusterDialog } = (0, ModalDialogsContext_1.useModalDialogsContext)();
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
const { setDisconnectedInfraEnv } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
40
|
+
const handleCancel = react_1.default.useCallback(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
41
|
+
if (disconnectedClusterId) {
|
|
42
|
+
try {
|
|
43
|
+
yield ClustersService_1.default.remove(disconnectedClusterId);
|
|
44
|
+
}
|
|
45
|
+
catch (e) {
|
|
46
|
+
(0, api_1.handleApiError)(e, () => addAlert({
|
|
47
|
+
title: 'Failed to remove cluster',
|
|
48
|
+
message: (0, api_1.getApiErrorMessage)(e),
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
setDisconnectedInfraEnv(undefined);
|
|
53
|
+
navigate('/cluster-list');
|
|
54
|
+
}), [navigate, setDisconnectedInfraEnv, addAlert, disconnectedClusterId]);
|
|
55
|
+
const handleReset = react_1.default.useCallback(() => resetSingleClusterDialog.open({ cluster }), [resetSingleClusterDialog, cluster]);
|
|
41
56
|
const alertsSection = alerts.length ? react_1.default.createElement(common_1.Alerts, null) : undefined;
|
|
42
57
|
const errorsSection = (react_1.default.createElement(ValidationSection, { cluster: cluster, errorFields: errorFields, alertTitle: alertTitle, alertContent: alertContent }));
|
|
43
58
|
return (react_1.default.createElement(common_1.WizardFooter, Object.assign({ alerts: alertsSection, errors: errorsSection, onCancel: isSingleClusterFeatureEnabled ? undefined : onCancel || handleCancel, onReset: isSingleClusterFeatureEnabled && currentStepId !== 'cluster-details'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterWizardFooter.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,2EAAyD;AACzD,uDAAyE;AACzE,4CAOyB;AACzB,yDAA+D;AAC/D,iEAAiE;AACjE,2JAA2H;AAC3H,2FAA+E;AAC/E,yDAAwD;AAExD,yDAAqD;AACrD,sEAAsE;
|
|
1
|
+
{"version":3,"file":"ClusterWizardFooter.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,2EAAyD;AACzD,uDAAyE;AACzE,4CAOyB;AACzB,yDAA+D;AAC/D,iEAAiE;AACjE,2JAA2H;AAC3H,2FAA+E;AAC/E,yDAAwD;AAExD,yDAAqD;AACrD,sEAAsE;AACtE,6FAA6D;AAC7D,6CAAyE;AASzE,MAAM,iBAAiB,GAAG,6CAA6C,CAAC;AACxE,MAAM,iBAAiB,GAAG,CAAC,EACzB,OAAO,EACP,WAAW,GAAG,EAAE,EAChB,UAAU,EACV,YAAY,GACkB,EAAE,EAAE;IAClC,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,8CAAuB,GAAE,CAAC;IACpD,MAAM,eAAe,GAAG,OAAO,IAAI,IAAA,qCAA4B,EAAC,OAAO,CAAC,CAAC;IACzE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,8CAAuB,GAAE,CAAC;IACjD,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAE/B,IAAI,aAAa,GAAG,YAAY,CAAC;IACjC,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;Q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,SAAS,CAAC,CAAC,CAAC,QAAQ,IAAI,YAAY,EAC9E,OAAO,EACL,6BAA6B,IAAI,aAAa,KAAK,iBAAiB;YAClE,CAAC,CAAC,WAAW;YACb,CAAC,CAAC,SAAS,EAEf,gBAAgB,EAAE,iBAAiB,EACnC,OAAO,EAAE,OAAO,EAChB,aAAa,EAAE,2BAAa,IACxB,IAAI,mBACI,uBAAuB,IACnC,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}
|
|
@@ -7,19 +7,29 @@ const ClusterDetails_1 = tslib_1.__importDefault(require("./ClusterDetails"));
|
|
|
7
7
|
const ClusterWizardContext_1 = require("./ClusterWizardContext");
|
|
8
8
|
const ReviewStep_1 = tslib_1.__importDefault(require("./disconnected/ReviewStep"));
|
|
9
9
|
const BasicStep_1 = tslib_1.__importDefault(require("./disconnected/BasicStep"));
|
|
10
|
+
const OptionalConfigurationsStep_1 = tslib_1.__importDefault(require("./disconnected/OptionalConfigurationsStep"));
|
|
11
|
+
const DisconnectedStaticIp_1 = tslib_1.__importDefault(require("./disconnected/DisconnectedStaticIp"));
|
|
12
|
+
const ModalDialogsContext_1 = require("../hosts/ModalDialogsContext");
|
|
10
13
|
const getCurrentStep = (currentStepId) => {
|
|
11
14
|
switch (currentStepId) {
|
|
12
15
|
case 'disconnected-review':
|
|
13
16
|
return react_1.default.createElement(ReviewStep_1.default, null);
|
|
14
17
|
case 'disconnected-basic':
|
|
15
18
|
return react_1.default.createElement(BasicStep_1.default, null);
|
|
19
|
+
case 'disconnected-optional-configurations':
|
|
20
|
+
return react_1.default.createElement(OptionalConfigurationsStep_1.default, null);
|
|
21
|
+
case 'static-ip-yaml-view':
|
|
22
|
+
case 'static-ip-network-wide-configurations':
|
|
23
|
+
case 'static-ip-host-configurations':
|
|
24
|
+
return react_1.default.createElement(DisconnectedStaticIp_1.default, null);
|
|
16
25
|
default:
|
|
17
26
|
return react_1.default.createElement(ClusterDetails_1.default, null);
|
|
18
27
|
}
|
|
19
28
|
};
|
|
20
29
|
const NewClusterWizard = () => {
|
|
21
30
|
const { currentStepId } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
22
|
-
return (react_1.default.createElement(
|
|
31
|
+
return (react_1.default.createElement(ModalDialogsContext_1.ModalDialogsContextProvider, null,
|
|
32
|
+
react_1.default.createElement("div", { className: (0, classnames_1.default)('pf-v6-c-wizard', 'cluster-wizard') }, getCurrentStep(currentStepId))));
|
|
23
33
|
};
|
|
24
34
|
exports.default = NewClusterWizard;
|
|
25
35
|
//# sourceMappingURL=NewClusterWizard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewClusterWizard.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/NewClusterWizard.tsx"],"names":[],"mappings":";;;AAAA,oEAAoC;AACpC,0DAA0B;AAC1B,8EAA8C;AAC9C,iEAAiE;AACjE,mFAAmD;AACnD,iFAAiD;
|
|
1
|
+
{"version":3,"file":"NewClusterWizard.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/NewClusterWizard.tsx"],"names":[],"mappings":";;;AAAA,oEAAoC;AACpC,0DAA0B;AAC1B,8EAA8C;AAC9C,iEAAiE;AACjE,mFAAmD;AACnD,iFAAiD;AACjD,mHAAmF;AACnF,uGAAuE;AAEvE,sEAA2E;AAE3E,MAAM,cAAc,GAAG,CAAC,aAAqC,EAAE,EAAE;IAC/D,QAAQ,aAAa,EAAE,CAAC;QACtB,KAAK,qBAAqB;YACxB,OAAO,8BAAC,oBAAU,OAAG,CAAC;QACxB,KAAK,oBAAoB;YACvB,OAAO,8BAAC,mBAAS,OAAG,CAAC;QACvB,KAAK,sCAAsC;YACzC,OAAO,8BAAC,oCAA0B,OAAG,CAAC;QACxC,KAAK,qBAAqB,CAAC;QAC3B,KAAK,uCAAuC,CAAC;QAC7C,KAAK,+BAA+B;YAClC,OAAO,8BAAC,8BAAoB,OAAG,CAAC;QAClC;YACE,OAAO,8BAAC,wBAAc,OAAG,CAAC;IAC9B,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAa,GAAG,EAAE;IACtC,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,8CAAuB,GAAE,CAAC;IACpD,OAAO,CACL,8BAAC,iDAA2B;QAC1B,uCAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,IAC3D,cAAc,CAAC,aAAa,CAAC,CAC1B,CACsB,CAC/B,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
|
|
@@ -15,6 +15,7 @@ exports.wizardStepNames = {
|
|
|
15
15
|
'credentials-download': 'Download credentials',
|
|
16
16
|
'disconnected-review': 'Review and download ISO',
|
|
17
17
|
'disconnected-basic': 'Basic information',
|
|
18
|
+
'disconnected-optional-configurations': 'Optional configurations',
|
|
18
19
|
};
|
|
19
20
|
exports.defaultWizardSteps = [
|
|
20
21
|
'cluster-details',
|
|
@@ -22,6 +23,7 @@ exports.defaultWizardSteps = [
|
|
|
22
23
|
'host-discovery',
|
|
23
24
|
'storage',
|
|
24
25
|
'networking',
|
|
26
|
+
'custom-manifests',
|
|
25
27
|
'review',
|
|
26
28
|
];
|
|
27
29
|
exports.staticIpFormViewSubSteps = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAgD;IAC1E,iBAAiB,EAAE,iBAAiB;IACpC,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,gBAAgB;IAClC,qBAAqB,EAAE,+BAA+B;IACtD,uCAAuC,EAAE,6BAA6B;IACtE,+BAA+B,EAAE,8BAA8B;IAC/D,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,kBAAkB;IACtC,MAAM,EAAE,mBAAmB;IAC3B,sBAAsB,EAAE,sBAAsB;IAC9C,qBAAqB,EAAE,yBAAyB;IAChD,oBAAoB,EAAE,mBAAmB;
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAgD;IAC1E,iBAAiB,EAAE,iBAAiB;IACpC,SAAS,EAAE,WAAW;IACtB,gBAAgB,EAAE,gBAAgB;IAClC,qBAAqB,EAAE,+BAA+B;IACtD,uCAAuC,EAAE,6BAA6B;IACtE,+BAA+B,EAAE,8BAA8B;IAC/D,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,kBAAkB,EAAE,kBAAkB;IACtC,MAAM,EAAE,mBAAmB;IAC3B,sBAAsB,EAAE,sBAAsB;IAC9C,qBAAqB,EAAE,yBAAyB;IAChD,oBAAoB,EAAE,mBAAmB;IACzC,sCAAsC,EAAE,yBAAyB;CAClE,CAAC;AAEW,QAAA,kBAAkB,GAA6B;IAC1D,iBAAiB;IACjB,WAAW;IACX,gBAAgB;IAChB,SAAS;IACT,YAAY;IACZ,kBAAkB;IAClB,QAAQ;CACT,CAAC;AAEW,QAAA,wBAAwB,GAA6B;IAChE,uCAAuC;IACvC,+BAA+B;CAChC,CAAC"}
|
|
@@ -11,28 +11,106 @@ const ClusterWizardNavigation_1 = tslib_1.__importDefault(require("../ClusterWiz
|
|
|
11
11
|
const WithErrorBoundary_1 = require("../../../../common/components/ErrorHandling/WithErrorBoundary");
|
|
12
12
|
const InstallDisconnectedSwitch_1 = tslib_1.__importDefault(require("./InstallDisconnectedSwitch"));
|
|
13
13
|
const formik_1 = require("formik");
|
|
14
|
-
const
|
|
14
|
+
const ClustersService_1 = tslib_1.__importDefault(require("../../../services/ClustersService"));
|
|
15
|
+
const api_1 = require("../../../../common/api");
|
|
16
|
+
const AlertsContextProvider_1 = require("../../../../common/components/AlertsContextProvider");
|
|
17
|
+
const react_core_2 = require("@patternfly/react-core");
|
|
18
|
+
const wizardTransition_1 = require("../wizardTransition");
|
|
19
|
+
const react_router_dom_v5_compat_1 = require("react-router-dom-v5-compat");
|
|
20
|
+
const OcmOpenShiftVersionSelect_1 = tslib_1.__importDefault(require("../../clusterConfiguration/OcmOpenShiftVersionSelect"));
|
|
21
|
+
const BasicStepForm = () => {
|
|
22
|
+
const { clusterId } = (0, react_router_dom_v5_compat_1.useParams)();
|
|
23
|
+
const [isLoading, setIsLoading] = React.useState(true);
|
|
24
|
+
const [cluster, setCluster] = React.useState();
|
|
25
|
+
const { values } = (0, formik_1.useFormikContext)();
|
|
15
26
|
const { t } = (0, common_1.useTranslation)();
|
|
16
27
|
const { moveNext } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
17
|
-
|
|
28
|
+
const { addAlert } = (0, AlertsContextProvider_1.useAlerts)();
|
|
29
|
+
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
30
|
+
const navigate = (0, react_router_dom_v5_compat_1.useNavigate)();
|
|
31
|
+
const location = (0, react_router_dom_v5_compat_1.useLocation)();
|
|
32
|
+
const currentPath = location.pathname;
|
|
33
|
+
React.useEffect(() => {
|
|
34
|
+
if (!clusterId) {
|
|
35
|
+
setIsLoading(false);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
void (() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
39
|
+
setIsLoading(true);
|
|
40
|
+
try {
|
|
41
|
+
setCluster(yield ClustersService_1.default.get(clusterId));
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
(0, api_1.handleApiError)(error, () => {
|
|
45
|
+
addAlert({
|
|
46
|
+
title: 'Failed to fetch disconnected cluster',
|
|
47
|
+
message: (0, api_1.getApiErrorMessage)(error),
|
|
48
|
+
variant: react_core_2.AlertVariant.danger,
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
finally {
|
|
53
|
+
setIsLoading(false);
|
|
54
|
+
}
|
|
55
|
+
}))();
|
|
56
|
+
}
|
|
57
|
+
}, [clusterId, addAlert]);
|
|
58
|
+
const createCluster = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
59
|
+
try {
|
|
60
|
+
setIsSubmitting(true);
|
|
61
|
+
// Create cluster only - infraEnv will be created in OptionalConfigurationsStep
|
|
62
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
63
|
+
const { data: disconnectedCluster } =
|
|
64
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
|
|
65
|
+
yield ClustersService_1.default.registerDisconnected({
|
|
66
|
+
name: 'disconnected-cluster',
|
|
67
|
+
openshiftVersion: values.openshiftVersion,
|
|
68
|
+
});
|
|
69
|
+
navigate(`${currentPath}/${disconnectedCluster.id}`, {
|
|
70
|
+
state: wizardTransition_1.ClusterWizardFlowStateNew,
|
|
71
|
+
});
|
|
72
|
+
moveNext();
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
(0, api_1.handleApiError)(error, () => {
|
|
76
|
+
addAlert({
|
|
77
|
+
title: 'Failed to create disconnected cluster',
|
|
78
|
+
message: (0, api_1.getApiErrorMessage)(error),
|
|
79
|
+
variant: react_core_2.AlertVariant.danger,
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
finally {
|
|
84
|
+
setIsSubmitting(false);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
return (React.createElement(common_1.ClusterWizardStep, { navigation: React.createElement(ClusterWizardNavigation_1.default, null), footer: React.createElement(ClusterWizardFooter_1.default, { onNext: () => {
|
|
88
|
+
clusterId ? moveNext() : void createCluster();
|
|
89
|
+
}, isSubmitting: isSubmitting, isNextDisabled: isLoading || (cluster ? false : !values.openshiftVersion), disconnectedClusterId: clusterId }) },
|
|
90
|
+
React.createElement(WithErrorBoundary_1.WithErrorBoundary, { title: "Failed to load Basic step" },
|
|
91
|
+
React.createElement(react_core_1.Grid, { hasGutter: true },
|
|
92
|
+
React.createElement(react_core_1.GridItem, null,
|
|
93
|
+
React.createElement(react_core_1.Content, { component: "h2" }, "Basic information")),
|
|
94
|
+
React.createElement(react_core_1.GridItem, null,
|
|
95
|
+
React.createElement(react_core_1.Flex, { alignItems: { default: 'alignItemsCenter' }, gap: { default: 'gapSm' } },
|
|
96
|
+
React.createElement(common_1.TechnologyPreview, null),
|
|
97
|
+
React.createElement(InstallDisconnectedSwitch_1.default, { isDisabled: !!clusterId }),
|
|
98
|
+
React.createElement("span", null, t("ai:I'm installing on a disconnected/air-gapped/secured environment")))),
|
|
99
|
+
React.createElement(react_core_1.GridItem, null,
|
|
100
|
+
React.createElement(react_core_1.Form, { id: "wizard-cluster-basic-info__form" },
|
|
101
|
+
isLoading ? (React.createElement(react_core_1.Spinner, null)) : cluster ? (React.createElement(OcmOpenShiftVersion_1.default, { openshiftVersion: cluster.openshiftVersion || '', withPreviewText: true, withMultiText: true },
|
|
102
|
+
React.createElement(common_1.ExternalLink, { href: `${window.location.origin}/${common_1.OCP_RELEASES_PAGE}` },
|
|
103
|
+
React.createElement("span", { "data-ouia-id": "openshift-releases-link" }, t('ai:Learn more about OpenShift releases'))))) : (React.createElement(OcmOpenShiftVersionSelect_1.default, { minVersionAllowed: 4021 })),
|
|
104
|
+
React.createElement(common_1.StaticTextField, { name: "cpuArchitecture", label: "CPU architecture", isRequired: true }, "x86_64")))))));
|
|
105
|
+
};
|
|
106
|
+
const BasicStep = () => {
|
|
107
|
+
return (React.createElement(formik_1.Formik, { initialValues: {
|
|
108
|
+
openshiftVersion: '',
|
|
109
|
+
customOpenshiftSelect: null,
|
|
110
|
+
}, onSubmit: () => {
|
|
18
111
|
// nothing to do
|
|
19
112
|
} },
|
|
20
|
-
React.createElement(
|
|
21
|
-
React.createElement(WithErrorBoundary_1.WithErrorBoundary, { title: "Failed to load Basic step" },
|
|
22
|
-
React.createElement(react_core_1.Grid, { hasGutter: true },
|
|
23
|
-
React.createElement(react_core_1.GridItem, null,
|
|
24
|
-
React.createElement(react_core_1.Content, { component: "h2" }, "Basic information")),
|
|
25
|
-
React.createElement(react_core_1.GridItem, null,
|
|
26
|
-
React.createElement(react_core_1.Flex, { alignItems: { default: 'alignItemsCenter' }, gap: { default: 'gapSm' } },
|
|
27
|
-
React.createElement(common_1.TechnologyPreview, null),
|
|
28
|
-
React.createElement(InstallDisconnectedSwitch_1.default, null),
|
|
29
|
-
React.createElement("span", null, t("ai:I'm installing on a disconnected/air-gapped/secured environment")))),
|
|
30
|
-
React.createElement(react_core_1.GridItem, null,
|
|
31
|
-
React.createElement(react_core_1.Form, { id: "wizard-cluster-basic-info__form" },
|
|
32
|
-
React.createElement(OcmOpenShiftVersion_1.default, { openshiftVersion: "4.20", withPreviewText: true, withMultiText: true },
|
|
33
|
-
React.createElement(common_1.ExternalLink, { href: `${window.location.origin}/${common_1.OCP_RELEASES_PAGE}` },
|
|
34
|
-
React.createElement("span", { "data-ouia-id": "openshift-releases-link" }, t('ai:Learn more about OpenShift releases')))),
|
|
35
|
-
React.createElement(common_1.StaticTextField, { name: "cpuArchitecture", label: "CPU architecture", isRequired: true }, "x86_64"))))))));
|
|
113
|
+
React.createElement(BasicStepForm, null)));
|
|
36
114
|
};
|
|
37
115
|
exports.default = BasicStep;
|
|
38
116
|
//# sourceMappingURL=BasicStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BasicStep.js","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,+CAO4B;AAC5B,
|
|
1
|
+
{"version":3,"file":"BasicStep.js","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,+CAO4B;AAC5B,uDAAsF;AACtF,iHAAiF;AACjF,kEAAkE;AAClE,yFAAyD;AACzD,iGAAiE;AACjE,qGAAkG;AAClG,oGAA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gCAClE,8CAAmB,yBAAyB,IACzC,CAAC,CAAC,wCAAwC,CAAC,CACvC,CACM,CACK,CACvB,CAAC,CAAC,CAAC,CACF,oBAAC,mCAAyB,IAAC,iBAAiB,EAAE,IAAI,GAAI,CACvD;wBACD,oBAAC,wBAAe,IAAC,IAAI,EAAC,iBAAiB,EAAC,KAAK,EAAC,kBAAkB,EAAC,UAAU,mBAEzD,CACb,CACE,CACN,CACW,CACF,CACrB,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,SAAS,GAAG,GAAG,EAAE;IACrB,OAAO,CACL,oBAAC,eAAM,IACL,aAAa,EAAE;YACb,gBAAgB,EAAE,EAAE;YACpB,qBAAqB,EAAE,IAAI;SAC5B,EACD,QAAQ,EAAE,GAAG,EAAE;YACb,gBAAgB;QAClB,CAAC;QAED,oBAAC,aAAa,OAAG,CACV,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
+
const common_1 = require("../../../../common");
|
|
6
|
+
const ClusterWizardContext_1 = require("../ClusterWizardContext");
|
|
7
|
+
const ClusterWizardFooter_1 = tslib_1.__importDefault(require("../ClusterWizardFooter"));
|
|
8
|
+
const ClusterWizardNavigation_1 = tslib_1.__importDefault(require("../ClusterWizardNavigation"));
|
|
9
|
+
const StaticIpPage_1 = require("../../clusterConfiguration/staticIp/components/StaticIpPage");
|
|
10
|
+
const WithErrorBoundary_1 = require("../../../../common/components/ErrorHandling/WithErrorBoundary");
|
|
11
|
+
const apis_1 = require("../../../services/apis");
|
|
12
|
+
const getInitialFormStateProps = () => {
|
|
13
|
+
return {
|
|
14
|
+
isValid: true,
|
|
15
|
+
isSubmitting: false,
|
|
16
|
+
isAutoSaveRunning: false,
|
|
17
|
+
errors: {},
|
|
18
|
+
touched: {},
|
|
19
|
+
isEmpty: true,
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
const DisconnectedStaticIp = () => {
|
|
23
|
+
const { moveNext, moveBack, disconnectedInfraEnv, setDisconnectedInfraEnv } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
24
|
+
const { alerts } = (0, common_1.useAlerts)();
|
|
25
|
+
const [formState, setFormStateProps] = react_1.default.useState(getInitialFormStateProps());
|
|
26
|
+
const onFormStateChange = (formState) => {
|
|
27
|
+
setFormStateProps(formState);
|
|
28
|
+
};
|
|
29
|
+
const updateInfraEnv = (params) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
30
|
+
if (!(disconnectedInfraEnv === null || disconnectedInfraEnv === void 0 ? void 0 : disconnectedInfraEnv.id)) {
|
|
31
|
+
throw new Error('No disconnected infraEnv available');
|
|
32
|
+
}
|
|
33
|
+
const { data: updatedInfraEnv } = yield apis_1.InfraEnvsAPI.update(disconnectedInfraEnv.id, params);
|
|
34
|
+
setDisconnectedInfraEnv(updatedInfraEnv);
|
|
35
|
+
return updatedInfraEnv;
|
|
36
|
+
});
|
|
37
|
+
const isNextDisabled = formState.isAutoSaveRunning || !formState.isValid || !!alerts.length || formState.isSubmitting;
|
|
38
|
+
const errorFields = (0, common_1.getFormikErrorFields)(formState.errors, formState.touched);
|
|
39
|
+
const footer = (react_1.default.createElement(ClusterWizardFooter_1.default, { alertTitle: "Static IP configuration contains missing or invalid fields", alertContent: null, errorFields: errorFields, isSubmitting: formState.isSubmitting, onNext: () => moveNext(), onBack: () => moveBack(), isNextDisabled: isNextDisabled, isBackDisabled: formState.isSubmitting || formState.isAutoSaveRunning }));
|
|
40
|
+
if (!disconnectedInfraEnv) {
|
|
41
|
+
return null;
|
|
42
|
+
}
|
|
43
|
+
return (react_1.default.createElement(common_1.ClusterWizardStep, { navigation: react_1.default.createElement(ClusterWizardNavigation_1.default, null), footer: footer },
|
|
44
|
+
react_1.default.createElement(WithErrorBoundary_1.WithErrorBoundary, { title: "Failed to load Static IP step" },
|
|
45
|
+
react_1.default.createElement(StaticIpPage_1.StaticIpPage, { infraEnv: disconnectedInfraEnv, updateInfraEnv: updateInfraEnv, onFormStateChange: onFormStateChange }))));
|
|
46
|
+
};
|
|
47
|
+
exports.default = DisconnectedStaticIp;
|
|
48
|
+
//# sourceMappingURL=DisconnectedStaticIp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DisconnectedStaticIp.js","sourceRoot":"","sources":["../../../../../../lib/ocm/components/clusterWizard/disconnected/DisconnectedStaticIp.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,+CAAwF;AACxF,kEAAkE;AAClE,yFAAyD;AACzD,iGAAiE;AAEjE,8FAA2F;AAC3F,qGAAkG;AAClG,iDAAsD;AAGtD,MAAM,wBAAwB,GAAG,GAAsB,EAAE;IACvD,OAAO;QACL,OAAO,EAAE,IAAI;QACb,YAAY,EAAE,KAAK;QACnB,iBAAiB,EAAE,KAAK;QACxB,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,EAAE;QACX,OAAO,EAAE,IAAI;KACd,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAa,GAAG,EAAE;IAC1C,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,GACzE,IAAA,8CAAuB,GAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,kBAAS,GAAE,CAAC;IAC/B,MAAM,CAAC,SAAS,EAAE,iBAAiB,CAAC,GAAG,eAAK,CAAC,QAAQ,CACnD,wBAAwB,EAAE,CAC3B,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,SAA4B,EAAE,EAAE;QACzD,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC/B,CAAC,CAAC;IAEF,MAAM,cAAc,GAAG,CAAO,MAA4B,EAAE,EAAE;QA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