@openshift-assisted/ui-lib 2.38.5 → 2.39.1
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/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/featureSupportLevels/featureStateUtils.d.ts +1 -0
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.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 -1
- 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 +24 -15
- 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 +10 -4
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +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 -1
- 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 +25 -15
- 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 +9 -4
- 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,19 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NetworkingForm = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
6
|
const formik_1 = require("formik");
|
|
6
7
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
8
|
const common_1 = require("../../../common");
|
|
8
|
-
const ClusterDeploymentWizardFooter_1 = tslib_1.__importDefault(require("./ClusterDeploymentWizardFooter"));
|
|
9
|
-
const ClusterDeploymentWizardStep_1 = tslib_1.__importDefault(require("./ClusterDeploymentWizardStep"));
|
|
10
|
-
const ClusterDeploymentWizardContext_1 = tslib_1.__importDefault(require("./ClusterDeploymentWizardContext"));
|
|
11
9
|
const ClusterDeploymentNetworkingForm_1 = tslib_1.__importDefault(require("./ClusterDeploymentNetworkingForm"));
|
|
12
10
|
const helpers_1 = require("./helpers");
|
|
13
11
|
const use_networking_formik_1 = require("./use-networking-formik");
|
|
14
12
|
const wizardTransition_1 = require("./wizardTransition");
|
|
15
13
|
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
16
|
-
const
|
|
14
|
+
const ValidationSection_1 = require("./components/ValidationSection");
|
|
15
|
+
const ClusterDeploymentWizardContext_1 = require("./ClusterDeploymentWizardContext");
|
|
16
|
+
const NetworkingForm = ({ clusterDeployment, agentClusterInstall, agents, fetchInfraEnv, onEditHost, onEditRole, isPreviewOpen, onSetInstallationDiskId, isNutanix, }) => {
|
|
17
|
+
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
18
|
+
const { activeStep, goToPrevStep, goToNextStep, close } = (0, react_core_1.useWizardContext)();
|
|
19
|
+
const { syncError } = react_1.default.useContext(ClusterDeploymentWizardContext_1.ClusterDeploymentWizardContext);
|
|
20
|
+
const { alerts } = (0, common_1.useAlerts)();
|
|
17
21
|
const [showFormErrors, setShowFormErrors] = react_1.default.useState(false);
|
|
18
22
|
const [showClusterErrors, setShowClusterErrors] = react_1.default.useState(false);
|
|
19
23
|
const [nextRequested, setNextRequested] = react_1.default.useState(false);
|
|
@@ -22,12 +26,8 @@ const NetworkingForm = ({ clusterDeployment, agentClusterInstall, agents, onClos
|
|
|
22
26
|
agents,
|
|
23
27
|
});
|
|
24
28
|
const { isValid, isValidating, isSubmitting, validateForm, setTouched, errors, touched, values } = (0, formik_1.useFormikContext)();
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const onBack = () => (0, helpers_1.isCIMFlow)(clusterDeployment)
|
|
28
|
-
? setCurrentStepId('hosts-selection')
|
|
29
|
-
: setCurrentStepId('hosts-discovery');
|
|
30
|
-
const onNext = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
29
|
+
const canContinue = react_1.default.useMemo(() => (0, wizardTransition_1.canNextFromNetworkingStep)(agentClusterInstall, agents), [agentClusterInstall, agents]);
|
|
30
|
+
const onNext = react_1.default.useCallback(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
31
31
|
if (!showFormErrors) {
|
|
32
32
|
const errors = yield validateForm();
|
|
33
33
|
setTouched(Object.keys(errors).reduce((acc, curr) => {
|
|
@@ -40,38 +40,69 @@ const NetworkingForm = ({ clusterDeployment, agentClusterInstall, agents, onClos
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
setNextRequested(true);
|
|
43
|
-
});
|
|
43
|
+
}), [setTouched, showFormErrors, validateForm]);
|
|
44
44
|
react_1.default.useEffect(() => {
|
|
45
45
|
setNextRequested(false);
|
|
46
46
|
setShowClusterErrors(false);
|
|
47
|
-
}, [values.
|
|
47
|
+
}, [values.apiVips, values.ingressVips]);
|
|
48
48
|
react_1.default.useEffect(() => {
|
|
49
49
|
if (nextRequested) {
|
|
50
50
|
setShowClusterErrors(true);
|
|
51
51
|
if (canContinue) {
|
|
52
|
-
|
|
52
|
+
void goToNextStep();
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
}, [nextRequested, canContinue,
|
|
56
|
-
|
|
55
|
+
}, [nextRequested, canContinue, goToNextStep]);
|
|
56
|
+
react_1.default.useEffect(() => {
|
|
57
|
+
if (syncError) {
|
|
58
|
+
setNextRequested(false);
|
|
59
|
+
}
|
|
60
|
+
}, [syncError]);
|
|
57
61
|
const errorFields = (0, common_1.getFormikErrorFields)(errors, touched);
|
|
58
|
-
const
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
62
|
+
const submittingText = react_1.default.useMemo(() => {
|
|
63
|
+
if (isSubmitting) {
|
|
64
|
+
return t('ai:Saving changes...');
|
|
65
|
+
}
|
|
66
|
+
else if (isValidating || nextRequested) {
|
|
67
|
+
return t('ai:Validating...');
|
|
68
|
+
}
|
|
69
|
+
return undefined;
|
|
70
|
+
}, [isSubmitting, isValidating, nextRequested, t]);
|
|
71
|
+
const footer = react_1.default.useMemo(() => (react_1.default.createElement(react_core_1.WizardFooter, { activeStep: activeStep, onNext: onNext, isNextDisabled: nextRequested || isSubmitting || (showFormErrors ? !isValid || isValidating : false), nextButtonProps: { isLoading: !!submittingText }, nextButtonText: submittingText || t('ai:Next'), onBack: goToPrevStep, onClose: close })), [
|
|
72
|
+
activeStep,
|
|
73
|
+
onNext,
|
|
74
|
+
nextRequested,
|
|
75
|
+
isSubmitting,
|
|
76
|
+
showFormErrors,
|
|
77
|
+
isValid,
|
|
78
|
+
isValidating,
|
|
79
|
+
submittingText,
|
|
80
|
+
goToPrevStep,
|
|
81
|
+
close,
|
|
82
|
+
t,
|
|
83
|
+
]);
|
|
84
|
+
(0, react_core_1.useWizardFooter)(footer);
|
|
85
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
68
86
|
react_1.default.createElement(react_core_1.Grid, { hasGutter: true },
|
|
69
87
|
react_1.default.createElement(react_core_1.GridItem, null,
|
|
70
88
|
react_1.default.createElement(common_1.ClusterWizardStepHeader, null, t('ai:Networking'))),
|
|
71
89
|
react_1.default.createElement(react_core_1.GridItem, null,
|
|
72
|
-
react_1.default.createElement(ClusterDeploymentNetworkingForm_1.default, { clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, agents: agents, sameProxies: sameProxies, infraEnvsError: infraEnvsError, infraEnvWithProxy: infraEnvWithProxy, infraEnvsLoading: infraEnvsLoading, onEditHost: onEditHost, onEditRole: onEditRole, isPreviewOpen: isPreviewOpen, onSetInstallationDiskId: onSetInstallationDiskId, isNutanix: isNutanix }))
|
|
90
|
+
react_1.default.createElement(ClusterDeploymentNetworkingForm_1.default, { clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, agents: agents, sameProxies: sameProxies, infraEnvsError: infraEnvsError, infraEnvWithProxy: infraEnvWithProxy, infraEnvsLoading: infraEnvsLoading, onEditHost: onEditHost, onEditRole: onEditRole, isPreviewOpen: isPreviewOpen, onSetInstallationDiskId: onSetInstallationDiskId, isNutanix: isNutanix })),
|
|
91
|
+
showFormErrors && !!errorFields.length && (react_1.default.createElement(react_core_1.GridItem, null,
|
|
92
|
+
react_1.default.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.danger, title: t('ai:Provided cluster configuration is not valid'), isInline: true },
|
|
93
|
+
t('ai:The following fields are invalid or missing'),
|
|
94
|
+
":",
|
|
95
|
+
' ',
|
|
96
|
+
errorFields.map((field) => (0, common_1.clusterFieldLabels)(t)[field] || field).join(', '),
|
|
97
|
+
"."))),
|
|
98
|
+
(showClusterErrors || showFormErrors) && !!alerts.length && (react_1.default.createElement(react_core_1.GridItem, null,
|
|
99
|
+
react_1.default.createElement(common_1.Alerts, null))),
|
|
100
|
+
syncError && (react_1.default.createElement(react_core_1.GridItem, null,
|
|
101
|
+
react_1.default.createElement(ValidationSection_1.ValidationSection, { currentStepId: 'networking', hosts: [] },
|
|
102
|
+
react_1.default.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.danger, title: t('ai:An error occured'), isInline: true }, syncError))))),
|
|
73
103
|
react_1.default.createElement(common_1.FormikAutoSave, null)));
|
|
74
104
|
};
|
|
105
|
+
exports.NetworkingForm = NetworkingForm;
|
|
75
106
|
const ClusterDeploymentNetworkingStep = (_a) => {
|
|
76
107
|
var _b, _c;
|
|
77
108
|
var { clusterDeployment, agentClusterInstall, agents, onSaveNetworking } = _a, rest = tslib_1.__rest(_a, ["clusterDeployment", "agentClusterInstall", "agents", "onSaveNetworking"]);
|
|
@@ -97,7 +128,7 @@ const ClusterDeploymentNetworkingStep = (_a) => {
|
|
|
97
128
|
}
|
|
98
129
|
});
|
|
99
130
|
return (react_1.default.createElement(formik_1.Formik, { initialValues: initialValues, validationSchema: validationSchema, onSubmit: handleSubmit },
|
|
100
|
-
react_1.default.createElement(NetworkingForm, Object.assign({}, rest, { agents: clusterAgents, clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall }))));
|
|
131
|
+
react_1.default.createElement(exports.NetworkingForm, Object.assign({}, rest, { agents: clusterAgents, clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall }))));
|
|
101
132
|
};
|
|
102
133
|
exports.default = ClusterDeploymentNetworkingStep;
|
|
103
134
|
//# sourceMappingURL=ClusterDeploymentNetworkingStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentNetworkingStep.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClusterDeploymentNetworkingStep.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,mCAAkD;AAClD,uDAQgC;AAEhC,4CAOyB;AAOzB,gHAAgF;AAChF,uCAA6C;AAC7C,mEAAkF;AAClF,yDAA+D;AAE/D,2FAA+E;AAC/E,sEAAmE;AACnE,qFAAkF;AAc3E,MAAM,cAAc,GAAG,CAAC,EAC7B,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,aAAa,EACb,UAAU,EACV,UAAU,EACV,aAAa,EACb,uBAAuB,EACvB,SAAS,GACW,EAAE,EAAE;IACxB,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,YAAY,EAAE,KAAK,EAAE,GAAG,IAAA,6BAAgB,GAAE,CAAC;IAC7E,MAAM,EAAE,SAAS,EAAE,GAAG,eAAK,CAAC,UAAU,CAAC,+DAA8B,CAAC,CAAC;IACvE,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,kBAAS,GAAE,CAAC;IAC/B,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAClE,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IACxE,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAChE,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAE,gBAAgB,EAAE,WAAW,EAAE,GAAG,IAAA,0CAAkB,EAAC;QAC9F,aAAa;QACb,MAAM;KACP,CAAC,CAAC;IACH,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,UA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AAC;gBACP,KAAK,EAAE,CAAC,CAAC,qCAAqC,CAAC;gBAC/C,OAAO,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS;aAC5D,CAAC,CAAC;SACJ;IACH,CAAC,CAAA,CAAC;IAEF,OAAO,CACL,8BAAC,eAAM,IACL,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,EAClC,QAAQ,EAAE,YAAY;QAEtB,8BAAC,sBAAc,oBACT,IAAI,IACR,MAAM,EAAE,aAAa,EACrB,iBAAiB,EAAE,iBAAiB,EACpC,mBAAmB,EAAE,mBAAmB,IACxC,CACK,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,+BAA+B,CAAC"}
|
|
@@ -5,20 +5,19 @@ const react_core_1 = require("@patternfly/react-core");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const wizardTransition_1 = require("./wizardTransition");
|
|
7
7
|
const common_1 = require("../../../common");
|
|
8
|
-
const ClusterDeploymentWizardContext_1 = tslib_1.__importDefault(require("./ClusterDeploymentWizardContext"));
|
|
9
|
-
const ClusterDeploymentWizardFooter_1 = tslib_1.__importDefault(require("./ClusterDeploymentWizardFooter"));
|
|
10
|
-
const ClusterDeploymentWizardStep_1 = tslib_1.__importDefault(require("./ClusterDeploymentWizardStep"));
|
|
11
8
|
const helpers_1 = require("../helpers");
|
|
12
9
|
const helpers_2 = require("./helpers");
|
|
13
10
|
const constants_1 = require("./constants");
|
|
14
11
|
const wizardTransition_2 = require("./wizardTransition");
|
|
15
12
|
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
16
|
-
const
|
|
17
|
-
|
|
13
|
+
const ClusterDeploymentWizardContext_1 = require("./ClusterDeploymentWizardContext");
|
|
14
|
+
const ValidationSection_1 = require("./components/ValidationSection");
|
|
15
|
+
const ClusterDeploymentReviewStep = ({ agentClusterInstall, agents, onFinish, clusterDeployment, clusterImages, infraEnv, }) => {
|
|
16
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
18
17
|
const { addAlert, clearAlerts } = (0, common_1.useAlerts)();
|
|
19
|
-
const {
|
|
18
|
+
const { activeStep, goToPrevStep, goToStepByName, close } = (0, react_core_1.useWizardContext)();
|
|
19
|
+
const { syncError } = React.useContext(ClusterDeploymentWizardContext_1.ClusterDeploymentWizardContext);
|
|
20
20
|
const [isSubmitting, setSubmitting] = React.useState(false);
|
|
21
|
-
const onBack = () => setCurrentStepId('networking');
|
|
22
21
|
const cdName = (_a = clusterDeployment.metadata) === null || _a === void 0 ? void 0 : _a.name;
|
|
23
22
|
const cdNamespace = (_b = clusterDeployment.metadata) === null || _b === void 0 ? void 0 : _b.namespace;
|
|
24
23
|
const cpuArchitecture = (0, helpers_1.getClusterDeploymentCpuArchitecture)(clusterDeployment, infraEnv);
|
|
@@ -39,25 +38,26 @@ const ClusterDeploymentReviewStep = ({ agentClusterInstall, agents, onClose, onF
|
|
|
39
38
|
setSubmitting(false);
|
|
40
39
|
}
|
|
41
40
|
});
|
|
42
|
-
const footer = (React.createElement(
|
|
43
|
-
|
|
44
|
-
onNext: onNext, onCancel: onClose, nextButtonText: t('ai:Install cluster') }));
|
|
41
|
+
const footer = (React.createElement(react_core_1.WizardFooter, { activeStep: activeStep, onNext: onNext, isNextDisabled: isSubmitting || !canContinue || !!syncError, nextButtonText: t('ai:Install cluster'), nextButtonProps: { isLoading: isSubmitting }, onBack: goToPrevStep, onClose: close }));
|
|
42
|
+
(0, react_core_1.useWizardFooter)(footer);
|
|
45
43
|
const openShiftVersion = (0, helpers_1.getSelectedVersion)(clusterImages, agentClusterInstall);
|
|
46
44
|
const cluster = React.useMemo(() => (0, helpers_1.getAICluster)({ clusterDeployment, agentClusterInstall, agents: clusterAgents }), [clusterDeployment, agentClusterInstall, clusterAgents]);
|
|
47
|
-
return (React.createElement(
|
|
48
|
-
React.createElement(react_core_1.
|
|
49
|
-
React.createElement(
|
|
50
|
-
|
|
51
|
-
React.createElement(
|
|
52
|
-
React.createElement(common_1.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
45
|
+
return (React.createElement(react_core_1.Grid, { hasGutter: true },
|
|
46
|
+
React.createElement(react_core_1.GridItem, null,
|
|
47
|
+
React.createElement(common_1.ClusterWizardStepHeader, null, "Review and create")),
|
|
48
|
+
React.createElement(react_core_1.GridItem, null,
|
|
49
|
+
React.createElement(common_1.DetailList, null,
|
|
50
|
+
React.createElement(common_1.DetailItem, { title: t('ai:Cluster address'), value: `${((_c = clusterDeployment.metadata) === null || _c === void 0 ? void 0 : _c.name) || ''}.${((_d = clusterDeployment.spec) === null || _d === void 0 ? void 0 : _d.baseDomain) || ''}`, testId: "cluster-address" }),
|
|
51
|
+
React.createElement(common_1.DetailItem, { title: t('ai:OpenShift version'), value: openShiftVersion, testId: "openshift-version" }),
|
|
52
|
+
React.createElement(common_1.DetailItem, { title: t('ai:CPU architecture'), value: cpuArchitecture, testId: "cpu-architecture" }),
|
|
53
|
+
React.createElement(common_1.DetailItem, { title: t('ai:API IP'), value: ((_e = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.status) === null || _e === void 0 ? void 0 : _e.apiVIP) || ((_f = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.spec) === null || _f === void 0 ? void 0 : _f.apiVIP), testId: "api-vip" }),
|
|
54
|
+
React.createElement(common_1.DetailItem, { title: t('ai:Ingress IP'), value: ((_g = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.status) === null || _g === void 0 ? void 0 : _g.ingressVIP) || ((_h = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.spec) === null || _h === void 0 ? void 0 : _h.ingressVIP), testId: "ingress-vip" }),
|
|
55
|
+
React.createElement(common_1.DetailItem, { title: t('ai:Cluster summary'), testId: "cluster-summary", value: React.createElement(common_1.ReviewHostsInventory, { hosts: cluster.hosts }) }),
|
|
56
|
+
React.createElement(common_1.DetailItem, { title: t('ai:Cluster validations'), value: React.createElement(common_1.ClusterValidations, { validationsInfo: cluster.validationsInfo, setCurrentStepId: goToStepByName, wizardStepNames: (0, constants_1.wizardStepNames)(t), wizardStepsValidationsMap: wizardTransition_2.wizardStepsValidationsMap }), testId: "cluster-validations" }),
|
|
57
|
+
React.createElement(common_1.DetailItem, { title: t('ai:Host validations'), value: React.createElement(common_1.HostsValidations, { hosts: cluster.hosts, setCurrentStepId: goToStepByName, wizardStepNames: (0, constants_1.wizardStepNames)(t), allClusterWizardSoftValidationIds: wizardTransition_2.allClusterWizardSoftValidationIds, wizardStepsValidationsMap: wizardTransition_2.wizardStepsValidationsMap }), testId: "host-validations" }))),
|
|
58
|
+
syncError && (React.createElement(react_core_1.GridItem, null,
|
|
59
|
+
React.createElement(ValidationSection_1.ValidationSection, { currentStepId: 'review', hosts: [] },
|
|
60
|
+
React.createElement(react_core_1.Alert, { variant: react_core_1.AlertVariant.danger, title: t('ai:An error occured'), isInline: true }, syncError))))));
|
|
61
61
|
};
|
|
62
62
|
exports.default = ClusterDeploymentReviewStep;
|
|
63
63
|
//# sourceMappingURL=ClusterDeploymentReviewStep.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentReviewStep.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.tsx"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"ClusterDeploymentReviewStep.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.tsx"],"names":[],"mappings":";;;AAAA,uDAQgC;AAChC,qDAA+B;AAC/B,yDAA2D;AAQ3D,4CAQyB;AACzB,wCAAmG;AACnG,uCAA6C;AAC7C,2CAA8C;AAC9C,yDAI4B;AAC5B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E,IAAA,2BAAe,EAAC,CAAC,CAAC,EACnC,yBAAyB,EAAE,4CAAyB,GACpD,EAEJ,MAAM,EAAC,qBAAqB,GAC5B;gBACF,oBAAC,mBAAU,IACT,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC,EAC/B,KAAK,EACH,oBAAC,yBAAgB,IACf,KAAK,EAAE,OAAO,CAAC,KAAK,EACpB,gBAAgB,EAAE,cAAc,EAChC,eAAe,EAAE,IAAA,2BAAe,EAAC,CAAC,CAAC,EACnC,iCAAiC,EAAE,oDAAiC,EACpE,yBAAyB,EAAE,4CAAyB,GACpD,EAEJ,MAAM,EAAC,kBAAkB,GACzB,CACS,CACJ;QACV,SAAS,IAAI,CACZ,oBAAC,qBAAQ;YACP,oBAAC,qCAAiB,IAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE;gBACnD,oBAAC,kBAAK,IAAC,OAAO,EAAE,yBAAY,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,qBAAqB,CAAC,EAAE,QAAQ,UAC3E,SAAS,CACJ,CACU,CACX,CACZ,CACI,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,2BAA2B,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClusterDeploymentWizard = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const React = tslib_1.__importStar(require("react"));
|
|
5
|
-
const
|
|
6
|
+
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
6
7
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
8
|
const common_1 = require("../../../common");
|
|
8
|
-
const ClusterDeploymentWizardContext_1 = tslib_1.__importDefault(require("./ClusterDeploymentWizardContext"));
|
|
9
9
|
const ClusterDeploymentDetailsStep_1 = tslib_1.__importDefault(require("./ClusterDeploymentDetailsStep"));
|
|
10
10
|
const ClusterDeploymentNetworkingStep_1 = tslib_1.__importDefault(require("./ClusterDeploymentNetworkingStep"));
|
|
11
11
|
const ClusterDeploymentHostSelectionStep_1 = tslib_1.__importDefault(require("./ClusterDeploymentHostSelectionStep"));
|
|
@@ -13,11 +13,13 @@ const ClusterDeploymentHostsDiscoveryStep_1 = tslib_1.__importDefault(require(".
|
|
|
13
13
|
const featureSupportLevels_1 = require("../featureSupportLevels");
|
|
14
14
|
const ClusterDeploymentReviewStep_1 = tslib_1.__importDefault(require("./ClusterDeploymentReviewStep"));
|
|
15
15
|
const YamlPreview_1 = require("../YamlPreview");
|
|
16
|
+
const constants_1 = require("./constants");
|
|
17
|
+
const ClusterDeploymentWizardContext_1 = require("./ClusterDeploymentWizardContext");
|
|
18
|
+
const helpers_1 = require("./helpers");
|
|
16
19
|
const ClusterDeploymentWizard = (_a) => {
|
|
17
|
-
var _b;
|
|
18
|
-
var { className, onSaveDetails, onSaveNetworking, onSaveHostsSelection, onClose, onFinish, hostActions, usedClusterNames, fetchSecret, clusterDeployment, agentClusterInstall, agents, clusterImages, aiConfigMap, infraEnv, fetchInfraEnv, initialStep, isPreviewOpen, setPreviewOpen, fetchManagedClusters, fetchKlusterletAddonConfig, onSaveISOParams, onCreateBMH, isNutanix } = _a, rest = tslib_1.__rest(_a, ["className", "onSaveDetails", "onSaveNetworking", "onSaveHostsSelection", "onClose", "onFinish", "hostActions", "usedClusterNames", "fetchSecret", "clusterDeployment", "agentClusterInstall", "agents", "clusterImages", "aiConfigMap", "infraEnv", "fetchInfraEnv", "initialStep", "isPreviewOpen", "setPreviewOpen", "fetchManagedClusters", "fetchKlusterletAddonConfig", "onSaveISOParams", "onCreateBMH", "isNutanix"]);
|
|
19
|
-
const
|
|
20
|
-
const isAIFlow = infraEnv;
|
|
20
|
+
var _b, _c;
|
|
21
|
+
var { className, onSaveDetails, onSaveNetworking, onSaveHostsSelection, onClose, onFinish, hostActions, usedClusterNames, fetchSecret, clusterDeployment, agentClusterInstall, agents, bareMetalHosts, clusterImages, aiConfigMap, infraEnv, fetchInfraEnv, initialStep, isPreviewOpen, setPreviewOpen, fetchManagedClusters, fetchKlusterletAddonConfig, onSaveISOParams, onCreateBMH, isNutanix, onChangeBMHHostname } = _a, rest = tslib_1.__rest(_a, ["className", "onSaveDetails", "onSaveNetworking", "onSaveHostsSelection", "onClose", "onFinish", "hostActions", "usedClusterNames", "fetchSecret", "clusterDeployment", "agentClusterInstall", "agents", "bareMetalHosts", "clusterImages", "aiConfigMap", "infraEnv", "fetchInfraEnv", "initialStep", "isPreviewOpen", "setPreviewOpen", "fetchManagedClusters", "fetchKlusterletAddonConfig", "onSaveISOParams", "onCreateBMH", "isNutanix", "onChangeBMHHostname"]);
|
|
22
|
+
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
21
23
|
const { code, loadingResources } = (0, YamlPreview_1.useYamlPreview)({
|
|
22
24
|
agentClusterInstall,
|
|
23
25
|
clusterDeployment,
|
|
@@ -25,46 +27,28 @@ const ClusterDeploymentWizard = (_a) => {
|
|
|
25
27
|
fetchManagedClusters,
|
|
26
28
|
fetchKlusterletAddonConfig,
|
|
27
29
|
});
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
switch (stepId) {
|
|
34
|
-
case 'hosts-selection':
|
|
35
|
-
if ((_a = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.metadata) === null || _a === void 0 ? void 0 : _a.name) {
|
|
36
|
-
return (React.createElement(ClusterDeploymentHostSelectionStep_1.default, { clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, onClose: onClose, onSaveHostsSelection: onSaveHostsSelection, agents: agents, aiConfigMap: aiConfigMap, onEditRole: hostActions.onEditRole, onSetInstallationDiskId: hostActions.onSetInstallationDiskId, isNutanix: isNutanix }));
|
|
37
|
-
}
|
|
38
|
-
return React.createElement(common_1.LoadingState, null);
|
|
39
|
-
case 'hosts-discovery':
|
|
40
|
-
if (isAIFlow) {
|
|
41
|
-
return onSaveISOParams && onCreateBMH ? (React.createElement(ClusterDeploymentHostsDiscoveryStep_1.default, Object.assign({ clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, agents: agents, bareMetalHosts: [] /* TODO(mlibra) */, aiConfigMap: aiConfigMap, infraEnv: infraEnv, fetchSecret: fetchSecret, onClose: onClose, onChangeBMHHostname: (bmh, _hostname) => {
|
|
42
|
-
// console.log('onChangeBMHHostname is not implemented: ', hostname);
|
|
43
|
-
return Promise.resolve(bmh);
|
|
44
|
-
}, onEditRole: hostActions.onEditRole, onSetInstallationDiskId: hostActions.onSetInstallationDiskId, onDeleteHost: hostActions.onDeleteHost, onSaveISOParams: onSaveISOParams, onCreateBMH: onCreateBMH }, rest))) : (React.createElement(common_1.LoadingState, null));
|
|
45
|
-
}
|
|
46
|
-
return React.createElement(common_1.LoadingState, null);
|
|
47
|
-
case 'networking':
|
|
48
|
-
return (React.createElement(ClusterDeploymentNetworkingStep_1.default, { clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, agents: agents, onSaveNetworking: onSaveNetworking, onClose: onClose, onEditHost: hostActions.onEditHost, onEditRole: hostActions.onEditRole, fetchInfraEnv: fetchInfraEnv, isPreviewOpen: isPreviewOpen, onSetInstallationDiskId: hostActions.onSetInstallationDiskId, isNutanix: isNutanix }));
|
|
49
|
-
case 'review':
|
|
50
|
-
return (React.createElement(ClusterDeploymentReviewStep_1.default, { onFinish: onFinish, clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, agents: agents, onClose: onClose, clusterImages: clusterImages, infraEnv: infraEnv }));
|
|
51
|
-
case 'cluster-details':
|
|
52
|
-
default:
|
|
53
|
-
return (React.createElement(ClusterDeploymentDetailsStep_1.default, { clusterImages: clusterImages, usedClusterNames: usedClusterNames, clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, agents: agents, onSaveDetails: onSaveDetails, onClose: onClose, isPreviewOpen: isPreviewOpen, infraEnv: infraEnv, isNutanix: isNutanix }));
|
|
54
|
-
}
|
|
55
|
-
};
|
|
30
|
+
// if initialStep is set, it is either 'host-selection' or 'host-discovery', both at index 4
|
|
31
|
+
// if initialStep is not set, start at 'cluster-details' which is at index 2
|
|
32
|
+
const startIndex = initialStep ? 4 : 2;
|
|
33
|
+
const stepNames = (0, constants_1.wizardStepNames)(t);
|
|
34
|
+
const isAIFlow = !!infraEnv;
|
|
56
35
|
return (React.createElement(react_core_1.Grid, { style: { height: '100%' } },
|
|
57
36
|
React.createElement(react_core_1.GridItem, { span: isPreviewOpen ? 7 : 12 },
|
|
58
37
|
React.createElement(common_1.AlertsContextProvider, null,
|
|
59
38
|
React.createElement(featureSupportLevels_1.ACMFeatureSupportLevelProvider, { clusterImages: clusterImages, isEditClusterFlow: true },
|
|
60
|
-
React.createElement(ClusterDeploymentWizardContext_1.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
39
|
+
React.createElement(ClusterDeploymentWizardContext_1.ClusterDeploymentWizardContextProvider, { agentClusterInstall: agentClusterInstall },
|
|
40
|
+
React.createElement(react_core_1.Wizard, { isVisitRequired: true, startIndex: startIndex, className: className, onClose: onClose },
|
|
41
|
+
React.createElement(react_core_1.WizardStep, { name: stepNames['installation-type'], id: 'installation-type', isDisabled: true }),
|
|
42
|
+
React.createElement(react_core_1.WizardStep, { name: stepNames['cluster-details'], id: 'cluster-details' },
|
|
43
|
+
React.createElement(ClusterDeploymentDetailsStep_1.default, { clusterImages: clusterImages, usedClusterNames: usedClusterNames, clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, agents: agents, onSaveDetails: onSaveDetails, isPreviewOpen: isPreviewOpen, infraEnv: infraEnv, isNutanix: isNutanix })),
|
|
44
|
+
React.createElement(react_core_1.WizardStep, { name: stepNames['automation'], id: 'automation', isDisabled: true }),
|
|
45
|
+
(0, helpers_1.isCIMFlow)(clusterDeployment) ? (React.createElement(react_core_1.WizardStep, { name: stepNames['hosts-selection'], id: 'host-selection' }, ((_b = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.metadata) === null || _b === void 0 ? void 0 : _b.name) ? (React.createElement(ClusterDeploymentHostSelectionStep_1.default, { clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, onSaveHostsSelection: onSaveHostsSelection, agents: agents, aiConfigMap: aiConfigMap, onEditRole: hostActions.onEditRole, onSetInstallationDiskId: hostActions.onSetInstallationDiskId, isNutanix: isNutanix })) : (React.createElement(common_1.LoadingState, null)))) : (React.createElement(react_core_1.WizardStep, { name: stepNames['hosts-discovery'], id: 'host-discovery' }, isAIFlow && onSaveISOParams && onCreateBMH ? (React.createElement(ClusterDeploymentHostsDiscoveryStep_1.default, Object.assign({ clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, agents: agents, bareMetalHosts: bareMetalHosts, aiConfigMap: aiConfigMap, infraEnv: infraEnv, fetchSecret: fetchSecret, onChangeBMHHostname: onChangeBMHHostname, onEditRole: hostActions.onEditRole, onSetInstallationDiskId: hostActions.onSetInstallationDiskId, onDeleteHost: hostActions.onDeleteHost, onSaveISOParams: onSaveISOParams, onCreateBMH: onCreateBMH }, rest))) : (React.createElement(common_1.LoadingState, null)))),
|
|
46
|
+
React.createElement(react_core_1.WizardStep, { name: stepNames['networking'], id: 'networking' },
|
|
47
|
+
React.createElement(ClusterDeploymentNetworkingStep_1.default, { clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, agents: agents, onSaveNetworking: onSaveNetworking, onEditHost: hostActions.onEditHost, onEditRole: hostActions.onEditRole, fetchInfraEnv: fetchInfraEnv, isPreviewOpen: isPreviewOpen, onSetInstallationDiskId: hostActions.onSetInstallationDiskId, isNutanix: isNutanix })),
|
|
48
|
+
React.createElement(react_core_1.WizardStep, { name: stepNames['review'], id: 'review' },
|
|
49
|
+
React.createElement(ClusterDeploymentReviewStep_1.default, { onFinish: onFinish, clusterDeployment: clusterDeployment, agentClusterInstall: agentClusterInstall, agents: agents, clusterImages: clusterImages, infraEnv: infraEnv }))))))),
|
|
66
50
|
isPreviewOpen && (React.createElement(react_core_1.GridItem, { span: 5 },
|
|
67
|
-
React.createElement(YamlPreview_1.YamlPreview, { code: code, setPreviewOpen: setPreviewOpen, loading: loadingResources }, `${((
|
|
51
|
+
React.createElement(YamlPreview_1.YamlPreview, { code: code, setPreviewOpen: setPreviewOpen, loading: loadingResources }, `${((_c = clusterDeployment.metadata) === null || _c === void 0 ? void 0 : _c.name) || ''} cluster`)))));
|
|
68
52
|
};
|
|
69
|
-
exports.
|
|
53
|
+
exports.ClusterDeploymentWizard = ClusterDeploymentWizard;
|
|
70
54
|
//# sourceMappingURL=ClusterDeploymentWizard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentWizard.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClusterDeploymentWizard.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,2FAA+E;AAC/E,uDAA4E;AAC5E,4CAAsE;AACtE,0GAA0E;AAC1E,gHAAgF;AAChF,sHAAsF;AAEtF,wHAAwF;AACxF,kEAAyE;AACzE,wGAAwE;AACxE,gDAA6D;AAC7D,2CAA8C;AAC9C,qFAA0F;AAC1F,uCAAsC;AAE/B,MAAM,uBAAuB,GAAG,CAAC,EA4BT,EAAE,EAAE;;QA5BK,EACtC,SAAS,EACT,aAAa,EACb,gBAAgB,EAChB,oBAAoB,EACpB,OAAO,EACP,QAAQ,EACR,WAAW,EACX,gBAAgB,EAChB,WAAW,EACX,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,cAAc,EACd,aAAa,EACb,WAAW,EACX,QAAQ,EACR,aAAa,EACb,WAAW,EACX,aAAa,E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GAAG,CAAA,MAAA,iBAAiB,CAAC,QAAQ,0CAAE,IAAI,KAAI,EAAE,UAAU,CACxC,CACL,CACZ,CACI,CACR,CAAC;AACJ,CAAC,CAAC;AA3JW,QAAA,uBAAuB,2BA2JlC"}
|
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClusterDeploymentWizardContextProvider = exports.ClusterDeploymentWizardContext = void 0;
|
|
3
4
|
const tslib_1 = require("tslib");
|
|
4
5
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
setCurrentStepId: () => {
|
|
8
|
-
// console.error(
|
|
9
|
-
// 'Tried to use ClusterDeploymentWizardContext but there was no provider rendered.',
|
|
10
|
-
// );
|
|
11
|
-
},
|
|
6
|
+
exports.ClusterDeploymentWizardContext = react_1.default.createContext({
|
|
7
|
+
syncError: undefined,
|
|
12
8
|
});
|
|
13
|
-
|
|
9
|
+
const ClusterDeploymentWizardContextProvider = ({ children, agentClusterInstall, }) => {
|
|
10
|
+
var _a;
|
|
11
|
+
const syncError = react_1.default.useMemo(() => {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
return (_c = (_b = (_a = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.status) === null || _a === void 0 ? void 0 : _a.conditions) === null || _b === void 0 ? void 0 : _b.find((c) => c.type === 'SpecSynced' && c.status === 'False')) === null || _c === void 0 ? void 0 : _c.message;
|
|
14
|
+
}, [(_a = agentClusterInstall === null || agentClusterInstall === void 0 ? void 0 : agentClusterInstall.status) === null || _a === void 0 ? void 0 : _a.conditions]);
|
|
15
|
+
return (react_1.default.createElement(exports.ClusterDeploymentWizardContext.Provider, { value: { syncError } }, children));
|
|
16
|
+
};
|
|
17
|
+
exports.ClusterDeploymentWizardContextProvider = ClusterDeploymentWizardContextProvider;
|
|
14
18
|
//# sourceMappingURL=ClusterDeploymentWizardContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDeploymentWizardContext.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ClusterDeploymentWizardContext.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDeploymentWizardContext.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAOb,QAAA,8BAA8B,GACzC,eAAK,CAAC,aAAa,CAAqC;IACtD,SAAS,EAAE,SAAS;CACrB,CAAC,CAAC;AAEE,MAAM,sCAAsC,GAAG,CAAC,EACrD,QAAQ,EACR,mBAAmB,GAIpB,EAAE,EAAE;;IACH,MAAM,SAAS,GAAG,eAAK,CAAC,OAAO,CAC7B,GAAG,EAAE;;QACH,OAAA,MAAA,MAAA,MAAA,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,MAAM,0CAAE,UAAU,0CAAE,IAAI,CAC3C,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,YAAY,IAAI,CAAC,CAAC,MAAM,KAAK,OAAO,CACvD,0CAAE,OAAO,CAAA;KAAA,EACZ,CAAC,MAAA,mBAAmB,aAAnB,mBAAmB,uBAAnB,mBAAmB,CAAE,MAAM,0CAAE,UAAU,CAAC,CAC1C,CAAC;IAEF,OAAO,CACL,8BAAC,sCAA8B,CAAC,QAAQ,IAAC,KAAK,EAAE,EAAE,SAAS,EAAE,IAC1D,QAAQ,CAC+B,CAC3C,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,sCAAsC,0CAoBjD"}
|
|
@@ -5,13 +5,12 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const React = tslib_1.__importStar(require("react"));
|
|
6
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
7
|
const formik_1 = require("formik");
|
|
8
|
+
const common_1 = require("../../../common");
|
|
8
9
|
const StaticTextField_1 = require("../../../common/components/ui/StaticTextField");
|
|
9
|
-
const OpenShiftVersionSelect_1 = tslib_1.__importDefault(require("../../../common/components/clusterConfiguration/OpenShiftVersionSelect"));
|
|
10
10
|
const clusters_1 = require("../../../common/components/clusters");
|
|
11
11
|
const formik_2 = require("../../../common/components/ui/formik");
|
|
12
12
|
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
13
13
|
const CpuArchitectureDropdown_1 = tslib_1.__importDefault(require("../common/CpuArchitectureDropdown"));
|
|
14
|
-
const helpers_1 = require("../helpers");
|
|
15
14
|
const ControlPlaneNodesDropdown_1 = tslib_1.__importDefault(require("../../../common/components/clusterConfiguration/ControlPlaneNodesDropdown"));
|
|
16
15
|
const BaseDnsHelperText = ({ name, baseDnsDomain, }) => {
|
|
17
16
|
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
@@ -25,9 +24,26 @@ const BaseDnsHelperText = ({ name, baseDnsDomain, }) => {
|
|
|
25
24
|
baseDnsDomain || '[example.com]')));
|
|
26
25
|
};
|
|
27
26
|
exports.BaseDnsHelperText = BaseDnsHelperText;
|
|
28
|
-
const ClusterDetailsFormFields = ({ isEditFlow, versions, forceOpenshiftVersion, extensionAfter, isNutanix, cpuArchitectures, }) => {
|
|
29
|
-
const { values
|
|
27
|
+
const ClusterDetailsFormFields = ({ isEditFlow, versions, allVersions, forceOpenshiftVersion, extensionAfter, isNutanix, cpuArchitectures, allowHighlyAvailable, }) => {
|
|
28
|
+
const { values } = (0, formik_1.useFormikContext)();
|
|
30
29
|
const { name, baseDnsDomain } = values;
|
|
30
|
+
const [openshiftVersionModalOpen, setOpenshiftVersionModalOpen] = React.useState(false);
|
|
31
|
+
const selectOptions = React.useMemo(() => versions.map((version) => ({
|
|
32
|
+
label: version.label,
|
|
33
|
+
value: version.value,
|
|
34
|
+
})), [versions]);
|
|
35
|
+
const additionalSelectOptions = React.useMemo(() => {
|
|
36
|
+
if (values.customOpenshiftSelect &&
|
|
37
|
+
!selectOptions.some((option) => { var _a; return option.value === ((_a = values.customOpenshiftSelect) === null || _a === void 0 ? void 0 : _a.value); })) {
|
|
38
|
+
return [
|
|
39
|
+
{
|
|
40
|
+
value: values.customOpenshiftSelect.value,
|
|
41
|
+
label: values.customOpenshiftSelect.label,
|
|
42
|
+
},
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
return [];
|
|
46
|
+
}, [selectOptions, values.customOpenshiftSelect]);
|
|
31
47
|
const nameInputRef = React.useRef();
|
|
32
48
|
React.useEffect(() => {
|
|
33
49
|
var _a;
|
|
@@ -42,11 +58,10 @@ const ClusterDetailsFormFields = ({ isEditFlow, versions, forceOpenshiftVersion,
|
|
|
42
58
|
forceOpenshiftVersion ? (React.createElement(StaticTextField_1.StaticTextField, { name: "openshiftVersion", label: "OpenShift version", isRequired: true },
|
|
43
59
|
t('ai:OpenShift'),
|
|
44
60
|
" ",
|
|
45
|
-
forceOpenshiftVersion)) : (React.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
React.createElement(ControlPlaneNodesDropdown_1.default, { isNutanix: isNutanix, isDisabled: isEditFlow }),
|
|
61
|
+
forceOpenshiftVersion)) : (React.createElement(React.Fragment, null,
|
|
62
|
+
React.createElement(common_1.OpenShiftVersionDropdown, { name: "openshiftVersion", items: selectOptions, versions: versions, showReleasesLink: false, showOpenshiftVersionModal: () => setOpenshiftVersionModalOpen(true), customItems: additionalSelectOptions }),
|
|
63
|
+
openshiftVersionModalOpen && (React.createElement(common_1.OpenShiftVersionModal, { allVersions: allVersions, setOpenshiftVersionModalOpen: setOpenshiftVersionModalOpen })))),
|
|
64
|
+
React.createElement(ControlPlaneNodesDropdown_1.default, { isDisabled: isEditFlow, allowHighlyAvailable: allowHighlyAvailable }),
|
|
50
65
|
!isNutanix && (React.createElement(CpuArchitectureDropdown_1.default, { cpuArchitectures: cpuArchitectures, isDisabled: isEditFlow })),
|
|
51
66
|
(extensionAfter === null || extensionAfter === void 0 ? void 0 : extensionAfter['openshiftVersion']) && extensionAfter['openshiftVersion'],
|
|
52
67
|
!isEditFlow && React.createElement(clusters_1.PullSecret, null),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDetailsFormFields.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAA6E;AAC7E,mCAA0C;AAE1C,mFAAgF;AAChF,
|
|
1
|
+
{"version":3,"file":"ClusterDetailsFormFields.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/ClusterDetailsFormFields.tsx"],"names":[],"mappings":";;;;AAAA,qDAA+B;AAC/B,uDAA6E;AAC7E,mCAA0C;AAE1C,4CAAkF;AAClF,mFAAgF;AAChF,kEAAiE;AAEjE,iEAI8C;AAE9C,2FAA+E;AAC/E,wGAAwE;AACxE,kJAAkH;AAa3G,MAAM,iBAAiB,GAAwD,CAAC,EACrF,IAAI,EACJ,aAAa,GACd,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,OAAO,CACL;QACG,CAAC,CACA,uKAAuK,CACxK;QAAE,GAAG;QACN,+BAAM;QACN;YACG,IAAI,IAAI,gBAAgB;;YAAG,aAAa,IAAI,eAAe,CACrD,CACR,CACJ,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,iBAAiB,qBAgB5B;AAEK,MAAM,wBAAwB,GAA4C,CAAC,EAChF,UAAU,EACV,QAAQ,EACR,WAAW,EACX,qBAAqB,EACrB,cAAc,EACd,SAAS,EACT,gBAAgB,EAChB,oBAAoB,GACrB,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,yBAAgB,GAAwB,CAAC;IAC5D,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;IACvC,MAAM,CAAC,y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ostSubnets, isVipDhcpAllocationDisable
|
|
|
63
63
|
const shouldValidate = !!touched.hostSubnet;
|
|
64
64
|
// We need to reset these fields' values in order to align with the values the server sends
|
|
65
65
|
setFieldValue('vipDhcpAllocation', false);
|
|
66
|
-
setFieldValue('
|
|
67
|
-
setFieldValue('
|
|
66
|
+
setFieldValue('ingressVips', [], shouldValidate);
|
|
67
|
+
setFieldValue('apiVips', [], shouldValidate);
|
|
68
68
|
}
|
|
69
69
|
else {
|
|
70
|
-
if (!values.vipDhcpAllocation
|
|
71
|
-
validateField('
|
|
72
|
-
validateField('
|
|
70
|
+
if (!values.vipDhcpAllocation) {
|
|
71
|
+
validateField('ingressVips');
|
|
72
|
+
validateField('apiVips');
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetworkConfiguration.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx"],"names":[],"mappings":";;;AAAA,uDAAyC;AACzC,mCAA0C;AAC1C,uDAAwD;AACxD,0IAA0G;AAE1G,2CAAsC;AACtC,8FAMkE;AAClE,4CAOyB;AACzB,2FAA+E;AAC/E,8HAA2H;AAQ3H,MAAM,oBAAoB,GAAG,CAAC,EAC5B,OAAO,EACP,WAAW,EACX,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,GACK,EAAE,EAAE;;IAC9B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,EAAE,GACrD,IAAA,yBAAgB,GAA8B,CAAC;IAEjD,MAAM,kBAAkB,GAAG,CAAC,IAAA,cAAK,EAAC,OAAO,CAAC,CAAC;IAC3C,MAAM,iBAAiB,GAAG,qBAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,kBAAkB,IAAI,EAAE,CAAC,CAAC;IAC5E,MAAM,EAAE,M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Aa,CAAC,YAAY,EAAE,sBAAa,EAAE,KAAK,CAAC,CAAC;SAC1F;aAAM,IAAI,MAAM,CAAC,UAAU,KAAK,sBAAa,IAAI,WAAW,EAAE;YAC7D,aAAa,CAAC,YAAY,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;SACjD;IACH,CAAC,EAAE,CAAC,uBAAuB,EAAE,kBAAkB,EAAE,MAAM,CAAC,UAAU,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;IAEjG,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE;YACxB,aAAa,CAAC,aAAa,EAAE,yBAAgB,CAAC,CAAC;SAChD;QACD,yFAAyF;QACzF,uDAAuD;IACzD,CAAC,EAAE,CAAC,MAAM,EAAE,kBAAkB,EAAE,aAAa,CAAC,CAAC,CAAC;IAEhD,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,uBAAuB,EAAE;YAC3B,MAAM,cAAc,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;YAE5C,2FAA2F;YAC3F,aAAa,CAAC,mBAAmB,EAAE,KAAK,CAAC,CAAC;YAC1C,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"NetworkConfiguration.js","sourceRoot":"","sources":["../../../../../lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx"],"names":[],"mappings":";;;AAAA,uDAAyC;AACzC,mCAA0C;AAC1C,uDAAwD;AACxD,0IAA0G;AAE1G,2CAAsC;AACtC,8FAMkE;AAClE,4CAOyB;AACzB,2FAA+E;AAC/E,8HAA2H;AAQ3H,MAAM,oBAAoB,GAAG,CAAC,EAC5B,OAAO,EACP,WAAW,EACX,2BAA2B,EAC3B,sBAAsB,EACtB,qBAAqB,GACK,EAAE,EAAE;;IAC9B,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,wCAAc,GAAE,CAAC;IAC/B,MAAM,EAAE,aAAa,EAAE,MAAM,EAAE,OAAO,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