@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
|
@@ -1,9 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
2
3
|
import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
3
|
-
import
|
|
4
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
5
|
-
import { t_global_color_status_info_100 as infoColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_info_100';
|
|
6
|
-
import { Content } from '@patternfly/react-core';
|
|
4
|
+
import { Content, Icon } from '@patternfly/react-core';
|
|
7
5
|
import {
|
|
8
6
|
FeatureId,
|
|
9
7
|
FeatureIdToSupportLevel,
|
|
@@ -13,7 +11,7 @@ import {
|
|
|
13
11
|
import { TECH_SUPPORT_LEVEL_LINK } from '../../../common/config/docs_links';
|
|
14
12
|
import ExternalLink from '../../../common/components/ui/ExternalLink';
|
|
15
13
|
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
16
|
-
import { DetailItem
|
|
14
|
+
import { DetailItem } from '../../../common';
|
|
17
15
|
import { getLimitedFeatureSupportLevels } from '../../../common/components/newFeatureSupportLevels/utils';
|
|
18
16
|
import { WithErrorBoundary } from '../../../common/components/ErrorHandling/WithErrorBoundary';
|
|
19
17
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
@@ -90,13 +88,17 @@ export const LimitedSupportedCluster = ({
|
|
|
90
88
|
<>
|
|
91
89
|
{showVersionWarning && (
|
|
92
90
|
<Content component="p">
|
|
93
|
-
<
|
|
91
|
+
<Icon status="info" size="sm">
|
|
92
|
+
<InfoCircleIcon />
|
|
93
|
+
</Icon>
|
|
94
94
|
The installed OpenShift version is not production-ready
|
|
95
95
|
</Content>
|
|
96
96
|
)}
|
|
97
97
|
{Object.keys(clusterFeatureSupportLevels).length > 0 && (
|
|
98
98
|
<>
|
|
99
|
-
<
|
|
99
|
+
<Icon status="info" size="sm">
|
|
100
|
+
<InfoCircleIcon />
|
|
101
|
+
</Icon>
|
|
100
102
|
Your cluster will be subject to support limitations because it includes:
|
|
101
103
|
<Content component="ul">{getPreviewFeatureList(clusterFeatureSupportLevels)}</Content>
|
|
102
104
|
</>
|
|
@@ -106,7 +108,9 @@ export const LimitedSupportedCluster = ({
|
|
|
106
108
|
|
|
107
109
|
export const FullySupportedCluster = () => (
|
|
108
110
|
<>
|
|
109
|
-
<
|
|
111
|
+
<Icon status="success">
|
|
112
|
+
<CheckCircleIcon />
|
|
113
|
+
</Icon>
|
|
110
114
|
Your installed cluster will be fully supported
|
|
111
115
|
</>
|
|
112
116
|
);
|
|
@@ -181,6 +181,12 @@ export const getNewFeatureDisabledReason = (
|
|
|
181
181
|
case 'OSC': {
|
|
182
182
|
return getOscDisabledReason(cluster, activeFeatureConfiguration, isSupported);
|
|
183
183
|
}
|
|
184
|
+
case 'SDN_NETWORK_TYPE': {
|
|
185
|
+
if (!isSupported) {
|
|
186
|
+
return 'SDN is not available for the selected configuration.';
|
|
187
|
+
}
|
|
188
|
+
return undefined;
|
|
189
|
+
}
|
|
184
190
|
case 'NETWORK_TYPE_SELECTION': {
|
|
185
191
|
return getNetworkTypeSelectionDisabledReason(cluster);
|
|
186
192
|
}
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
4
|
ButtonVariant,
|
|
5
|
+
Icon,
|
|
5
6
|
IconComponentProps,
|
|
6
7
|
Modal,
|
|
7
8
|
ModalBody,
|
|
@@ -10,7 +11,6 @@ import {
|
|
|
10
11
|
ModalProps,
|
|
11
12
|
} from '@patternfly/react-core';
|
|
12
13
|
import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
13
|
-
import { UiIcon } from '../../../common';
|
|
14
14
|
|
|
15
15
|
export interface InfoLinkWithModalProps {
|
|
16
16
|
linkText: string;
|
|
@@ -43,7 +43,9 @@ const InfoLinkWithModal = ({
|
|
|
43
43
|
<Button id={linkId} variant={ButtonVariant.link} onClick={handleLinkClick} isInline>
|
|
44
44
|
{!isInline && (
|
|
45
45
|
<>
|
|
46
|
-
<
|
|
46
|
+
<Icon size={infoCircleSize}>
|
|
47
|
+
<InfoCircleIcon />
|
|
48
|
+
</Icon>
|
|
47
49
|
|
|
48
50
|
</>
|
|
49
51
|
)}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Cluster } from '@openshift-assisted/types/./assisted-installer-service';
|
|
2
|
+
import { NETWORK_TYPE_OVN, NETWORK_TYPE_SDN } from '../../common/config';
|
|
2
3
|
|
|
3
4
|
export const isOciPlatformType = (cluster: Cluster): boolean => {
|
|
4
5
|
return (
|
|
5
6
|
cluster.platform?.type === 'external' && cluster.platform?.external?.platformName === 'oci'
|
|
6
7
|
);
|
|
7
8
|
};
|
|
9
|
+
|
|
10
|
+
export const isThirdPartyCNI = (networkType: Cluster['networkType']): boolean =>
|
|
11
|
+
!!networkType && networkType !== NETWORK_TYPE_OVN && networkType !== NETWORK_TYPE_SDN;
|
|
@@ -55,12 +55,12 @@ export default function useInfraEnvId(
|
|
|
55
55
|
]);
|
|
56
56
|
|
|
57
57
|
React.useEffect(() => {
|
|
58
|
-
if (!clusterId) {
|
|
58
|
+
if (!clusterId && !isSingleClusterFeatureEnabled) {
|
|
59
59
|
setError('Missing clusterId to load infrastructure environment');
|
|
60
60
|
} else if (!infraEnvId) {
|
|
61
61
|
void findInfraEnvId();
|
|
62
62
|
}
|
|
63
|
-
}, [clusterId, findInfraEnvId, infraEnvId]);
|
|
63
|
+
}, [clusterId, findInfraEnvId, infraEnvId, isSingleClusterFeatureEnabled]);
|
|
64
64
|
|
|
65
65
|
return { infraEnvId, error };
|
|
66
66
|
}
|
|
@@ -31,7 +31,6 @@ const useUISettings = (clusterId?: Cluster['id']) => {
|
|
|
31
31
|
const { data: customManifests } = await ClustersAPI.getManifests(clusterId);
|
|
32
32
|
|
|
33
33
|
const mockUISettings: UISettingsValues = {
|
|
34
|
-
addCustomManifests: !!customManifests.length,
|
|
35
34
|
customManifestsAdded: !!customManifests.length,
|
|
36
35
|
};
|
|
37
36
|
|
|
@@ -105,7 +105,6 @@ const ClusterDetailsService = {
|
|
|
105
105
|
cluster,
|
|
106
106
|
infraEnv,
|
|
107
107
|
urlSearchParams,
|
|
108
|
-
addCustomManifests,
|
|
109
108
|
...args
|
|
110
109
|
}: {
|
|
111
110
|
cluster?: Cluster;
|
|
@@ -114,7 +113,6 @@ const ClusterDetailsService = {
|
|
|
114
113
|
managedDomains: ManagedDomain[];
|
|
115
114
|
ocpVersions: OpenshiftVersionOptionType[];
|
|
116
115
|
urlSearchParams: string;
|
|
117
|
-
addCustomManifests?: boolean;
|
|
118
116
|
}): OcmClusterDetailsValues {
|
|
119
117
|
const values = getClusterDetailsInitialValues({
|
|
120
118
|
cluster,
|
|
@@ -133,7 +131,6 @@ const ClusterDetailsService = {
|
|
|
133
131
|
...values,
|
|
134
132
|
cpuArchitecture,
|
|
135
133
|
hostsNetworkConfigurationType,
|
|
136
|
-
addCustomManifest: !!addCustomManifests,
|
|
137
134
|
isCMNSupported: true,
|
|
138
135
|
isSNODevPreview: false,
|
|
139
136
|
};
|
|
@@ -171,5 +171,11 @@ const ClustersService = {
|
|
|
171
171
|
this.getUpdateManifestParams(existingManifest, updatedManifest),
|
|
172
172
|
);
|
|
173
173
|
},
|
|
174
|
+
registerDisconnected(params: { name: string; openshiftVersion: string }) {
|
|
175
|
+
return ClustersAPI.registerDisconnected({
|
|
176
|
+
name: params.name,
|
|
177
|
+
openshiftVersion: params.openshiftVersion,
|
|
178
|
+
});
|
|
179
|
+
},
|
|
174
180
|
};
|
|
175
181
|
export default ClustersService;
|
|
@@ -21,7 +21,10 @@ const InfraEnvsService = {
|
|
|
21
21
|
const { data: infraEnvs } = await InfraEnvsAPI.list(
|
|
22
22
|
!isSingleClusterFeatureEnabled ? clusterId : '',
|
|
23
23
|
);
|
|
24
|
-
if (
|
|
24
|
+
if (isSingleClusterFeatureEnabled) {
|
|
25
|
+
return infraEnvs[0].id;
|
|
26
|
+
}
|
|
27
|
+
if (infraEnvs.length > 0 && clusterId) {
|
|
25
28
|
InfraEnvCache.updateInfraEnvs(clusterId, infraEnvs);
|
|
26
29
|
infraEnvId = InfraEnvCache.getInfraEnvId(clusterId, cpuArchitecture);
|
|
27
30
|
}
|
|
@@ -21,7 +21,6 @@ export enum HostsNetworkConfigurationType {
|
|
|
21
21
|
|
|
22
22
|
export type OcmClusterDetailsValues = ClusterDetailsValues & {
|
|
23
23
|
hostsNetworkConfigurationType: HostsNetworkConfigurationType;
|
|
24
|
-
addCustomManifest: boolean;
|
|
25
24
|
isCMNSupported: boolean;
|
|
26
25
|
isSNODevPreview: boolean;
|
|
27
26
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "2.
|
|
4
|
-
"@openshift-assisted/types": "2.
|
|
3
|
+
"@openshift-assisted/locales": "2.51.0",
|
|
4
|
+
"@openshift-assisted/types": "2.51.0",
|
|
5
5
|
"@openshift-console/dynamic-plugin-sdk": "1.0.0",
|
|
6
6
|
"@patternfly/patternfly": "6.4.0",
|
|
7
7
|
"@patternfly/react-code-editor": "6.4.0",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"react-i18next": ">11.7.3",
|
|
100
100
|
"react-monaco-editor": "^0.55.0",
|
|
101
101
|
"react-redux": "^8.0.5",
|
|
102
|
-
"react-router-dom-v5-compat": "^6.
|
|
102
|
+
"react-router-dom-v5-compat": "^6.30.3",
|
|
103
103
|
"redux": "^4",
|
|
104
104
|
"uuid": "^8.1",
|
|
105
105
|
"yup": "^1.4.0"
|
|
@@ -136,5 +136,5 @@
|
|
|
136
136
|
]
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
|
-
"version": "2.
|
|
139
|
+
"version": "2.51.0"
|
|
140
140
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { IconComponentProps } from '@patternfly/react-core';
|
|
3
|
-
export type UiIconProps = {
|
|
4
|
-
size?: IconComponentProps['size'];
|
|
5
|
-
status?: IconComponentProps['status'] | undefined;
|
|
6
|
-
icon?: ReactElement;
|
|
7
|
-
className?: string;
|
|
8
|
-
};
|
|
9
|
-
declare const UiIcon: React.FC<UiIconProps>;
|
|
10
|
-
export default UiIcon;
|
|
11
|
-
//# sourceMappingURL=UiIcon.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UiIcon.d.ts","sourceRoot":"","sources":["../../../../../lib/common/components/ui/UiIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAQ,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAElE,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAClC,MAAM,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;IAClD,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAQjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
type CustomManifestCheckboxProps = {
|
|
3
|
-
clusterId: string;
|
|
4
|
-
isDisabled: boolean;
|
|
5
|
-
};
|
|
6
|
-
declare const CustomManifestCheckbox: ({ clusterId, isDisabled }: CustomManifestCheckboxProps) => React.JSX.Element;
|
|
7
|
-
export default CustomManifestCheckbox;
|
|
8
|
-
//# sourceMappingURL=CustomManifestCheckbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomManifestCheckbox.d.ts","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterConfiguration/CustomManifestCheckbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAgC/B,KAAK,2BAA2B,GAAG;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC;AAE9E,QAAA,MAAM,sBAAsB,8BAA+B,2BAA2B,sBA6ErF,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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 react_core_1 = require("@patternfly/react-core");
|
|
6
|
-
const UiIcon = (props) => {
|
|
7
|
-
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
8
|
-
react_1.default.createElement(react_core_1.Icon, { size: props.size ? props.size : 'md', status: props.status, className: props.className }, props.icon)));
|
|
9
|
-
};
|
|
10
|
-
exports.default = UiIcon;
|
|
11
|
-
//# sourceMappingURL=UiIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UiIcon.js","sourceRoot":"","sources":["../../../../../lib/common/components/ui/UiIcon.tsx"],"names":[],"mappings":";;;AAAA,0DAA4C;AAC5C,uDAAkE;AASlE,MAAM,MAAM,GAA0B,CAAC,KAAK,EAAE,EAAE;IAC9C,OAAO,CACL;QACE,8BAAC,iBAAI,IAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,IACzF,KAAK,CAAC,IAAI,CACN,CACN,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,MAAM,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
const React = tslib_1.__importStar(require("react"));
|
|
5
|
-
const react_core_1 = require("@patternfly/react-core");
|
|
6
|
-
const formik_1 = require("formik");
|
|
7
|
-
const common_1 = require("../../../common");
|
|
8
|
-
const OcmFormFields_1 = require("../ui/OcmFormFields");
|
|
9
|
-
const ClusterWizardContext_1 = require("../clusterWizard/ClusterWizardContext");
|
|
10
|
-
const DeleteCustomManifestModal_1 = tslib_1.__importDefault(require("./manifestsConfiguration/DeleteCustomManifestModal"));
|
|
11
|
-
const services_1 = require("../../services");
|
|
12
|
-
const apis_1 = require("../../services/apis");
|
|
13
|
-
const Label = () => {
|
|
14
|
-
return (React.createElement(React.Fragment, null,
|
|
15
|
-
"Include custom manifests",
|
|
16
|
-
' ',
|
|
17
|
-
React.createElement(common_1.PopoverIcon, { noVerticalAlign: true, bodyContent: React.createElement("p", null, "Incorporate third-party manifests that are not supported in Assisted Installer and APIs.") })));
|
|
18
|
-
};
|
|
19
|
-
const CustomManifestCheckbox = ({ clusterId, isDisabled }) => {
|
|
20
|
-
const [{ name }, { value }, { setValue }] = (0, formik_1.useField)('addCustomManifest');
|
|
21
|
-
const fieldId = (0, common_1.getFieldId)(name, 'input');
|
|
22
|
-
const clusterWizardContext = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
23
|
-
const [isDeleteCustomManifestsOpen, setDeleteCustomManifestsOpen] = React.useState(false);
|
|
24
|
-
const cleanCustomManifests = React.useCallback(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
25
|
-
const { data: manifests } = yield apis_1.ClustersAPI.getManifests(clusterId);
|
|
26
|
-
void services_1.ClustersService.removeClusterManifests(manifests, clusterId);
|
|
27
|
-
setValue(false);
|
|
28
|
-
clusterWizardContext.setCustomManifestsStep(false);
|
|
29
|
-
setDeleteCustomManifestsOpen(false);
|
|
30
|
-
yield clusterWizardContext.updateUISettings({
|
|
31
|
-
addCustomManifests: false,
|
|
32
|
-
customManifestsAdded: false,
|
|
33
|
-
});
|
|
34
|
-
}), [clusterWizardContext, setValue, clusterId]);
|
|
35
|
-
const onChange = React.useCallback((checked) => {
|
|
36
|
-
var _a;
|
|
37
|
-
if (!checked && ((_a = clusterWizardContext.uiSettings) === null || _a === void 0 ? void 0 : _a.customManifestsAdded)) {
|
|
38
|
-
setDeleteCustomManifestsOpen(true);
|
|
39
|
-
}
|
|
40
|
-
setValue(checked);
|
|
41
|
-
clusterWizardContext.setCustomManifestsStep(checked);
|
|
42
|
-
}, [setValue, clusterWizardContext, setDeleteCustomManifestsOpen]);
|
|
43
|
-
const onClose = React.useCallback(() => {
|
|
44
|
-
setValue(true);
|
|
45
|
-
clusterWizardContext.setCustomManifestsStep(true);
|
|
46
|
-
setDeleteCustomManifestsOpen(false);
|
|
47
|
-
}, [clusterWizardContext, setValue]);
|
|
48
|
-
return (React.createElement(React.Fragment, null,
|
|
49
|
-
React.createElement(react_core_1.FormGroup, { id: `form-control__${fieldId}`, isInline: true, fieldId: fieldId },
|
|
50
|
-
React.createElement(OcmFormFields_1.OcmCheckbox, { id: fieldId, name: name, label: React.createElement(Label, null), "aria-describedby": `${fieldId}-helper`, description: React.createElement(react_core_1.FormGroup, null,
|
|
51
|
-
React.createElement(react_core_1.FormHelperText, null,
|
|
52
|
-
React.createElement(react_core_1.HelperText, { id: fieldId },
|
|
53
|
-
React.createElement(react_core_1.HelperTextItem, { "data-testid": `input-custommanifestcheckbox-${fieldId}-helper-text` }, "Additional manifests will be applied at the install time for advanced configuration of the cluster.")))), onChange: (_event, value) => onChange(value), className: "with-tooltip", isChecked: value, isDisabled: isDisabled }),
|
|
54
|
-
React.createElement(DeleteCustomManifestModal_1.default, { isOpen: isDeleteCustomManifestsOpen, onClose: onClose, onDelete: () => void cleanCustomManifests() })),
|
|
55
|
-
value && (React.createElement(react_core_1.Alert, { isInline: true, variant: "info", title: 'This is an advanced configuration feature.' }, "Custom manifests will be added to the wizard as a new step."))));
|
|
56
|
-
};
|
|
57
|
-
exports.default = CustomManifestCheckbox;
|
|
58
|
-
//# sourceMappingURL=CustomManifestCheckbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CustomManifestCheckbox.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterConfiguration/CustomManifestCheckbox.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React, { ReactElement } from 'react';
|
|
2
|
-
import { Icon, IconComponentProps } from '@patternfly/react-core';
|
|
3
|
-
|
|
4
|
-
export type UiIconProps = {
|
|
5
|
-
size?: IconComponentProps['size'];
|
|
6
|
-
status?: IconComponentProps['status'] | undefined;
|
|
7
|
-
icon?: ReactElement;
|
|
8
|
-
className?: string;
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
const UiIcon: React.FC<UiIconProps> = (props) => {
|
|
12
|
-
return (
|
|
13
|
-
<>
|
|
14
|
-
<Icon size={props.size ? props.size : 'md'} status={props.status} className={props.className}>
|
|
15
|
-
{props.icon}
|
|
16
|
-
</Icon>
|
|
17
|
-
</>
|
|
18
|
-
);
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export default UiIcon;
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Alert,
|
|
4
|
-
FormGroup,
|
|
5
|
-
FormHelperText,
|
|
6
|
-
HelperText,
|
|
7
|
-
HelperTextItem,
|
|
8
|
-
} from '@patternfly/react-core';
|
|
9
|
-
import { useField } from 'formik';
|
|
10
|
-
import { getFieldId, PopoverIcon } from '../../../common';
|
|
11
|
-
import { OcmCheckbox } from '../ui/OcmFormFields';
|
|
12
|
-
import { useClusterWizardContext } from '../clusterWizard/ClusterWizardContext';
|
|
13
|
-
import DeleteCustomManifestModal from './manifestsConfiguration/DeleteCustomManifestModal';
|
|
14
|
-
import { ClustersService } from '../../services';
|
|
15
|
-
import { ClustersAPI } from '../../services/apis';
|
|
16
|
-
|
|
17
|
-
const Label = () => {
|
|
18
|
-
return (
|
|
19
|
-
<>
|
|
20
|
-
Include custom manifests{' '}
|
|
21
|
-
<PopoverIcon
|
|
22
|
-
noVerticalAlign
|
|
23
|
-
bodyContent={
|
|
24
|
-
<p>
|
|
25
|
-
Incorporate third-party manifests that are not supported in Assisted Installer and APIs.
|
|
26
|
-
</p>
|
|
27
|
-
}
|
|
28
|
-
/>
|
|
29
|
-
</>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
type CustomManifestCheckboxProps = { clusterId: string; isDisabled: boolean };
|
|
34
|
-
|
|
35
|
-
const CustomManifestCheckbox = ({ clusterId, isDisabled }: CustomManifestCheckboxProps) => {
|
|
36
|
-
const [{ name }, { value }, { setValue }] = useField<boolean>('addCustomManifest');
|
|
37
|
-
const fieldId = getFieldId(name, 'input');
|
|
38
|
-
const clusterWizardContext = useClusterWizardContext();
|
|
39
|
-
const [isDeleteCustomManifestsOpen, setDeleteCustomManifestsOpen] = React.useState(false);
|
|
40
|
-
|
|
41
|
-
const cleanCustomManifests = React.useCallback(async () => {
|
|
42
|
-
const { data: manifests } = await ClustersAPI.getManifests(clusterId);
|
|
43
|
-
void ClustersService.removeClusterManifests(manifests, clusterId);
|
|
44
|
-
|
|
45
|
-
setValue(false);
|
|
46
|
-
clusterWizardContext.setCustomManifestsStep(false);
|
|
47
|
-
setDeleteCustomManifestsOpen(false);
|
|
48
|
-
await clusterWizardContext.updateUISettings({
|
|
49
|
-
addCustomManifests: false,
|
|
50
|
-
customManifestsAdded: false,
|
|
51
|
-
});
|
|
52
|
-
}, [clusterWizardContext, setValue, clusterId]);
|
|
53
|
-
|
|
54
|
-
const onChange = React.useCallback(
|
|
55
|
-
(checked: boolean) => {
|
|
56
|
-
if (!checked && clusterWizardContext.uiSettings?.customManifestsAdded) {
|
|
57
|
-
setDeleteCustomManifestsOpen(true);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
setValue(checked);
|
|
61
|
-
clusterWizardContext.setCustomManifestsStep(checked);
|
|
62
|
-
},
|
|
63
|
-
[setValue, clusterWizardContext, setDeleteCustomManifestsOpen],
|
|
64
|
-
);
|
|
65
|
-
|
|
66
|
-
const onClose = React.useCallback(() => {
|
|
67
|
-
setValue(true);
|
|
68
|
-
clusterWizardContext.setCustomManifestsStep(true);
|
|
69
|
-
setDeleteCustomManifestsOpen(false);
|
|
70
|
-
}, [clusterWizardContext, setValue]);
|
|
71
|
-
|
|
72
|
-
return (
|
|
73
|
-
<>
|
|
74
|
-
<FormGroup id={`form-control__${fieldId}`} isInline fieldId={fieldId}>
|
|
75
|
-
<OcmCheckbox
|
|
76
|
-
id={fieldId}
|
|
77
|
-
name={name}
|
|
78
|
-
label={<Label />}
|
|
79
|
-
aria-describedby={`${fieldId}-helper`}
|
|
80
|
-
description={
|
|
81
|
-
<FormGroup>
|
|
82
|
-
<FormHelperText>
|
|
83
|
-
<HelperText id={fieldId}>
|
|
84
|
-
<HelperTextItem
|
|
85
|
-
data-testid={`input-custommanifestcheckbox-${fieldId}-helper-text`}
|
|
86
|
-
>
|
|
87
|
-
Additional manifests will be applied at the install time for advanced
|
|
88
|
-
configuration of the cluster.
|
|
89
|
-
</HelperTextItem>
|
|
90
|
-
</HelperText>
|
|
91
|
-
</FormHelperText>
|
|
92
|
-
</FormGroup>
|
|
93
|
-
}
|
|
94
|
-
onChange={(_event, value) => onChange(value)}
|
|
95
|
-
className="with-tooltip"
|
|
96
|
-
isChecked={value}
|
|
97
|
-
isDisabled={isDisabled}
|
|
98
|
-
/>
|
|
99
|
-
<DeleteCustomManifestModal
|
|
100
|
-
isOpen={isDeleteCustomManifestsOpen}
|
|
101
|
-
onClose={onClose}
|
|
102
|
-
onDelete={() => void cleanCustomManifests()}
|
|
103
|
-
/>
|
|
104
|
-
</FormGroup>
|
|
105
|
-
{value && (
|
|
106
|
-
<Alert isInline variant="info" title={'This is an advanced configuration feature.'}>
|
|
107
|
-
Custom manifests will be added to the wizard as a new step.
|
|
108
|
-
</Alert>
|
|
109
|
-
)}
|
|
110
|
-
</>
|
|
111
|
-
);
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export default CustomManifestCheckbox;
|