@openshift-assisted/ui-lib 2.38.5 → 2.39.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/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts +2 -3
- package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts +3 -0
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts +15 -2
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.d.ts +1 -2
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts +1 -2
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.d.ts +8 -7
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts +4 -2
- package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.d.ts +17 -0
- package/build/@types/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.d.ts +8 -0
- package/build/@types/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts +16 -0
- package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/constants.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/constants.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/index.d.ts +1 -2
- package/build/@types/cim/components/ClusterDeployment/index.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -11
- package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/types.d.ts +7 -9
- package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +8 -2
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +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/HypershiftKubeconfigDownload.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/types.d.ts +6 -3
- package/build/@types/cim/components/Hypershift/types.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.d.ts +7 -0
- package/build/@types/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.d.ts.map +1 -0
- package/build/@types/cim/components/common/CpuArchitectureDropdown.d.ts +2 -1
- package/build/@types/cim/components/common/CpuArchitectureDropdown.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agents.d.ts +3 -0
- package/build/@types/cim/components/helpers/agents.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/clusterDeployment.d.ts +1 -1
- package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/versions.d.ts +2 -2
- package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
- package/build/@types/cim/components/modals/EditAgentModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/ScaleUpModal.d.ts +3 -0
- package/build/@types/cim/components/modals/ScaleUpModal.d.ts.map +1 -1
- package/build/@types/common/api/index.d.ts +1 -0
- package/build/@types/common/api/index.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts +2 -2
- package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/index.d.ts +1 -0
- package/build/@types/common/components/clusterDetail/index.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
- package/build/@types/common/components/hosts/EditHostForm.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostPropertyValidationPopover.d.ts.map +1 -1
- package/build/@types/common/components/newFeatureSupportLevels/types.d.ts +4 -2
- package/build/@types/common/components/newFeatureSupportLevels/types.d.ts.map +1 -1
- package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
- package/build/@types/common/components/ui/DeveloperPreview.d.ts.map +1 -1
- package/build/@types/common/components/ui/{OpenshiftSelectWithSearch.d.ts → OpenShiftSelectWithSearch.d.ts} +3 -3
- package/build/@types/common/components/ui/OpenShiftSelectWithSearch.d.ts.map +1 -0
- package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts +2 -2
- package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts.map +1 -1
- package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts +12 -0
- package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts.map +1 -0
- package/build/@types/common/components/ui/WizardFooter.d.ts +1 -0
- package/build/@types/common/components/ui/WizardFooter.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts +1 -1
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
- package/build/@types/common/components/ui/index.d.ts +2 -0
- package/build/@types/common/components/ui/index.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +20 -0
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/config/docs_links.d.ts +8 -1
- package/build/@types/common/config/docs_links.d.ts.map +1 -1
- package/build/@types/common/hooks/index.d.ts +1 -0
- package/build/@types/common/hooks/index.d.ts.map +1 -1
- package/build/@types/common/index.d.ts +1 -0
- package/build/@types/common/index.d.ts.map +1 -1
- package/build/@types/common/types/clusters.d.ts +5 -0
- package/build/@types/common/types/clusters.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/HostInventory.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/CnvCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/KmmCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/LsoCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/PipelinesChekbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.d.ts +8 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/SupportedOperators.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterDetailsForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizard.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.map +1 -1
- package/build/@types/ocm/components/clusterWizard/KubeconfigDownload.d.ts +7 -0
- package/build/@types/ocm/components/clusterWizard/KubeconfigDownload.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/{OpenshiftVersionsContext.d.ts → OpenShiftVersionsContext.d.ts} +4 -4
- package/build/@types/ocm/components/clusterWizard/{OpenshiftVersionsContext.d.ts.map → OpenShiftVersionsContext.d.ts.map} +1 -1
- package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/constants.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/index.d.ts +2 -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/ClusterPage.d.ts +2 -1
- package/build/@types/ocm/components/clusters/ClusterPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/index.d.ts +3 -0
- package/build/@types/ocm/components/clusters/index.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/ModalDialogsContext.d.ts +5 -1
- package/build/@types/ocm/components/hosts/ModalDialogsContext.d.ts.map +1 -1
- package/build/@types/ocm/components/index.d.ts +2 -0
- package/build/@types/ocm/components/index.d.ts.map +1 -1
- package/build/@types/ocm/hooks/index.d.ts +2 -0
- package/build/@types/ocm/hooks/index.d.ts.map +1 -1
- package/build/@types/ocm/index.d.ts +1 -0
- package/build/@types/ocm/index.d.ts.map +1 -1
- package/build/@types/ocm/services/OperatorsService.d.ts +1 -1
- package/build/@types/ocm/services/OperatorsService.d.ts.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js +9 -7
- package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js +40 -14
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js +13 -29
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js +2 -12
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js +50 -26
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js +3 -3
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.js +39 -21
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js +58 -27
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.js +24 -24
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +26 -42
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.js +12 -8
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js +24 -9
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +5 -5
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.js +50 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.js +24 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js +17 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/constants.js +2 -0
- package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/index.js +2 -5
- package/build/cjs/cim/components/ClusterDeployment/index.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +1 -14
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.js +6 -4
- package/build/cjs/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +2 -12
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +2 -2
- package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/{OpenshiftVersionDropdown.js → InfraEnvOpenShiftVersionDropdown.js} +3 -3
- package/build/cjs/cim/components/InfraEnv/InfraEnvOpenShiftVersionDropdown.js.map +1 -0
- package/build/cjs/cim/components/common/CpuArchitectureDropdown.js +14 -19
- package/build/cjs/cim/components/common/CpuArchitectureDropdown.js.map +1 -1
- package/build/cjs/cim/components/helpers/agents.js +19 -1
- package/build/cjs/cim/components/helpers/agents.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +25 -23
- package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
- package/build/cjs/cim/components/helpers/versions.js +19 -11
- package/build/cjs/cim/components/helpers/versions.js.map +1 -1
- package/build/cjs/cim/components/modals/EditAgentModal.js +2 -2
- package/build/cjs/cim/components/modals/EditAgentModal.js.map +1 -1
- package/build/cjs/cim/components/modals/ScaleUpModal.js +3 -2
- package/build/cjs/cim/components/modals/ScaleUpModal.js.map +1 -1
- package/build/cjs/common/api/index.js +1 -0
- package/build/cjs/common/api/index.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +11 -9
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/index.js +3 -1
- package/build/cjs/common/components/clusterDetail/index.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +14 -18
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +4 -4
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
- package/build/cjs/common/components/hosts/EditHostForm.js +3 -3
- package/build/cjs/common/components/hosts/EditHostForm.js.map +1 -1
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js +12 -9
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js.map +1 -1
- package/build/cjs/common/components/storage/DisksTable.js +0 -2
- package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
- package/build/cjs/common/components/ui/DeveloperPreview.js +2 -1
- package/build/cjs/common/components/ui/DeveloperPreview.js.map +1 -1
- package/build/cjs/common/components/ui/{OpenshiftSelectWithSearch.js → OpenShiftSelectWithSearch.js} +6 -6
- package/build/cjs/common/components/ui/{OpenshiftSelectWithSearch.js.map → OpenShiftSelectWithSearch.js.map} +1 -1
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.css +9 -0
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js +2 -2
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js.map +1 -1
- package/build/cjs/{ocm/components/clusterConfiguration → common/components/ui}/OpenShiftVersionModal.js +4 -6
- package/build/cjs/common/components/ui/OpenShiftVersionModal.js.map +1 -0
- package/build/cjs/common/components/ui/WizardFooter.js +5 -3
- package/build/cjs/common/components/ui/WizardFooter.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RichInputField.js +3 -2
- package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js +18 -15
- package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
- package/build/cjs/common/components/ui/index.js +2 -0
- package/build/cjs/common/components/ui/index.js.map +1 -1
- package/build/cjs/common/config/constants.js +33 -2
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/config/docs_links.js +22 -9
- package/build/cjs/common/config/docs_links.js.map +1 -1
- package/build/cjs/common/hooks/index.js +3 -1
- package/build/cjs/common/hooks/index.js.map +1 -1
- package/build/cjs/common/index.js +1 -0
- package/build/cjs/common/index.js.map +1 -1
- package/build/cjs/common/types/clusters.js.map +1 -1
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js +2 -2
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js +2 -2
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +3 -4
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersion.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js +5 -6
- package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js +1 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js +1 -3
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.js +34 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/KmmCheckbox.js +9 -3
- package/build/cjs/ocm/components/clusterConfiguration/operators/KmmCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.js +34 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js +1 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/LsoCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NmstateCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js +1 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.js +34 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.js +34 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenshiftAIAmdRequirements.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OscCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js +1 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/PipelinesChekbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.js +34 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js +1 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js +1 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js +20 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/SupportedOperators.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.js +9 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +27 -10
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsSelect.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js +8 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +2 -2
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +2 -2
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +2 -2
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +2 -2
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +5 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizard.js +3 -0
- package/build/cjs/ocm/components/clusterWizard/ClusterWizard.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +1 -2
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js +11 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/KubeconfigDownload.js +21 -0
- package/build/cjs/ocm/components/clusterWizard/KubeconfigDownload.js.map +1 -0
- package/build/cjs/ocm/components/clusterWizard/{OpenshiftVersionsContext.js → OpenShiftVersionsContext.js} +10 -10
- package/build/cjs/ocm/components/clusterWizard/{OpenshiftVersionsContext.js.map → OpenShiftVersionsContext.js.map} +1 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js +5 -0
- package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +13 -6
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/constants.js +1 -0
- package/build/cjs/ocm/components/clusterWizard/constants.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/index.js +5 -1
- package/build/cjs/ocm/components/clusterWizard/index.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +3 -0
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterPage.js +7 -9
- package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
- package/build/cjs/ocm/components/clusters/NewClusterPage.js +2 -2
- package/build/cjs/ocm/components/clusters/index.js +7 -1
- package/build/cjs/ocm/components/clusters/index.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.js +2 -2
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +2 -2
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +1 -1
- package/build/cjs/ocm/components/hosts/ModalDialogsContext.js +1 -0
- package/build/cjs/ocm/components/hosts/ModalDialogsContext.js.map +1 -1
- package/build/cjs/ocm/components/index.js +2 -0
- package/build/cjs/ocm/components/index.js.map +1 -1
- package/build/cjs/ocm/hooks/index.js +5 -1
- package/build/cjs/ocm/hooks/index.js.map +1 -1
- package/build/cjs/ocm/hooks/useInfraEnv.js +2 -2
- package/build/cjs/ocm/hooks/useInfraEnv.js.map +1 -1
- package/build/cjs/ocm/index.js +1 -0
- package/build/cjs/ocm/index.js.map +1 -1
- package/build/cjs/ocm/services/OperatorsService.js +7 -2
- package/build/cjs/ocm/services/OperatorsService.js.map +1 -1
- package/lib/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.tsx +11 -9
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.tsx +85 -19
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.tsx +25 -53
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.tsx +7 -16
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.tsx +102 -59
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.tsx +16 -10
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.tsx +84 -48
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.tsx +106 -54
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.tsx +96 -85
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +109 -119
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.tsx +27 -14
- package/lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx +54 -13
- package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +5 -5
- package/lib/cim/components/ClusterDeployment/components/ClusterDeploymentHostsSelectionAdvanced.tsx +107 -0
- package/lib/cim/components/ClusterDeployment/components/ClusterScaleUpAutoHostsSelection.tsx +49 -0
- package/lib/cim/components/ClusterDeployment/components/ValidationSection.tsx +41 -0
- package/lib/cim/components/ClusterDeployment/constants.ts +3 -1
- package/lib/cim/components/ClusterDeployment/index.ts +1 -3
- package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +1 -26
- package/lib/cim/components/ClusterDeployment/types.ts +7 -10
- package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +3 -3
- package/lib/cim/components/Hypershift/DetailsPage/HypershiftKubeconfigDownload.tsx +4 -2
- package/lib/cim/components/Hypershift/types.ts +6 -3
- package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +7 -16
- package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +2 -2
- package/lib/cim/components/InfraEnv/{OpenshiftVersionDropdown.tsx → InfraEnvOpenShiftVersionDropdown.tsx} +2 -2
- package/lib/cim/components/common/CpuArchitectureDropdown.tsx +51 -40
- package/lib/cim/components/helpers/agents.ts +30 -1
- package/lib/cim/components/helpers/toAssisted.ts +12 -8
- package/lib/cim/components/helpers/versions.ts +20 -6
- package/lib/cim/components/modals/EditAgentModal.tsx +2 -1
- package/lib/cim/components/modals/ScaleUpModal.tsx +12 -2
- package/lib/common/api/index.ts +1 -0
- package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +14 -14
- package/lib/common/components/clusterDetail/index.ts +1 -0
- package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +50 -61
- package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +4 -4
- package/lib/common/components/hosts/EditHostForm.tsx +16 -6
- package/lib/common/components/hosts/HostPropertyValidationPopover.tsx +10 -4
- package/lib/common/components/newFeatureSupportLevels/types.ts +14 -10
- package/lib/common/components/storage/DisksTable.tsx +0 -2
- package/lib/common/components/ui/DeveloperPreview.tsx +2 -0
- package/lib/common/components/ui/{OpenshiftSelectWithSearch.tsx → OpenShiftSelectWithSearch.tsx} +4 -4
- package/lib/common/components/ui/OpenShiftVersionDropdown.css +9 -0
- package/lib/common/components/ui/OpenShiftVersionDropdown.tsx +3 -3
- package/lib/{ocm/components/clusterConfiguration → common/components/ui}/OpenShiftVersionModal.tsx +9 -9
- package/lib/common/components/ui/WizardFooter.tsx +26 -10
- package/lib/common/components/ui/formik/RichInputField.tsx +4 -2
- package/lib/common/components/ui/formik/validationSchemas.ts +13 -10
- package/lib/common/components/ui/index.ts +3 -0
- package/lib/common/config/constants.ts +31 -1
- package/lib/common/config/docs_links.ts +37 -7
- package/lib/common/hooks/index.ts +1 -0
- package/lib/common/index.ts +1 -0
- package/lib/common/types/clusters.ts +5 -0
- package/lib/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.tsx +2 -2
- package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.tsx +3 -3
- package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabMock.tsx +3 -3
- package/lib/ocm/components/clusterConfiguration/HostInventory.tsx +0 -1
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +9 -13
- package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersion.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.tsx +9 -5
- package/lib/ocm/components/clusterConfiguration/operators/AmdGpuCheckbox.tsx +2 -1
- package/lib/ocm/components/clusterConfiguration/operators/AuthorinoCheckbox.tsx +3 -7
- package/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx +1 -3
- package/lib/ocm/components/clusterConfiguration/operators/FenceAgentsRemediationCheckbox.tsx +71 -0
- package/lib/ocm/components/clusterConfiguration/operators/KmmCheckbox.tsx +9 -8
- package/lib/ocm/components/clusterConfiguration/operators/KubeDeschedulerCheckbox.tsx +66 -0
- package/lib/ocm/components/clusterConfiguration/operators/LsoCheckbox.tsx +2 -7
- package/lib/ocm/components/clusterConfiguration/operators/LvmCheckbox.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/MceCheckbox.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/MtvOperatorCheckbox.tsx +3 -4
- package/lib/ocm/components/clusterConfiguration/operators/NmstateCheckbox.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/NodeFeatureDiscoveryCheckbox.tsx +2 -7
- package/lib/ocm/components/clusterConfiguration/operators/NodeHealthcheckCheckbox.tsx +66 -0
- package/lib/ocm/components/clusterConfiguration/operators/NodeMaintenanceOperatorCheckbox.tsx +66 -0
- package/lib/ocm/components/clusterConfiguration/operators/NvidiaGpuCheckbox.tsx +2 -1
- package/lib/ocm/components/clusterConfiguration/operators/OdfCheckbox.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/OpenShiftAICheckbox.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/OpenshiftAIAmdRequirements.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/OpenshiftAINvidiaRequirements.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/OscCheckbox.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/PipelinesChekbox.tsx +2 -7
- package/lib/ocm/components/clusterConfiguration/operators/SelfNodeRemediationCheckbox.tsx +68 -0
- package/lib/ocm/components/clusterConfiguration/operators/ServerlessCheckbox.tsx +2 -7
- package/lib/ocm/components/clusterConfiguration/operators/ServicemeshCheckbox.tsx +2 -7
- package/lib/ocm/components/clusterConfiguration/operators/SupportedOperators.tsx +25 -0
- package/lib/ocm/components/clusterConfiguration/operators/VirtualizationRequirements.tsx +9 -0
- package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +55 -30
- package/lib/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/staticIp/commonValidationSchemas.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/BondsSelect.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.tsx +13 -8
- package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +3 -3
- package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +3 -3
- package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +2 -2
- package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +2 -2
- package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +7 -1
- package/lib/ocm/components/clusterWizard/ClusterWizard.tsx +3 -0
- package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +1 -2
- package/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx +15 -1
- package/lib/ocm/components/clusterWizard/KubeconfigDownload.tsx +39 -0
- package/lib/ocm/components/clusterWizard/{OpenshiftVersionsContext.tsx → OpenShiftVersionsContext.tsx} +8 -8
- package/lib/ocm/components/clusterWizard/Operators.tsx +10 -0
- package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +13 -5
- package/lib/ocm/components/clusterWizard/constants.ts +1 -0
- package/lib/ocm/components/clusterWizard/index.ts +2 -0
- package/lib/ocm/components/clusterWizard/wizardTransition.ts +6 -1
- package/lib/ocm/components/clusters/ClusterPage.tsx +16 -13
- package/lib/ocm/components/clusters/NewClusterPage.tsx +3 -3
- package/lib/ocm/components/clusters/index.ts +3 -0
- package/lib/ocm/components/featureSupportLevels/FeatureSupportLevelProvider.tsx +2 -2
- package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +2 -2
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +1 -1
- package/lib/ocm/components/hosts/ModalDialogsContext.tsx +8 -1
- package/lib/ocm/components/index.ts +2 -0
- package/lib/ocm/hooks/index.ts +2 -0
- package/lib/ocm/hooks/useInfraEnv.ts +1 -1
- package/lib/ocm/index.ts +1 -0
- package/lib/ocm/services/OperatorsService.tsx +12 -2
- package/package.json +4 -3
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.d.ts +0 -10
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.d.ts +0 -13
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.d.ts +0 -4
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.d.ts +0 -7
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.d.ts.map +0 -1
- package/build/@types/cim/components/InfraEnv/OpenshiftVersionDropdown.d.ts +0 -7
- package/build/@types/cim/components/InfraEnv/OpenshiftVersionDropdown.d.ts.map +0 -1
- package/build/@types/common/components/ui/OpenshiftSelectWithSearch.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/OpenShiftVersionModal.d.ts +0 -10
- package/build/@types/ocm/components/clusterConfiguration/OpenShiftVersionModal.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterDetail/RebootNodeZeroModal.d.ts +0 -7
- package/build/@types/ocm/components/clusterDetail/RebootNodeZeroModal.d.ts.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.js +0 -31
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.js +0 -50
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.js +0 -35
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.js +0 -9
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.js.map +0 -1
- package/build/cjs/cim/components/InfraEnv/OpenshiftVersionDropdown.js.map +0 -1
- package/build/cjs/common/components/ui/OpenshiftVersionDropdown.css +0 -4
- package/build/cjs/ocm/components/clusterConfiguration/OpenShiftVersionModal.js.map +0 -1
- package/build/cjs/ocm/components/clusterDetail/RebootNodeZeroModal.css +0 -7
- package/build/cjs/ocm/components/clusterDetail/RebootNodeZeroModal.js +0 -35
- package/build/cjs/ocm/components/clusterDetail/RebootNodeZeroModal.js.map +0 -1
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.tsx +0 -79
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardFooter.tsx +0 -128
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardNavigation.tsx +0 -81
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizardStep.tsx +0 -13
- package/lib/common/components/ui/OpenshiftVersionDropdown.css +0 -4
- package/lib/ocm/components/clusterDetail/RebootNodeZeroModal.css +0 -7
- package/lib/ocm/components/clusterDetail/RebootNodeZeroModal.tsx +0 -69
- /package/build/cjs/{ocm/components/clusterConfiguration/OpenshiftVersionModal.css → common/components/ui/OpenShiftVersionModal.css} +0 -0
- /package/lib/{ocm/components/clusterConfiguration/OpenshiftVersionModal.css → common/components/ui/OpenShiftVersionModal.css} +0 -0
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
Alert,
|
|
4
|
+
AlertVariant,
|
|
5
|
+
Stack,
|
|
6
|
+
StackItem,
|
|
7
|
+
useWizardContext,
|
|
8
|
+
useWizardFooter,
|
|
9
|
+
WizardFooter,
|
|
10
|
+
} from '@patternfly/react-core';
|
|
3
11
|
import { AgentClusterInstallK8sResource, ClusterDeploymentK8sResource, OsImage } from '../../types';
|
|
4
12
|
import { ClusterImageSetK8sResource } from '../../types/k8s/cluster-image-set';
|
|
5
13
|
import { getOCPVersions, getSelectedVersion } from '../helpers';
|
|
@@ -10,6 +18,9 @@ import {
|
|
|
10
18
|
} from './ClusterDetailsFormFields';
|
|
11
19
|
import { useFormikContext } from 'formik';
|
|
12
20
|
import { ClusterDetailsValues, CpuArchitecture, SupportedCpuArchitecture } from '../../../common';
|
|
21
|
+
import { ClusterDeploymentWizardContext } from './ClusterDeploymentWizardContext';
|
|
22
|
+
import { ValidationSection } from './components/ValidationSection';
|
|
23
|
+
import { toNumber } from 'lodash-es';
|
|
13
24
|
|
|
14
25
|
type ClusterDeploymentDetailsFormProps = {
|
|
15
26
|
clusterImages: ClusterImageSetK8sResource[];
|
|
@@ -20,6 +31,59 @@ type ClusterDeploymentDetailsFormProps = {
|
|
|
20
31
|
osImages?: OsImage[];
|
|
21
32
|
};
|
|
22
33
|
|
|
34
|
+
export const ClusterDeploymentDetailsFormWrapper = ({
|
|
35
|
+
children,
|
|
36
|
+
}: {
|
|
37
|
+
children: React.ReactNode;
|
|
38
|
+
}) => {
|
|
39
|
+
const { activeStep, goToPrevStep, goToNextStep, close } = useWizardContext();
|
|
40
|
+
const { syncError } = React.useContext(ClusterDeploymentWizardContext);
|
|
41
|
+
const { submitForm, isSubmitting, isValid, isValidating, dirty } =
|
|
42
|
+
useFormikContext<ClusterDetailsValues>();
|
|
43
|
+
const { t } = useTranslation();
|
|
44
|
+
|
|
45
|
+
const handleOnNext = React.useCallback(() => {
|
|
46
|
+
if (dirty) {
|
|
47
|
+
void submitForm();
|
|
48
|
+
} else {
|
|
49
|
+
void goToNextStep();
|
|
50
|
+
}
|
|
51
|
+
}, [dirty, goToNextStep, submitForm]);
|
|
52
|
+
|
|
53
|
+
const footer = React.useMemo(
|
|
54
|
+
() => (
|
|
55
|
+
<WizardFooter
|
|
56
|
+
activeStep={activeStep}
|
|
57
|
+
onNext={handleOnNext}
|
|
58
|
+
isNextDisabled={!isValid || isValidating || isSubmitting}
|
|
59
|
+
nextButtonProps={{ isLoading: isSubmitting }}
|
|
60
|
+
nextButtonText={t('ai:Next')}
|
|
61
|
+
onBack={goToPrevStep}
|
|
62
|
+
onClose={close}
|
|
63
|
+
isBackHidden
|
|
64
|
+
/>
|
|
65
|
+
),
|
|
66
|
+
[activeStep, close, goToPrevStep, handleOnNext, isSubmitting, isValid, isValidating, t],
|
|
67
|
+
);
|
|
68
|
+
|
|
69
|
+
useWizardFooter(footer);
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<Stack hasGutter>
|
|
73
|
+
{children}
|
|
74
|
+
{syncError && (
|
|
75
|
+
<StackItem>
|
|
76
|
+
<ValidationSection currentStepId={'networking'} hosts={[]}>
|
|
77
|
+
<Alert variant={AlertVariant.danger} title={t('ai:An error occured')} isInline>
|
|
78
|
+
{syncError}
|
|
79
|
+
</Alert>
|
|
80
|
+
</ValidationSection>
|
|
81
|
+
</StackItem>
|
|
82
|
+
)}
|
|
83
|
+
</Stack>
|
|
84
|
+
);
|
|
85
|
+
};
|
|
86
|
+
|
|
23
87
|
const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps> = ({
|
|
24
88
|
agentClusterInstall,
|
|
25
89
|
clusterDeployment,
|
|
@@ -29,11 +93,16 @@ const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps>
|
|
|
29
93
|
osImages,
|
|
30
94
|
}) => {
|
|
31
95
|
const { t } = useTranslation();
|
|
32
|
-
const
|
|
96
|
+
const versions = React.useMemo(
|
|
33
97
|
() => getOCPVersions(clusterImages, isNutanix, osImages),
|
|
34
98
|
[clusterImages, isNutanix, osImages],
|
|
35
99
|
);
|
|
36
100
|
|
|
101
|
+
const allVersions = React.useMemo(
|
|
102
|
+
() => getOCPVersions(clusterImages, isNutanix, osImages, true),
|
|
103
|
+
[clusterImages, isNutanix, osImages],
|
|
104
|
+
);
|
|
105
|
+
|
|
37
106
|
const forceOpenshiftVersion = agentClusterInstall
|
|
38
107
|
? getSelectedVersion(clusterImages, agentClusterInstall)
|
|
39
108
|
: undefined;
|
|
@@ -41,25 +110,20 @@ const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps>
|
|
|
41
110
|
|
|
42
111
|
const { values } = useFormikContext<ClusterDetailsValues>();
|
|
43
112
|
|
|
44
|
-
const cpuArchitectures = React.useMemo(() => {
|
|
113
|
+
const [cpuArchitectures, allowHighlyAvailable] = React.useMemo(() => {
|
|
45
114
|
const cpuArchitectures = [CpuArchitecture.x86, CpuArchitecture.ARM, CpuArchitecture.s390x];
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}
|
|
115
|
+
const version = allVersions.find((ver) => ver.value === values.openshiftVersion);
|
|
116
|
+
const isMulti = version?.cpuArchitectures?.[0] === CpuArchitecture.MULTI;
|
|
49
117
|
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
?.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return osImages
|
|
57
|
-
.filter((osImage) => osImage.openshiftVersion === openshiftVersion)
|
|
58
|
-
.map((osImage) => osImage.cpuArchitecture as SupportedCpuArchitecture);
|
|
59
|
-
}, [osImages, ocpVersions, values.openshiftVersion]);
|
|
118
|
+
const highlyAvailableSupported = toNumber(version?.version?.split('.')?.[1]) >= 18;
|
|
119
|
+
return [
|
|
120
|
+
(isMulti ? cpuArchitectures : version?.cpuArchitectures) as SupportedCpuArchitecture[],
|
|
121
|
+
highlyAvailableSupported && !isMulti,
|
|
122
|
+
];
|
|
123
|
+
}, [allVersions, values.openshiftVersion]);
|
|
60
124
|
|
|
61
125
|
return (
|
|
62
|
-
|
|
126
|
+
<>
|
|
63
127
|
{isEditFlow && (
|
|
64
128
|
<StackItem>
|
|
65
129
|
<Alert
|
|
@@ -71,15 +135,17 @@ const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps>
|
|
|
71
135
|
)}
|
|
72
136
|
<StackItem>
|
|
73
137
|
<ClusterDetailsFormFields
|
|
74
|
-
versions={
|
|
138
|
+
versions={versions}
|
|
139
|
+
allVersions={allVersions}
|
|
75
140
|
isEditFlow={isEditFlow}
|
|
76
141
|
forceOpenshiftVersion={forceOpenshiftVersion}
|
|
77
142
|
extensionAfter={extensionAfter}
|
|
78
143
|
isNutanix={isNutanix}
|
|
79
144
|
cpuArchitectures={cpuArchitectures}
|
|
145
|
+
allowHighlyAvailable={allowHighlyAvailable}
|
|
80
146
|
/>
|
|
81
147
|
</StackItem>
|
|
82
|
-
|
|
148
|
+
</>
|
|
83
149
|
);
|
|
84
150
|
};
|
|
85
151
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Formik } from 'formik';
|
|
3
3
|
import { Lazy } from 'yup';
|
|
4
|
-
import { Grid, GridItem } from '@patternfly/react-core';
|
|
4
|
+
import { Grid, GridItem, useWizardContext } from '@patternfly/react-core';
|
|
5
5
|
|
|
6
6
|
import {
|
|
7
7
|
useAlerts,
|
|
@@ -15,9 +15,6 @@ import {
|
|
|
15
15
|
} from '../../../common';
|
|
16
16
|
|
|
17
17
|
import { ClusterDeploymentDetailsStepProps, ClusterDeploymentDetailsValues } from './types';
|
|
18
|
-
import ClusterDeploymentWizardFooter from './ClusterDeploymentWizardFooter';
|
|
19
|
-
import ClusterDeploymentWizardContext from './ClusterDeploymentWizardContext';
|
|
20
|
-
import ClusterDeploymentWizardStep from './ClusterDeploymentWizardStep';
|
|
21
18
|
import { getAICluster, getNetworkType, getOCPVersions } from '../helpers';
|
|
22
19
|
import {
|
|
23
20
|
AgentClusterInstallK8sResource,
|
|
@@ -25,8 +22,10 @@ import {
|
|
|
25
22
|
ClusterDeploymentK8sResource,
|
|
26
23
|
InfraEnvK8sResource,
|
|
27
24
|
} from '../../types';
|
|
28
|
-
import ClusterDeploymentDetailsForm
|
|
29
|
-
|
|
25
|
+
import ClusterDeploymentDetailsForm, {
|
|
26
|
+
ClusterDeploymentDetailsFormWrapper,
|
|
27
|
+
} from './ClusterDeploymentDetailsForm';
|
|
28
|
+
import { getGridSpans } from './helpers';
|
|
30
29
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
31
30
|
|
|
32
31
|
type UseDetailsFormikArgs = {
|
|
@@ -108,15 +107,16 @@ const ClusterDeploymentDetailsStep: React.FC<ClusterDeploymentDetailsStepProps>
|
|
|
108
107
|
agents,
|
|
109
108
|
usedClusterNames,
|
|
110
109
|
onSaveDetails,
|
|
111
|
-
onClose,
|
|
112
110
|
isPreviewOpen,
|
|
113
111
|
infraEnv,
|
|
114
112
|
isNutanix,
|
|
115
113
|
}) => {
|
|
116
|
-
const { addAlert } = useAlerts();
|
|
117
|
-
const { setCurrentStepId } = React.useContext(ClusterDeploymentWizardContext);
|
|
118
114
|
const { t } = useTranslation();
|
|
115
|
+
const { addAlert } = useAlerts();
|
|
116
|
+
const { goToNextStep } = useWizardContext();
|
|
117
|
+
|
|
119
118
|
const ocpVersions = getOCPVersions(clusterImages, isNutanix);
|
|
119
|
+
const gridSpans = getGridSpans(isPreviewOpen);
|
|
120
120
|
|
|
121
121
|
const [initialValues, validationSchema] = useDetailsFormik({
|
|
122
122
|
clusterDeployment,
|
|
@@ -126,15 +126,11 @@ const ClusterDeploymentDetailsStep: React.FC<ClusterDeploymentDetailsStepProps>
|
|
|
126
126
|
usedClusterNames,
|
|
127
127
|
infraEnv,
|
|
128
128
|
});
|
|
129
|
-
const next = () =>
|
|
130
|
-
isCIMFlow(clusterDeployment)
|
|
131
|
-
? setCurrentStepId('hosts-selection')
|
|
132
|
-
: setCurrentStepId('hosts-discovery');
|
|
133
129
|
|
|
134
130
|
const handleSubmit = async (values: ClusterDeploymentDetailsValues) => {
|
|
135
131
|
try {
|
|
136
132
|
await onSaveDetails(values);
|
|
137
|
-
|
|
133
|
+
await goToNextStep();
|
|
138
134
|
} catch (error) {
|
|
139
135
|
addAlert({
|
|
140
136
|
title: t('ai:Failed to save ClusterDeployment'),
|
|
@@ -149,45 +145,21 @@ const ClusterDeploymentDetailsStep: React.FC<ClusterDeploymentDetailsStepProps>
|
|
|
149
145
|
validate={getRichTextValidation(validationSchema)}
|
|
150
146
|
onSubmit={handleSubmit}
|
|
151
147
|
>
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
onCancel={onClose}
|
|
168
|
-
/>
|
|
169
|
-
);
|
|
170
|
-
|
|
171
|
-
const gridSpans = getGridSpans(isPreviewOpen);
|
|
172
|
-
|
|
173
|
-
return (
|
|
174
|
-
<ClusterDeploymentWizardStep footer={footer}>
|
|
175
|
-
<Grid hasGutter>
|
|
176
|
-
<GridItem>
|
|
177
|
-
<ClusterWizardStepHeader>Cluster Details</ClusterWizardStepHeader>
|
|
178
|
-
</GridItem>
|
|
179
|
-
<GridItem {...gridSpans}>
|
|
180
|
-
<ClusterDeploymentDetailsForm
|
|
181
|
-
agentClusterInstall={agentClusterInstall}
|
|
182
|
-
clusterDeployment={clusterDeployment}
|
|
183
|
-
clusterImages={clusterImages}
|
|
184
|
-
isNutanix={isNutanix}
|
|
185
|
-
/>
|
|
186
|
-
</GridItem>
|
|
187
|
-
</Grid>
|
|
188
|
-
</ClusterDeploymentWizardStep>
|
|
189
|
-
);
|
|
190
|
-
}}
|
|
148
|
+
<Grid hasGutter>
|
|
149
|
+
<GridItem>
|
|
150
|
+
<ClusterWizardStepHeader>Cluster Details</ClusterWizardStepHeader>
|
|
151
|
+
</GridItem>
|
|
152
|
+
<GridItem {...gridSpans}>
|
|
153
|
+
<ClusterDeploymentDetailsFormWrapper>
|
|
154
|
+
<ClusterDeploymentDetailsForm
|
|
155
|
+
agentClusterInstall={agentClusterInstall}
|
|
156
|
+
clusterDeployment={clusterDeployment}
|
|
157
|
+
clusterImages={clusterImages}
|
|
158
|
+
isNutanix={isNutanix}
|
|
159
|
+
/>
|
|
160
|
+
</ClusterDeploymentDetailsFormWrapper>
|
|
161
|
+
</GridItem>
|
|
162
|
+
</Grid>
|
|
191
163
|
</Formik>
|
|
192
164
|
);
|
|
193
165
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import noop from 'lodash-es/noop.js';
|
|
3
2
|
import { Stack, StackItem } from '@patternfly/react-core';
|
|
4
3
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
5
4
|
import {
|
|
@@ -28,13 +27,13 @@ import {
|
|
|
28
27
|
} from '../../../common';
|
|
29
28
|
import { ClusterDeploymentHostDiscoveryTableProps } from '../ClusterDeployment/types';
|
|
30
29
|
import MassApproveAgentModal from '../modals/MassApproveAgentModal';
|
|
31
|
-
import { MassChangeHostnameModalProps } from '../../../common/components/hosts/MassChangeHostnameModal';
|
|
32
30
|
import MassApproveAction from '../modals/MassApproveAction';
|
|
33
31
|
import { usePagination } from '../../../common/components/hosts/usePagination';
|
|
34
32
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
35
33
|
import { ExpandComponent } from '../Agent/AgentsSelectionTable';
|
|
36
34
|
import { HostsTableDetailContextProvider } from '../../../common/components/hosts/HostsTableDetailContext';
|
|
37
35
|
import { agentStatus, bmhStatus } from '../helpers/agentStatus';
|
|
36
|
+
import { onAgentChangeHostname } from '../helpers';
|
|
38
37
|
|
|
39
38
|
const ClusterDeploymentHostDiscoveryTable: React.FC<ClusterDeploymentHostDiscoveryTableProps> = ({
|
|
40
39
|
agents,
|
|
@@ -126,19 +125,6 @@ const ClusterDeploymentHostDiscoveryTable: React.FC<ClusterDeploymentHostDiscove
|
|
|
126
125
|
/>,
|
|
127
126
|
];
|
|
128
127
|
|
|
129
|
-
const onAgentChangeHostname: MassChangeHostnameModalProps['onChangeHostname'] = async (
|
|
130
|
-
host,
|
|
131
|
-
hostname,
|
|
132
|
-
) => {
|
|
133
|
-
const agent = agents.find((a) => a.metadata?.uid === host.id);
|
|
134
|
-
if (agent) {
|
|
135
|
-
return onChangeHostname(agent, hostname);
|
|
136
|
-
} else {
|
|
137
|
-
const bmh = bareMetalHosts.find((bmh) => bmh.metadata?.uid === host.id);
|
|
138
|
-
return bmh ? onChangeBMHHostname(bmh, hostname) : noop;
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
|
|
142
128
|
const paginationProps = usePagination(hosts.length);
|
|
143
129
|
const itemIDs = hosts.map((h) => h.id);
|
|
144
130
|
|
|
@@ -185,7 +171,12 @@ const ClusterDeploymentHostDiscoveryTable: React.FC<ClusterDeploymentHostDiscove
|
|
|
185
171
|
isOpen={isMassChangeHostOpen}
|
|
186
172
|
hosts={hosts}
|
|
187
173
|
selectedHostIDs={selectedHostIDs}
|
|
188
|
-
onChangeHostname={onAgentChangeHostname
|
|
174
|
+
onChangeHostname={onAgentChangeHostname(
|
|
175
|
+
agents,
|
|
176
|
+
bareMetalHosts,
|
|
177
|
+
onChangeHostname,
|
|
178
|
+
onChangeBMHHostname,
|
|
179
|
+
)}
|
|
189
180
|
onClose={() => setMassChangeHostOpen(false)}
|
|
190
181
|
canChangeHostname={canChangeHostname(agents, agentStatuses, bareMetalHosts, t)}
|
|
191
182
|
/>
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Yup from 'yup';
|
|
3
3
|
import { Formik, FormikConfig, useFormikContext } from 'formik';
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import {
|
|
5
|
+
Alert,
|
|
6
|
+
AlertVariant,
|
|
7
|
+
Grid,
|
|
8
|
+
GridItem,
|
|
9
|
+
useWizardContext,
|
|
10
|
+
useWizardFooter,
|
|
11
|
+
WizardFooter,
|
|
12
|
+
} from '@patternfly/react-core';
|
|
13
|
+
import { Alerts, ClusterWizardStepHeader, useAlerts } from '../../../common';
|
|
6
14
|
import {
|
|
7
15
|
AgentClusterInstallK8sResource,
|
|
8
16
|
AgentK8sResource,
|
|
9
17
|
ClusterDeploymentK8sResource,
|
|
10
18
|
} from '../../types';
|
|
11
|
-
import ClusterDeploymentWizardContext from './ClusterDeploymentWizardContext';
|
|
12
|
-
import ClusterDeploymentWizardFooter from './ClusterDeploymentWizardFooter';
|
|
13
|
-
import ClusterDeploymentWizardStep from './ClusterDeploymentWizardStep';
|
|
14
19
|
import ClusterDeploymentHostsSelection from './ClusterDeploymentHostsSelection';
|
|
15
20
|
import {
|
|
16
21
|
ClusterDeploymentHostSelectionStepProps,
|
|
@@ -25,6 +30,8 @@ import {
|
|
|
25
30
|
import { canNextFromHostSelectionStep } from './wizardTransition';
|
|
26
31
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
27
32
|
import { TFunction } from 'i18next';
|
|
33
|
+
import { ValidationSection } from './components/ValidationSection';
|
|
34
|
+
import { ClusterDeploymentWizardContext } from './ClusterDeploymentWizardContext';
|
|
28
35
|
|
|
29
36
|
const getInitialValues = ({
|
|
30
37
|
agents,
|
|
@@ -138,14 +145,15 @@ type HostSelectionFormProps = Omit<ClusterDeploymentHostSelectionStepProps, 'onS
|
|
|
138
145
|
const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
|
|
139
146
|
agents,
|
|
140
147
|
agentClusterInstall,
|
|
141
|
-
onClose,
|
|
142
148
|
clusterDeployment,
|
|
143
149
|
aiConfigMap,
|
|
144
150
|
onEditRole: onEditRoleInit,
|
|
145
151
|
onSetInstallationDiskId,
|
|
146
152
|
isNutanix,
|
|
147
153
|
}) => {
|
|
148
|
-
const {
|
|
154
|
+
const { activeStep, goToNextStep, goToPrevStep, close } = useWizardContext();
|
|
155
|
+
const { syncError } = React.useContext(ClusterDeploymentWizardContext);
|
|
156
|
+
const { alerts } = useAlerts();
|
|
149
157
|
const [showClusterErrors, setShowClusterErrors] = React.useState(false);
|
|
150
158
|
const {
|
|
151
159
|
values,
|
|
@@ -186,7 +194,7 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
|
|
|
186
194
|
setShowClusterErrors(false);
|
|
187
195
|
}, []);
|
|
188
196
|
|
|
189
|
-
const onNext = async () => {
|
|
197
|
+
const onNext = React.useCallback(async () => {
|
|
190
198
|
if (!showFormErrors) {
|
|
191
199
|
setShowFormErrors(true);
|
|
192
200
|
const errors = await validateForm();
|
|
@@ -202,7 +210,7 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
|
|
|
202
210
|
}
|
|
203
211
|
void submitForm();
|
|
204
212
|
setNextRequested(true);
|
|
205
|
-
};
|
|
213
|
+
}, [setTouched, showFormErrors, submitForm, validateForm]);
|
|
206
214
|
|
|
207
215
|
React.useEffect(() => {
|
|
208
216
|
if (nextRequested && !isSubmitting) {
|
|
@@ -223,71 +231,106 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
|
|
|
223
231
|
) {
|
|
224
232
|
setShowClusterErrors(true);
|
|
225
233
|
if (canNextFromHostSelectionStep(agentClusterInstall, selectedAgents)) {
|
|
226
|
-
|
|
234
|
+
void goToNextStep();
|
|
227
235
|
}
|
|
228
236
|
}
|
|
229
237
|
}
|
|
230
|
-
}, [nextRequested, selectedAgents, agentClusterInstall,
|
|
231
|
-
|
|
232
|
-
let submittingText: string | undefined = undefined;
|
|
238
|
+
}, [nextRequested, selectedAgents, agentClusterInstall, isSubmitting, t, goToNextStep]);
|
|
233
239
|
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
240
|
+
const submittingText = React.useMemo(() => {
|
|
241
|
+
if (isSubmitting) {
|
|
242
|
+
return t('ai:Saving changes...');
|
|
243
|
+
} else if (nextRequested && !showClusterErrors) {
|
|
244
|
+
return t('ai:Binding hosts...');
|
|
245
|
+
}
|
|
246
|
+
return undefined;
|
|
247
|
+
}, [isSubmitting, nextRequested, showClusterErrors, t]);
|
|
239
248
|
|
|
240
|
-
|
|
249
|
+
React.useEffect(() => {
|
|
250
|
+
if (syncError) {
|
|
251
|
+
setNextRequested(false);
|
|
252
|
+
}
|
|
253
|
+
}, [syncError]);
|
|
241
254
|
|
|
242
|
-
const
|
|
243
|
-
<
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
submittingText={submittingText}
|
|
248
|
-
isNextDisabled={
|
|
249
|
-
nextRequested || isSubmitting || (showFormErrors ? !isValid || isValidating : false)
|
|
250
|
-
}
|
|
251
|
-
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
252
|
-
onNext={onNext}
|
|
253
|
-
onBack={() => setCurrentStepId('cluster-details')}
|
|
254
|
-
onCancel={onClose}
|
|
255
|
-
showClusterErrors={showClusterErrors}
|
|
256
|
-
onSyncError={onSyncError}
|
|
257
|
-
>
|
|
258
|
-
{showFormErrors && errors.selectedHostIds && touched.selectedHostIds && (
|
|
259
|
-
<Alert
|
|
260
|
-
variant={AlertVariant.danger}
|
|
261
|
-
title={t('ai:Provided cluster configuration is not valid')}
|
|
262
|
-
isInline
|
|
263
|
-
>
|
|
264
|
-
{errors.selectedHostIds}
|
|
255
|
+
const errorsSection = (
|
|
256
|
+
<ValidationSection currentStepId={'cluster-details'} hosts={[]}>
|
|
257
|
+
{syncError && (
|
|
258
|
+
<Alert variant={AlertVariant.danger} title={t('ai:An error occured')} isInline>
|
|
259
|
+
{syncError}
|
|
265
260
|
</Alert>
|
|
266
261
|
)}
|
|
267
|
-
</
|
|
262
|
+
</ValidationSection>
|
|
268
263
|
);
|
|
269
264
|
|
|
265
|
+
const footer = React.useMemo(
|
|
266
|
+
() => (
|
|
267
|
+
<WizardFooter
|
|
268
|
+
activeStep={activeStep}
|
|
269
|
+
onNext={onNext}
|
|
270
|
+
isNextDisabled={
|
|
271
|
+
nextRequested || isSubmitting || (showFormErrors ? !isValid || isValidating : false) // ||
|
|
272
|
+
// !!syncError
|
|
273
|
+
}
|
|
274
|
+
nextButtonText={submittingText || t('ai:Next')}
|
|
275
|
+
nextButtonProps={{ isLoading: !!submittingText }}
|
|
276
|
+
onBack={goToPrevStep}
|
|
277
|
+
onClose={close}
|
|
278
|
+
/>
|
|
279
|
+
),
|
|
280
|
+
[
|
|
281
|
+
activeStep,
|
|
282
|
+
onNext,
|
|
283
|
+
nextRequested,
|
|
284
|
+
isSubmitting,
|
|
285
|
+
showFormErrors,
|
|
286
|
+
isValid,
|
|
287
|
+
isValidating,
|
|
288
|
+
submittingText,
|
|
289
|
+
t,
|
|
290
|
+
goToPrevStep,
|
|
291
|
+
close,
|
|
292
|
+
],
|
|
293
|
+
);
|
|
294
|
+
|
|
295
|
+
useWizardFooter(footer);
|
|
296
|
+
|
|
270
297
|
return (
|
|
271
|
-
<
|
|
272
|
-
<
|
|
298
|
+
<Grid hasGutter>
|
|
299
|
+
<GridItem>
|
|
300
|
+
<ClusterWizardStepHeader>{t('ai:Cluster hosts')}</ClusterWizardStepHeader>
|
|
301
|
+
</GridItem>
|
|
302
|
+
<GridItem>
|
|
303
|
+
<ClusterDeploymentHostsSelection
|
|
304
|
+
agentClusterInstall={agentClusterInstall}
|
|
305
|
+
agents={agents}
|
|
306
|
+
clusterDeployment={clusterDeployment}
|
|
307
|
+
aiConfigMap={aiConfigMap}
|
|
308
|
+
onEditRole={onEditRole}
|
|
309
|
+
onSetInstallationDiskId={onSetInstallationDiskId}
|
|
310
|
+
onAutoSelectChange={onAutoSelectChange}
|
|
311
|
+
onHostSelect={onHostSelect}
|
|
312
|
+
isNutanix={isNutanix}
|
|
313
|
+
/>
|
|
314
|
+
</GridItem>
|
|
315
|
+
{(showClusterErrors || showFormErrors) && !!alerts.length && (
|
|
273
316
|
<GridItem>
|
|
274
|
-
<
|
|
317
|
+
<Alerts />
|
|
275
318
|
</GridItem>
|
|
319
|
+
)}
|
|
320
|
+
|
|
321
|
+
{syncError && <GridItem>{errorsSection}</GridItem>}
|
|
322
|
+
{showFormErrors && errors.selectedHostIds && touched.selectedHostIds && (
|
|
276
323
|
<GridItem>
|
|
277
|
-
<
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
onAutoSelectChange={onAutoSelectChange}
|
|
285
|
-
onHostSelect={onHostSelect}
|
|
286
|
-
isNutanix={isNutanix}
|
|
287
|
-
/>
|
|
324
|
+
<Alert
|
|
325
|
+
variant={AlertVariant.danger}
|
|
326
|
+
title={t('ai:Provided cluster configuration is not valid')}
|
|
327
|
+
isInline
|
|
328
|
+
>
|
|
329
|
+
{errors.selectedHostIds}
|
|
330
|
+
</Alert>
|
|
288
331
|
</GridItem>
|
|
289
|
-
|
|
290
|
-
</
|
|
332
|
+
)}
|
|
333
|
+
</Grid>
|
|
291
334
|
);
|
|
292
335
|
};
|
|
293
336
|
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
HostsNotShowingLink,
|
|
16
16
|
VMRebootConfigurationInfo,
|
|
17
17
|
} from '../../../common';
|
|
18
|
-
import { getIsSNOCluster } from '../helpers';
|
|
18
|
+
import { getIsSNOCluster, onAgentChangeHostname } from '../helpers';
|
|
19
19
|
import MinimalHWRequirements from '../Agent/MinimalHWRequirements';
|
|
20
20
|
import { ClusterDeploymentHostsDiscoveryProps } from './types';
|
|
21
21
|
import { EditBMHModal, EditAgentModal } from '../modals';
|
|
@@ -57,7 +57,7 @@ const ClusterDeploymentHostsDiscovery: React.FC<ClusterDeploymentHostsDiscoveryP
|
|
|
57
57
|
infraEnv,
|
|
58
58
|
infraNMStates,
|
|
59
59
|
usedHostnames,
|
|
60
|
-
|
|
60
|
+
onChangeHostname,
|
|
61
61
|
onEditRole,
|
|
62
62
|
onSetInstallationDiskId,
|
|
63
63
|
onSaveBMH,
|
|
@@ -119,7 +119,7 @@ const ClusterDeploymentHostsDiscovery: React.FC<ClusterDeploymentHostsDiscoveryP
|
|
|
119
119
|
onEditRole={onEditRole}
|
|
120
120
|
onSetInstallationDiskId={onSetInstallationDiskId}
|
|
121
121
|
onEditBMH={setEditBMH}
|
|
122
|
-
onChangeHostname={
|
|
122
|
+
onChangeHostname={onChangeHostname}
|
|
123
123
|
onChangeBMHHostname={onChangeBMHHostname}
|
|
124
124
|
onApprove={onApproveAgent}
|
|
125
125
|
width={contentRect.bounds?.width}
|
|
@@ -138,13 +138,19 @@ const ClusterDeploymentHostsDiscovery: React.FC<ClusterDeploymentHostsDiscoveryP
|
|
|
138
138
|
fetchSecret={fetchSecret}
|
|
139
139
|
usedHostnames={usedHostnames || []}
|
|
140
140
|
/>
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
141
|
+
{editAgent && (
|
|
142
|
+
<EditAgentModal
|
|
143
|
+
onClose={() => setEditAgent(undefined)}
|
|
144
|
+
usedHostnames={usedHostnames}
|
|
145
|
+
agent={editAgent}
|
|
146
|
+
onSave={onAgentChangeHostname(
|
|
147
|
+
agents,
|
|
148
|
+
bareMetalHosts,
|
|
149
|
+
onChangeHostname,
|
|
150
|
+
onChangeBMHHostname,
|
|
151
|
+
)}
|
|
152
|
+
/>
|
|
153
|
+
)}
|
|
148
154
|
</GridItem>
|
|
149
155
|
<DiscoveryTroubleshootingModal
|
|
150
156
|
isOpen={isDiscoveryHintModalOpen}
|