@openshift-assisted/ui-lib 5.0.0-cim → 5.0.2-cim
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/ClusterDeploymentWizard.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.d.ts +0 -17
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/useDetailsFormik.d.ts +19 -0
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/useDetailsFormik.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts +2 -2
- package/build/@types/cim/components/ClusterDeployment/components/ValidationSection.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/types.d.ts +1 -3
- package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +4 -3
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.d.ts +6 -0
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.d.ts.map +1 -0
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts +4 -2
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts +2 -1
- package/build/@types/cim/components/Hypershift/hooks/useSupportedOCPVersions.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
- package/build/@types/cim/components/common/CpuArchitectureDropdown.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/clusterDeployment.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/status.d.ts +5 -7
- package/build/@types/cim/components/helpers/status.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/versions.d.ts +3 -2
- package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
- package/build/@types/cim/components/index.d.ts +0 -1
- package/build/@types/cim/components/index.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimStorageMissingAlert.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/constants.d.ts +1 -1
- package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts +2 -3
- package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts.map +1 -1
- package/build/@types/cim/hooks/index.d.ts +2 -0
- package/build/@types/cim/hooks/index.d.ts.map +1 -1
- package/build/@types/cim/hooks/useAgents.d.ts +4 -0
- package/build/@types/cim/hooks/useAgents.d.ts.map +1 -0
- package/build/@types/cim/hooks/useStorageClasses.d.ts +4 -0
- package/build/@types/cim/hooks/useStorageClasses.d.ts.map +1 -0
- package/build/@types/cim/index.d.ts +0 -1
- package/build/@types/cim/index.d.ts.map +1 -1
- package/build/@types/common/api/assisted-service/ClustersAPI.d.ts +2 -1
- package/build/@types/common/api/assisted-service/ClustersAPI.d.ts.map +1 -1
- package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts +7 -1
- package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.d.ts +2 -1
- package/build/@types/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/ExternalPlatformsDropdown.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/utils.d.ts +9 -1
- package/build/@types/common/components/clusterConfiguration/utils.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ClusterCredentials.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts +0 -5
- package/build/@types/common/components/clusterDetail/ConsoleModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts +0 -1
- package/build/@types/common/components/clusterWizard/validationsInfoUtils.d.ts.map +1 -1
- package/build/@types/common/components/hosts/utils.d.ts.map +1 -1
- package/build/@types/common/components/index.d.ts +1 -1
- package/build/@types/common/components/index.d.ts.map +1 -1
- package/build/@types/common/components/operators/operatorSpecs.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/PullSecretField.d.ts +1 -0
- package/build/@types/common/components/ui/formik/PullSecretField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts +2 -1
- package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/config/docs_links.d.ts.map +1 -1
- package/build/@types/common/selectors/clusterSelectors.d.ts +1 -1
- package/build/@types/common/selectors/clusterSelectors.d.ts.map +1 -1
- package/build/@types/common/types/clusters.d.ts +3 -3
- package/build/@types/common/types/clusters.d.ts.map +1 -1
- package/build/@types/common/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/AddHosts/types.d.ts +4 -3
- package/build/@types/ocm/components/AddHosts/types.d.ts.map +1 -1
- package/build/@types/ocm/components/Routes.d.ts +1 -1
- package/build/@types/ocm/components/Routes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageModal.d.ts +0 -1
- package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts +10 -2
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.d.ts +4 -0
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts +3 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OperatorCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/bundleSpecs.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/utils.d.ts +3 -6
- package/build/@types/ocm/components/clusterConfiguration/operators/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewSummary.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/TableSummaryExpandable.d.ts +1 -0
- package/build/@types/ocm/components/clusterConfiguration/review/TableSummaryExpandable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/utils.d.ts +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.d.ts +1 -0
- package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.d.ts +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts +1 -1
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterDetailsButtonGroup.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterDetails.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts +5 -0
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContext.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/NewClusterWizard.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/Operators.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts +3 -3
- package/build/@types/ocm/components/clusterWizard/OperatorsBundle.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsSelect.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OptionalOperatorsDropdown.d.ts +13 -0
- package/build/@types/ocm/components/clusterWizard/OptionalOperatorsDropdown.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/constants.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts +1 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts +4 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterWizard/disconnected/ReviewStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts +4 -5
- package/build/@types/ocm/components/clusterWizard/wizardTransition.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClustersListToolbar.d.ts +1 -2
- package/build/@types/ocm/components/clusters/ClustersListToolbar.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClustersTable.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/index.d.ts +0 -1
- package/build/@types/ocm/components/featureSupportLevels/index.d.ts.map +1 -1
- package/build/@types/ocm/components/ui/Buttons/BackButton.d.ts +1 -1
- package/build/@types/ocm/components/ui/Buttons/BackButton.d.ts.map +1 -1
- package/build/@types/ocm/hooks/useLateBinding.d.ts.map +1 -1
- package/build/@types/ocm/services/ClustersService.d.ts +2 -1
- package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
- package/build/@types/ocm/services/InfraEnvsService.d.ts +1 -1
- package/build/@types/ocm/services/InfraEnvsService.d.ts.map +1 -1
- package/build/@types/ocm/services/NewFeatureSupportLevelsService.d.ts +1 -1
- package/build/@types/ocm/store/hooks.d.ts +1 -1
- package/build/@types/ocm/store/slices/clusters/selectors.d.ts +5 -61
- package/build/@types/ocm/store/slices/clusters/selectors.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/current-cluster/slice.d.ts +2 -0
- package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts +2 -20
- package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/infra-envs/selectors.d.ts +4 -21
- package/build/@types/ocm/store/slices/infra-envs/selectors.d.ts.map +1 -1
- package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +1 -1
- package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
- package/build/cjs/cim/components/Agent/NoAgentsAlert.js +2 -2
- package/build/cjs/cim/components/Agent/NoAgentsAlert.js.map +1 -1
- package/build/cjs/cim/components/Agent/tableColumns.js +3 -3
- package/build/cjs/cim/components/Agent/tableColumns.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +22 -16
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterInstallationError.js +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterInstallationError.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js +6 -3
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js +4 -5
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js +6 -32
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +3 -16
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/useDetailsFormik.js +41 -0
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/useDetailsFormik.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/components/ValidationSection.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/constants.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js +1 -1
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +8 -8
- package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +26 -8
- package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js +2 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js +3 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +13 -3
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.js +52 -0
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.js.map +1 -0
- package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js +3 -3
- package/build/cjs/cim/components/Hypershift/hooks/useSupportedOCPVersions.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js +2 -2
- package/build/cjs/cim/components/InfraEnv/AddHostDropdown.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js +2 -4
- package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +2 -2
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
- package/build/cjs/cim/components/common/CpuArchitectureDropdown.js +1 -1
- package/build/cjs/cim/components/common/CpuArchitectureDropdown.js.map +1 -1
- package/build/cjs/cim/components/helpers/clusterDeployment.js +14 -10
- package/build/cjs/cim/components/helpers/clusterDeployment.js.map +1 -1
- package/build/cjs/cim/components/helpers/status.js +4 -4
- package/build/cjs/cim/components/helpers/status.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +2 -12
- package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
- package/build/cjs/cim/components/helpers/versions.js +6 -6
- package/build/cjs/cim/components/helpers/versions.js.map +1 -1
- package/build/cjs/cim/components/helpers/versions.test.js +19 -18
- package/build/cjs/cim/components/helpers/versions.test.js.map +1 -1
- package/build/cjs/cim/components/index.js +0 -1
- package/build/cjs/cim/components/index.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigProgressAlert.js +3 -3
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigProgressAlert.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +2 -2
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js +4 -4
- package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/constants.js +1 -1
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +4 -4
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
- package/build/cjs/cim/hooks/index.js +2 -0
- package/build/cjs/cim/hooks/index.js.map +1 -1
- package/build/cjs/cim/hooks/useAgents.js +13 -0
- package/build/cjs/cim/hooks/useAgents.js.map +1 -0
- package/build/cjs/cim/hooks/useStorageClasses.js +13 -0
- package/build/cjs/cim/hooks/useStorageClasses.js.map +1 -0
- package/build/cjs/cim/index.js +0 -1
- package/build/cjs/cim/index.js.map +1 -1
- package/build/cjs/common/api/assisted-service/ClustersAPI.js +3 -0
- package/build/cjs/common/api/assisted-service/ClustersAPI.js.map +1 -1
- package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +2 -4
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js +9 -3
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +1 -1
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js +1 -1
- package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/utils.js +13 -1
- package/build/cjs/common/components/clusterConfiguration/utils.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/utils.test.js +36 -0
- package/build/cjs/common/components/clusterConfiguration/utils.test.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ClusterCredentials.js +10 -9
- package/build/cjs/common/components/clusterDetail/ClusterCredentials.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ConsoleModal.js +2 -11
- package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js +16 -0
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +34 -19
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +29 -31
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.js +3 -3
- package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js +19 -30
- package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js +12 -21
- package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js.map +1 -1
- package/build/cjs/common/components/hosts/utils.js +6 -1
- package/build/cjs/common/components/hosts/utils.js.map +1 -1
- package/build/cjs/common/components/index.js +1 -1
- package/build/cjs/common/components/index.js.map +1 -1
- package/build/cjs/common/components/operators/operatorSpecs.js +0 -3
- package/build/cjs/common/components/operators/operatorSpecs.js.map +1 -1
- package/build/cjs/common/components/ui/formik/PullSecretField.js +2 -2
- package/build/cjs/common/components/ui/formik/PullSecretField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js +2 -1
- package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js.map +1 -1
- package/build/cjs/common/config/constants.js +4 -0
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/config/docs_links.js +5 -4
- package/build/cjs/common/config/docs_links.js.map +1 -1
- package/build/cjs/common/selectors/clusterSelectors.js +7 -8
- package/build/cjs/common/selectors/clusterSelectors.js.map +1 -1
- package/build/cjs/common/types/clusters.js.map +1 -1
- package/build/cjs/common/utils.js +3 -0
- package/build/cjs/common/utils.js.map +1 -1
- package/build/cjs/common/validationSchemas/addressValidation.js +1 -1
- package/build/cjs/common/validationSchemas/addressValidation.js.map +1 -1
- package/build/cjs/ocm/components/Routes.js +8 -8
- package/build/cjs/ocm/components/Routes.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js +5 -2
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +6 -2
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterProgressItems.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterProgressItems.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js +3 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js +3 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js +11 -8
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +68 -17
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +50 -13
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js +39 -21
- package/build/cjs/ocm/components/clusterConfiguration/operators/OperatorCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/bundleSpecs.js +1 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/bundleSpecs.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/utils.js +7 -25
- package/build/cjs/ocm/components/clusterConfiguration/operators/utils.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +4 -2
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js +75 -20
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewSummary.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/TableSummaryExpandable.css +3 -0
- package/build/cjs/ocm/components/clusterConfiguration/review/TableSummaryExpandable.js +2 -3
- package/build/cjs/ocm/components/clusterConfiguration/review/TableSummaryExpandable.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.js +8 -2
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.test.js +35 -0
- package/build/cjs/ocm/components/clusterConfiguration/review/utils.test.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js +10 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js +5 -5
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js +3 -7
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +4 -4
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +4 -4
- package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js +8 -2
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +1 -1
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +6 -13
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +2 -2
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContext.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +15 -6
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js +2 -2
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardFooter.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js +9 -3
- package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js +40 -12
- package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js +34 -15
- package/build/cjs/ocm/components/clusterWizard/OperatorsBundle.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +18 -4
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.test.js +11 -5
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.test.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OptionalOperatorsDropdown.js +34 -0
- package/build/cjs/ocm/components/clusterWizard/OptionalOperatorsDropdown.js.map +1 -0
- 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/disconnected/BasicStep.js +16 -22
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js +102 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js.map +1 -0
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js +10 -8
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +72 -29
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterBreadcrumbs.js +2 -2
- package/build/cjs/ocm/components/clusters/ClusterBreadcrumbs.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterPage.js +4 -4
- package/build/cjs/ocm/components/clusters/ClusterPage.js.map +1 -1
- package/build/cjs/ocm/components/clusters/Clusters.js +3 -3
- package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +5 -5
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClustersTable.js +4 -3
- package/build/cjs/ocm/components/clusters/ClustersTable.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/index.js +0 -1
- package/build/cjs/ocm/components/featureSupportLevels/index.js.map +1 -1
- package/build/cjs/ocm/components/ui/Buttons/BackButton.js +2 -2
- package/build/cjs/ocm/components/ui/Buttons/BackButton.js.map +1 -1
- package/build/cjs/ocm/hooks/useInfraEnvId.js +2 -2
- package/build/cjs/ocm/hooks/useInfraEnvId.js.map +1 -1
- package/build/cjs/ocm/hooks/useLateBinding.js +41 -26
- package/build/cjs/ocm/hooks/useLateBinding.js.map +1 -1
- package/build/cjs/ocm/hooks/usePullSecret.js +2 -2
- package/build/cjs/ocm/services/ClustersService.js +3 -0
- package/build/cjs/ocm/services/ClustersService.js.map +1 -1
- package/build/cjs/ocm/services/InfraEnvsService.js +4 -1
- package/build/cjs/ocm/services/InfraEnvsService.js.map +1 -1
- package/build/cjs/ocm/store/slices/clusters/selectors.js +2 -2
- package/build/cjs/ocm/store/slices/clusters/selectors.js.map +1 -1
- package/build/cjs/ocm/store/slices/feature-flags/selectors.js.map +1 -1
- package/build/cjs/ocm/store/slices/infra-envs/selectors.js.map +1 -1
- package/lib/cim/components/Agent/AgentsSelectionTable.tsx +1 -1
- package/lib/cim/components/Agent/NoAgentsAlert.tsx +1 -1
- package/lib/cim/components/Agent/tableColumns.tsx +1 -1
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +101 -101
- package/lib/cim/components/ClusterDeployment/ClusterInstallationError.tsx +1 -1
- package/lib/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.tsx +6 -3
- package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +6 -6
- package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.tsx +6 -87
- package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +3 -15
- package/lib/cim/components/ClusterDeployment/clusterDetails/useDetailsFormik.tsx +97 -0
- package/lib/cim/components/ClusterDeployment/components/ValidationSection.tsx +3 -2
- package/lib/cim/components/ClusterDeployment/constants.ts +2 -2
- package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx +1 -1
- package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.tsx +2 -2
- package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +2 -2
- package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +29 -25
- package/lib/cim/components/ClusterDeployment/types.ts +2 -4
- package/lib/cim/components/ClusterDeployment/wizardTransition.ts +35 -20
- package/lib/cim/components/Hypershift/DetailsPage/NodePoolsTable.tsx +1 -1
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.tsx +4 -0
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +15 -2
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/StorageClassDropdown.tsx +70 -0
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.ts +10 -2
- package/lib/cim/components/Hypershift/hooks/useSupportedOCPVersions.ts +4 -2
- package/lib/cim/components/InfraEnv/AddHostDropdown.tsx +1 -1
- package/lib/cim/components/InfraEnv/EnvironmentErrors.tsx +9 -8
- package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +0 -2
- package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +1 -1
- package/lib/cim/components/common/CpuArchitectureDropdown.tsx +2 -1
- package/lib/cim/components/helpers/clusterDeployment.ts +9 -4
- package/lib/cim/components/helpers/status.ts +12 -13
- package/lib/cim/components/helpers/toAssisted.ts +3 -13
- package/lib/cim/components/helpers/versions.test.ts +21 -18
- package/lib/cim/components/helpers/versions.ts +7 -3
- package/lib/cim/components/index.ts +0 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigProgressAlert.tsx +2 -2
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationFormFields.tsx +1 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +2 -2
- package/lib/cim/components/modals/CimConfiguration/CimStorageMissingAlert.tsx +9 -3
- package/lib/cim/components/modals/CimConfiguration/constants.ts +1 -1
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +4 -15
- package/lib/cim/hooks/index.tsx +2 -0
- package/lib/cim/hooks/useAgents.tsx +15 -0
- package/lib/cim/hooks/useStorageClasses.tsx +15 -0
- package/lib/cim/index.ts +0 -1
- package/lib/common/api/assisted-service/ClustersAPI.ts +8 -0
- package/lib/common/api/assisted-service/NewFeatureSupportLevelsAPI.ts +9 -4
- package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +5 -7
- package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +3 -1
- package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionControlGroup.tsx +18 -8
- package/lib/common/components/clusterConfiguration/DownloadIso.tsx +1 -1
- package/lib/common/components/clusterConfiguration/ExternalPlatformsDropdown.tsx +3 -1
- package/lib/common/components/clusterConfiguration/utils.test.ts +43 -1
- package/lib/common/components/clusterConfiguration/utils.ts +13 -0
- package/lib/common/components/clusterDetail/ClusterCredentials.tsx +49 -53
- package/lib/common/components/clusterDetail/ConsoleModal.tsx +1 -36
- package/lib/common/components/clusterWizard/ReviewValidations.tsx +24 -0
- package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +38 -12
- package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +31 -57
- package/lib/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.tsx +3 -3
- package/lib/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx +33 -38
- package/lib/common/components/clusterWizard/validationsInfoUtils.ts +16 -23
- package/lib/common/components/hosts/utils.ts +8 -1
- package/lib/common/components/index.ts +1 -1
- package/lib/common/components/operators/operatorSpecs.tsx +0 -16
- package/lib/common/components/ui/formik/PullSecretField.tsx +5 -2
- package/lib/common/components/ui/formik/SelectFieldWithSearch.tsx +3 -0
- package/lib/common/config/constants.ts +4 -0
- package/lib/common/config/docs_links.ts +5 -4
- package/lib/common/selectors/clusterSelectors.ts +9 -9
- package/lib/common/types/clusters.ts +4 -2
- package/lib/common/utils.ts +3 -0
- package/lib/common/validationSchemas/addressValidation.tsx +2 -2
- package/lib/ocm/components/AddHosts/types.ts +6 -3
- package/lib/ocm/components/Routes.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/DiscoveryImageForm.tsx +11 -2
- package/lib/ocm/components/clusterConfiguration/DiscoveryImageModal.tsx +13 -3
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +9 -1
- package/lib/ocm/components/clusterConfiguration/OcmClusterProgressItems.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +3 -3
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/CustomManifestsPage.tsx +8 -1
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsForm.tsx +3 -1
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/utils.tsx +12 -6
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +86 -22
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +57 -20
- package/lib/ocm/components/clusterConfiguration/operators/OperatorCheckbox.tsx +48 -34
- package/lib/ocm/components/clusterConfiguration/operators/bundleSpecs.tsx +2 -3
- package/lib/ocm/components/clusterConfiguration/operators/utils.tsx +6 -37
- package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +4 -2
- package/lib/ocm/components/clusterConfiguration/review/ReviewOperatorsTable.tsx +114 -24
- package/lib/ocm/components/clusterConfiguration/review/ReviewSummary.tsx +1 -4
- package/lib/ocm/components/clusterConfiguration/review/TableSummaryExpandable.css +3 -0
- package/lib/ocm/components/clusterConfiguration/review/TableSummaryExpandable.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/review/utils.test.ts +41 -0
- package/lib/ocm/components/clusterConfiguration/review/utils.tsx +6 -3
- package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.tsx +10 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpPage.tsx +9 -6
- package/lib/ocm/components/clusterConfiguration/staticIp/data/formDataToInfraEnvField.ts +2 -0
- package/lib/ocm/components/clusterConfiguration/staticIp/data/nmstateTypes.ts +1 -0
- package/lib/ocm/components/clusterConfiguration/staticIp/data/nmstateYaml.ts +2 -0
- package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +1 -1
- package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +3 -3
- package/lib/ocm/components/clusterDetail/ClusterDetailsButtonGroup.tsx +27 -2
- package/lib/ocm/components/clusterDetail/ClusterInstallationError.tsx +1 -1
- package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +1 -1
- package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +4 -16
- package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +1 -1
- package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +5 -0
- package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +15 -14
- package/lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx +1 -1
- package/lib/ocm/components/clusterWizard/NewClusterWizard.tsx +10 -3
- package/lib/ocm/components/clusterWizard/Operators.tsx +47 -12
- package/lib/ocm/components/clusterWizard/OperatorsBundle.tsx +72 -26
- package/lib/ocm/components/clusterWizard/OperatorsSelect.test.ts +11 -5
- package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +21 -4
- package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +1 -1
- package/lib/ocm/components/clusterWizard/OptionalOperatorsDropdown.tsx +106 -0
- package/lib/ocm/components/clusterWizard/constants.ts +1 -0
- package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +31 -52
- package/lib/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.tsx +173 -0
- package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +11 -9
- package/lib/ocm/components/clusterWizard/wizardTransition.ts +96 -37
- package/lib/ocm/components/clusters/ClusterBreadcrumbs.tsx +1 -1
- package/lib/ocm/components/clusters/ClusterPage.tsx +1 -1
- package/lib/ocm/components/clusters/Clusters.tsx +2 -2
- package/lib/ocm/components/clusters/ClustersListToolbar.tsx +5 -7
- package/lib/ocm/components/clusters/ClustersTable.tsx +60 -50
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +1 -1
- package/lib/ocm/components/featureSupportLevels/index.ts +0 -1
- package/lib/ocm/components/ui/Buttons/BackButton.tsx +1 -1
- package/lib/ocm/hooks/useInfraEnvId.ts +2 -2
- package/lib/ocm/hooks/useLateBinding.ts +45 -24
- package/lib/ocm/hooks/usePullSecret.ts +2 -2
- package/lib/ocm/services/ClustersService.ts +5 -0
- package/lib/ocm/services/InfraEnvsService.ts +4 -1
- package/lib/ocm/store/slices/clusters/selectors.tsx +7 -5
- package/lib/ocm/store/slices/feature-flags/selectors.ts +5 -2
- package/lib/ocm/store/slices/infra-envs/selectors.ts +4 -2
- package/package.json +17 -17
- package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts +0 -9
- package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts.map +0 -1
- package/build/@types/cim/components/featureSupportLevels/featureStateUtils.d.ts +0 -6
- package/build/@types/cim/components/featureSupportLevels/featureStateUtils.d.ts.map +0 -1
- package/build/@types/cim/components/featureSupportLevels/index.d.ts +0 -2
- package/build/@types/cim/components/featureSupportLevels/index.d.ts.map +0 -1
- package/build/@types/cim/config/constants.d.ts +0 -16
- package/build/@types/cim/config/constants.d.ts.map +0 -1
- package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts +0 -9
- package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts.map +0 -1
- package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts +0 -22
- package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts.map +0 -1
- package/build/@types/common/components/featureSupportLevels/index.d.ts +0 -3
- package/build/@types/common/components/featureSupportLevels/index.d.ts.map +0 -1
- package/build/@types/common/components/featureSupportLevels/types.d.ts +0 -8
- package/build/@types/common/components/featureSupportLevels/types.d.ts.map +0 -1
- package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js +0 -82
- package/build/cjs/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.js.map +0 -1
- package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js +0 -45
- package/build/cjs/cim/components/featureSupportLevels/featureStateUtils.js.map +0 -1
- package/build/cjs/cim/components/featureSupportLevels/index.js +0 -7
- package/build/cjs/cim/components/featureSupportLevels/index.js.map +0 -1
- package/build/cjs/cim/config/constants.js +0 -272
- package/build/cjs/cim/config/constants.js.map +0 -1
- package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js +0 -26
- package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js.map +0 -1
- package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js +0 -21
- package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelContext.js.map +0 -1
- package/build/cjs/common/components/featureSupportLevels/index.js +0 -8
- package/build/cjs/common/components/featureSupportLevels/index.js.map +0 -1
- package/build/cjs/common/components/featureSupportLevels/types.js +0 -3
- package/build/cjs/common/components/featureSupportLevels/types.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageModal.css +0 -3
- package/lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx +0 -136
- package/lib/cim/components/featureSupportLevels/featureStateUtils.tsx +0 -61
- package/lib/cim/components/featureSupportLevels/index.ts +0 -1
- package/lib/cim/config/constants.ts +0 -285
- package/lib/common/components/featureSupportLevels/FeatureSupportLevelBadge.tsx +0 -37
- package/lib/common/components/featureSupportLevels/FeatureSupportLevelContext.tsx +0 -49
- package/lib/common/components/featureSupportLevels/index.ts +0 -2
- package/lib/common/components/featureSupportLevels/types.ts +0 -12
- package/lib/ocm/components/clusterConfiguration/DiscoveryImageModal.css +0 -3
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
3
3
|
import { Grid, GridItem, Wizard, WizardStep } from '@patternfly/react-core';
|
|
4
|
-
import { AlertsContextProvider, LoadingState } from '../../../common';
|
|
4
|
+
import { AlertsContextProvider, ErrorState, LoadingState } from '../../../common';
|
|
5
5
|
import { ClusterDeploymentWizardProps } from './types';
|
|
6
|
-
import { ACMFeatureSupportLevelProvider } from '../featureSupportLevels';
|
|
7
6
|
import { YamlPreview, useYamlPreview } from '../YamlPreview';
|
|
8
7
|
import { wizardStepNames } from './constants';
|
|
9
8
|
import { ClusterDeploymentWizardContextProvider } from './ClusterDeploymentWizardContext';
|
|
@@ -14,6 +13,7 @@ import { ClusterDeploymentHostsDiscoveryStep } from './hostDiscovery';
|
|
|
14
13
|
import { ClusterDeploymentNetworkingStep } from './networking';
|
|
15
14
|
import { ClusterDeploymentReviewStep } from './review';
|
|
16
15
|
import { ClusterDeploymentCustomManifestsStep } from './customManifests';
|
|
16
|
+
import { useAgents } from '../../hooks';
|
|
17
17
|
|
|
18
18
|
export const ClusterDeploymentWizard = ({
|
|
19
19
|
className,
|
|
@@ -27,7 +27,6 @@ export const ClusterDeploymentWizard = ({
|
|
|
27
27
|
fetchSecret,
|
|
28
28
|
clusterDeployment,
|
|
29
29
|
agentClusterInstall,
|
|
30
|
-
agents,
|
|
31
30
|
bareMetalHosts,
|
|
32
31
|
clusterImages,
|
|
33
32
|
aiConfigMap,
|
|
@@ -54,120 +53,121 @@ export const ClusterDeploymentWizard = ({
|
|
|
54
53
|
fetchKlusterletAddonConfig,
|
|
55
54
|
});
|
|
56
55
|
|
|
56
|
+
const [agents, loaded, error] = useAgents({ isList: true });
|
|
57
|
+
|
|
57
58
|
// if initialStep is set, it is either 'host-selection' or 'host-discovery', both at index 4
|
|
58
59
|
// if initialStep is not set, start at 'cluster-details' which is at index 2
|
|
59
60
|
const startIndex = initialStep ? 4 : 2;
|
|
60
61
|
const stepNames = wizardStepNames(t);
|
|
61
62
|
const isAIFlow = !!infraEnv;
|
|
62
63
|
|
|
64
|
+
if (!loaded) {
|
|
65
|
+
return <LoadingState />;
|
|
66
|
+
} else if (error) {
|
|
67
|
+
return <ErrorState />;
|
|
68
|
+
}
|
|
69
|
+
|
|
63
70
|
return (
|
|
64
71
|
<Grid style={{ height: '100%' }}>
|
|
65
72
|
<GridItem span={isPreviewOpen ? 7 : 12}>
|
|
66
73
|
<AlertsContextProvider>
|
|
67
|
-
<
|
|
68
|
-
<
|
|
69
|
-
<
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
>
|
|
75
|
-
<WizardStep
|
|
76
|
-
name={stepNames['installation-type']}
|
|
77
|
-
id={'installation-type'}
|
|
78
|
-
isDisabled
|
|
79
|
-
/>
|
|
74
|
+
<ClusterDeploymentWizardContextProvider agentClusterInstall={agentClusterInstall}>
|
|
75
|
+
<Wizard isVisitRequired startIndex={startIndex} className={className} onClose={onClose}>
|
|
76
|
+
<WizardStep
|
|
77
|
+
name={stepNames['installation-type']}
|
|
78
|
+
id={'installation-type'}
|
|
79
|
+
isDisabled
|
|
80
|
+
/>
|
|
80
81
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
<WizardStep name={stepNames['automation']} id={'automation'} isDisabled />
|
|
82
|
+
<WizardStep name={stepNames['cluster-details']} id={'cluster-details'}>
|
|
83
|
+
<ClusterDeploymentDetailsStep
|
|
84
|
+
clusterImages={clusterImages}
|
|
85
|
+
usedClusterNames={usedClusterNames}
|
|
86
|
+
clusterDeployment={clusterDeployment}
|
|
87
|
+
agentClusterInstall={agentClusterInstall}
|
|
88
|
+
agents={agents}
|
|
89
|
+
onSaveDetails={onSaveDetails}
|
|
90
|
+
isPreviewOpen={isPreviewOpen}
|
|
91
|
+
infraEnv={infraEnv}
|
|
92
|
+
isNutanix={isNutanix}
|
|
93
|
+
/>
|
|
94
|
+
</WizardStep>
|
|
96
95
|
|
|
97
|
-
|
|
98
|
-
<WizardStep name={stepNames['hosts-selection']} id={'host-selection'}>
|
|
99
|
-
{agentClusterInstall?.metadata?.name ? (
|
|
100
|
-
<ClusterDeploymentHostSelectionStep
|
|
101
|
-
clusterDeployment={clusterDeployment}
|
|
102
|
-
agentClusterInstall={agentClusterInstall}
|
|
103
|
-
onSaveHostsSelection={onSaveHostsSelection}
|
|
104
|
-
agents={agents}
|
|
105
|
-
aiConfigMap={aiConfigMap}
|
|
106
|
-
onEditRole={hostActions.onEditRole}
|
|
107
|
-
onSetInstallationDiskId={hostActions.onSetInstallationDiskId}
|
|
108
|
-
isNutanix={isNutanix}
|
|
109
|
-
/>
|
|
110
|
-
) : (
|
|
111
|
-
<LoadingState />
|
|
112
|
-
)}
|
|
113
|
-
</WizardStep>
|
|
114
|
-
) : (
|
|
115
|
-
<WizardStep name={stepNames['hosts-discovery']} id={'host-discovery'}>
|
|
116
|
-
{isAIFlow && onSaveISOParams && onCreateBMH ? (
|
|
117
|
-
<ClusterDeploymentHostsDiscoveryStep
|
|
118
|
-
clusterDeployment={clusterDeployment}
|
|
119
|
-
agentClusterInstall={agentClusterInstall}
|
|
120
|
-
agents={agents}
|
|
121
|
-
bareMetalHosts={bareMetalHosts}
|
|
122
|
-
aiConfigMap={aiConfigMap}
|
|
123
|
-
infraEnv={infraEnv}
|
|
124
|
-
fetchSecret={fetchSecret}
|
|
125
|
-
onChangeBMHHostname={onChangeBMHHostname}
|
|
126
|
-
onEditRole={hostActions.onEditRole}
|
|
127
|
-
onSetInstallationDiskId={hostActions.onSetInstallationDiskId}
|
|
128
|
-
onDeleteHost={hostActions.onDeleteHost}
|
|
129
|
-
onSaveISOParams={onSaveISOParams}
|
|
130
|
-
onCreateBMH={onCreateBMH}
|
|
131
|
-
{...rest}
|
|
132
|
-
/>
|
|
133
|
-
) : (
|
|
134
|
-
<LoadingState />
|
|
135
|
-
)}
|
|
136
|
-
</WizardStep>
|
|
137
|
-
)}
|
|
96
|
+
<WizardStep name={stepNames['automation']} id={'automation'} isDisabled />
|
|
138
97
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
98
|
+
{isCIMFlow(clusterDeployment) ? (
|
|
99
|
+
<WizardStep name={stepNames['host-selection']} id={'host-selection'}>
|
|
100
|
+
{agentClusterInstall?.metadata?.name ? (
|
|
101
|
+
<ClusterDeploymentHostSelectionStep
|
|
102
|
+
clusterDeployment={clusterDeployment}
|
|
103
|
+
agentClusterInstall={agentClusterInstall}
|
|
104
|
+
onSaveHostsSelection={onSaveHostsSelection}
|
|
105
|
+
agents={agents}
|
|
106
|
+
aiConfigMap={aiConfigMap}
|
|
107
|
+
onEditRole={hostActions.onEditRole}
|
|
108
|
+
onSetInstallationDiskId={hostActions.onSetInstallationDiskId}
|
|
109
|
+
isNutanix={isNutanix}
|
|
110
|
+
/>
|
|
111
|
+
) : (
|
|
112
|
+
<LoadingState />
|
|
113
|
+
)}
|
|
152
114
|
</WizardStep>
|
|
153
|
-
|
|
154
|
-
<WizardStep name={stepNames['
|
|
155
|
-
|
|
115
|
+
) : (
|
|
116
|
+
<WizardStep name={stepNames['host-discovery']} id={'host-discovery'}>
|
|
117
|
+
{isAIFlow && onSaveISOParams && onCreateBMH ? (
|
|
118
|
+
<ClusterDeploymentHostsDiscoveryStep
|
|
119
|
+
clusterDeployment={clusterDeployment}
|
|
120
|
+
agentClusterInstall={agentClusterInstall}
|
|
121
|
+
agents={agents}
|
|
122
|
+
bareMetalHosts={bareMetalHosts}
|
|
123
|
+
aiConfigMap={aiConfigMap}
|
|
124
|
+
infraEnv={infraEnv}
|
|
125
|
+
fetchSecret={fetchSecret}
|
|
126
|
+
onChangeBMHHostname={onChangeBMHHostname}
|
|
127
|
+
onEditRole={hostActions.onEditRole}
|
|
128
|
+
onSetInstallationDiskId={hostActions.onSetInstallationDiskId}
|
|
129
|
+
onDeleteHost={hostActions.onDeleteHost}
|
|
130
|
+
onSaveISOParams={onSaveISOParams}
|
|
131
|
+
onCreateBMH={onCreateBMH}
|
|
132
|
+
{...rest}
|
|
133
|
+
/>
|
|
134
|
+
) : (
|
|
135
|
+
<LoadingState />
|
|
136
|
+
)}
|
|
156
137
|
</WizardStep>
|
|
138
|
+
)}
|
|
157
139
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
140
|
+
<WizardStep name={stepNames['networking']} id={'networking'}>
|
|
141
|
+
<ClusterDeploymentNetworkingStep
|
|
142
|
+
clusterDeployment={clusterDeployment}
|
|
143
|
+
agentClusterInstall={agentClusterInstall}
|
|
144
|
+
agents={agents}
|
|
145
|
+
onSaveNetworking={onSaveNetworking}
|
|
146
|
+
onEditHost={hostActions.onEditHost}
|
|
147
|
+
onEditRole={hostActions.onEditRole}
|
|
148
|
+
fetchInfraEnv={fetchInfraEnv}
|
|
149
|
+
isPreviewOpen={isPreviewOpen}
|
|
150
|
+
onSetInstallationDiskId={hostActions.onSetInstallationDiskId}
|
|
151
|
+
isNutanix={isNutanix}
|
|
152
|
+
/>
|
|
153
|
+
</WizardStep>
|
|
154
|
+
|
|
155
|
+
<WizardStep name={stepNames['custom-manifests']} id={'custom-manifests'}>
|
|
156
|
+
<ClusterDeploymentCustomManifestsStep agentClusterInstall={agentClusterInstall} />
|
|
157
|
+
</WizardStep>
|
|
158
|
+
|
|
159
|
+
<WizardStep name={stepNames['review']} id={'review'}>
|
|
160
|
+
<ClusterDeploymentReviewStep
|
|
161
|
+
onFinish={onFinish}
|
|
162
|
+
clusterDeployment={clusterDeployment}
|
|
163
|
+
agentClusterInstall={agentClusterInstall}
|
|
164
|
+
agents={agents}
|
|
165
|
+
clusterImages={clusterImages}
|
|
166
|
+
infraEnv={infraEnv}
|
|
167
|
+
/>
|
|
168
|
+
</WizardStep>
|
|
169
|
+
</Wizard>
|
|
170
|
+
</ClusterDeploymentWizardContextProvider>
|
|
171
171
|
</AlertsContextProvider>
|
|
172
172
|
</GridItem>
|
|
173
173
|
{isPreviewOpen && (
|
|
@@ -36,7 +36,7 @@ const ClusterInstallationError: React.FC<ClusterInstallationErrorProps> = ({
|
|
|
36
36
|
agentClusterInstall={agentClusterInstall}
|
|
37
37
|
/>
|
|
38
38
|
<AlertActionLink
|
|
39
|
-
onClick={() => window.open(getReportIssueLink(), '_blank')}
|
|
39
|
+
onClick={() => window.open(getReportIssueLink(), '_blank', 'noopener,noreferrer')}
|
|
40
40
|
id={getID('button-report-bug')}
|
|
41
41
|
>
|
|
42
42
|
{t('ai:Report a bug')}
|
package/lib/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.tsx
CHANGED
|
@@ -2,9 +2,9 @@ import React from 'react';
|
|
|
2
2
|
import { Formik, FormikProps, useFormikContext } from 'formik';
|
|
3
3
|
import { Stack } from '@patternfly/react-core';
|
|
4
4
|
import noop from 'lodash-es/noop.js';
|
|
5
|
-
import { ClusterDetailsValues, getRichTextValidation } from '../../../../common';
|
|
5
|
+
import { ClusterDetailsValues, getRichTextValidation, useTranslation } from '../../../../common';
|
|
6
6
|
import { ClusterImageSetK8sResource } from '../../../types/k8s/cluster-image-set';
|
|
7
|
-
import { useDetailsFormik } from './
|
|
7
|
+
import { useDetailsFormik } from './useDetailsFormik';
|
|
8
8
|
import { ClusterDetailsFormFieldsProps } from './ClusterDetailsFormFields';
|
|
9
9
|
import { OsImage } from '../../../types';
|
|
10
10
|
import { getOCPVersions } from '../../helpers';
|
|
@@ -57,10 +57,13 @@ export const ACMClusterDeploymentDetailsStep: React.FC<ACMClusterDeploymentDetai
|
|
|
57
57
|
isNutanix,
|
|
58
58
|
...rest
|
|
59
59
|
}) => {
|
|
60
|
-
const
|
|
60
|
+
const { t } = useTranslation();
|
|
61
|
+
const ocpVersions = getOCPVersions(clusterImages, t, !!isNutanix, osImages);
|
|
62
|
+
const allOcpVersions = getOCPVersions(clusterImages, t, !!isNutanix, osImages, true);
|
|
61
63
|
|
|
62
64
|
const [initialValues, validationSchema] = useDetailsFormik({
|
|
63
65
|
ocpVersions,
|
|
66
|
+
allOcpVersions,
|
|
64
67
|
usedClusterNames,
|
|
65
68
|
});
|
|
66
69
|
|
package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx
CHANGED
|
@@ -24,11 +24,11 @@ import { useFormikContext } from 'formik';
|
|
|
24
24
|
import {
|
|
25
25
|
ClusterDetailsValues,
|
|
26
26
|
CpuArchitecture,
|
|
27
|
+
isMajorMinorVersionEqualOrGreater,
|
|
27
28
|
SupportedCpuArchitecture,
|
|
28
29
|
} from '../../../../common';
|
|
29
30
|
import { ClusterDeploymentWizardContext } from '../ClusterDeploymentWizardContext';
|
|
30
31
|
import { ValidationSection } from '../components/ValidationSection';
|
|
31
|
-
import { toNumber } from 'lodash-es';
|
|
32
32
|
|
|
33
33
|
type ClusterDeploymentDetailsFormProps = {
|
|
34
34
|
clusterImages: ClusterImageSetK8sResource[];
|
|
@@ -98,13 +98,13 @@ export const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsForm
|
|
|
98
98
|
}) => {
|
|
99
99
|
const { t } = useTranslation();
|
|
100
100
|
const versions = React.useMemo(
|
|
101
|
-
() => getOCPVersions(clusterImages, isNutanix, osImages),
|
|
102
|
-
[clusterImages, isNutanix, osImages],
|
|
101
|
+
() => getOCPVersions(clusterImages, t, isNutanix, osImages),
|
|
102
|
+
[clusterImages, isNutanix, osImages, t],
|
|
103
103
|
);
|
|
104
104
|
|
|
105
105
|
const allVersions = React.useMemo(
|
|
106
|
-
() => getOCPVersions(clusterImages, isNutanix, osImages, true),
|
|
107
|
-
[clusterImages, isNutanix, osImages],
|
|
106
|
+
() => getOCPVersions(clusterImages, t, isNutanix, osImages, true),
|
|
107
|
+
[clusterImages, isNutanix, osImages, t],
|
|
108
108
|
);
|
|
109
109
|
|
|
110
110
|
const isEditFlow = !!clusterDeployment;
|
|
@@ -116,7 +116,7 @@ export const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsForm
|
|
|
116
116
|
const version = allVersions.find((ver) => ver.value === values.openshiftVersion);
|
|
117
117
|
const isMulti = version?.cpuArchitectures?.[0] === CpuArchitecture.MULTI;
|
|
118
118
|
|
|
119
|
-
const highlyAvailableSupported =
|
|
119
|
+
const highlyAvailableSupported = isMajorMinorVersionEqualOrGreater(version?.version, '4.18');
|
|
120
120
|
return [
|
|
121
121
|
(isMulti ? cpuArchitectures : version?.cpuArchitectures) as SupportedCpuArchitecture[],
|
|
122
122
|
highlyAvailableSupported && !isMulti,
|
package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.tsx
CHANGED
|
@@ -1,101 +1,18 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Formik } from 'formik';
|
|
3
|
-
import { Lazy } from 'yup';
|
|
4
3
|
import { Grid, GridItem, useWizardContext } from '@patternfly/react-core';
|
|
5
4
|
|
|
6
|
-
import {
|
|
7
|
-
useAlerts,
|
|
8
|
-
getClusterDetailsInitialValues,
|
|
9
|
-
getClusterDetailsValidationSchema,
|
|
10
|
-
ClusterWizardStepHeader,
|
|
11
|
-
ClusterDetailsValues,
|
|
12
|
-
getRichTextValidation,
|
|
13
|
-
OpenshiftVersionOptionType,
|
|
14
|
-
} from '../../../../common';
|
|
5
|
+
import { useAlerts, ClusterWizardStepHeader, getRichTextValidation } from '../../../../common';
|
|
15
6
|
|
|
16
7
|
import { ClusterDeploymentDetailsStepProps, ClusterDeploymentDetailsValues } from '../types';
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
AgentClusterInstallK8sResource,
|
|
20
|
-
AgentK8sResource,
|
|
21
|
-
ClusterDeploymentK8sResource,
|
|
22
|
-
InfraEnvK8sResource,
|
|
23
|
-
} from '../../../types';
|
|
8
|
+
import { getOCPVersions } from '../../helpers';
|
|
24
9
|
import {
|
|
25
10
|
ClusterDeploymentDetailsForm,
|
|
26
11
|
ClusterDeploymentDetailsFormWrapper,
|
|
27
12
|
} from './ClusterDeploymentDetailsForm';
|
|
28
13
|
import { getGridSpans } from '../helpers';
|
|
29
14
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
30
|
-
|
|
31
|
-
type UseDetailsFormikArgs = {
|
|
32
|
-
usedClusterNames: string[];
|
|
33
|
-
ocpVersions: OpenshiftVersionOptionType[];
|
|
34
|
-
clusterDeployment?: ClusterDeploymentK8sResource;
|
|
35
|
-
agentClusterInstall?: AgentClusterInstallK8sResource;
|
|
36
|
-
agents?: AgentK8sResource[];
|
|
37
|
-
infraEnv?: InfraEnvK8sResource;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const useDetailsFormik = ({
|
|
41
|
-
clusterDeployment,
|
|
42
|
-
agentClusterInstall,
|
|
43
|
-
agents,
|
|
44
|
-
usedClusterNames,
|
|
45
|
-
infraEnv,
|
|
46
|
-
ocpVersions,
|
|
47
|
-
}: UseDetailsFormikArgs): [
|
|
48
|
-
ClusterDetailsValues & { networkType: 'OpenShiftSDN' | 'OVNKubernetes' },
|
|
49
|
-
Lazy<{ baseDnsDomain: string }>,
|
|
50
|
-
] => {
|
|
51
|
-
const { t } = useTranslation();
|
|
52
|
-
const isEdit = !!clusterDeployment || !!agentClusterInstall;
|
|
53
|
-
|
|
54
|
-
const cluster = React.useMemo(
|
|
55
|
-
() =>
|
|
56
|
-
clusterDeployment && agentClusterInstall
|
|
57
|
-
? getAICluster({
|
|
58
|
-
clusterDeployment,
|
|
59
|
-
agentClusterInstall,
|
|
60
|
-
agents,
|
|
61
|
-
infraEnv,
|
|
62
|
-
})
|
|
63
|
-
: undefined,
|
|
64
|
-
[agentClusterInstall, clusterDeployment, agents, infraEnv],
|
|
65
|
-
);
|
|
66
|
-
|
|
67
|
-
const initialValues = React.useMemo(
|
|
68
|
-
() => {
|
|
69
|
-
const initValues = getClusterDetailsInitialValues({
|
|
70
|
-
managedDomains: [], // not supported
|
|
71
|
-
cluster,
|
|
72
|
-
ocpVersions,
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
const ocpVersion = ocpVersions.find(
|
|
76
|
-
(ocpVersion) => ocpVersion.value === initValues.openshiftVersion,
|
|
77
|
-
);
|
|
78
|
-
return {
|
|
79
|
-
...initValues,
|
|
80
|
-
networkType: getNetworkType(ocpVersion),
|
|
81
|
-
};
|
|
82
|
-
},
|
|
83
|
-
[], // eslint-disable-line react-hooks/exhaustive-deps
|
|
84
|
-
);
|
|
85
|
-
|
|
86
|
-
const validationSchema = React.useMemo(
|
|
87
|
-
() =>
|
|
88
|
-
getClusterDetailsValidationSchema({
|
|
89
|
-
usedClusterNames,
|
|
90
|
-
pullSecretSet: isEdit,
|
|
91
|
-
validateUniqueName: true,
|
|
92
|
-
t,
|
|
93
|
-
}),
|
|
94
|
-
[usedClusterNames, isEdit, t],
|
|
95
|
-
);
|
|
96
|
-
|
|
97
|
-
return [initialValues, validationSchema];
|
|
98
|
-
};
|
|
15
|
+
import { useDetailsFormik } from './useDetailsFormik';
|
|
99
16
|
|
|
100
17
|
export const ClusterDeploymentDetailsStep: React.FC<ClusterDeploymentDetailsStepProps> = ({
|
|
101
18
|
clusterImages,
|
|
@@ -112,12 +29,14 @@ export const ClusterDeploymentDetailsStep: React.FC<ClusterDeploymentDetailsStep
|
|
|
112
29
|
const { addAlert } = useAlerts();
|
|
113
30
|
const { goToNextStep } = useWizardContext();
|
|
114
31
|
|
|
115
|
-
const ocpVersions = getOCPVersions(clusterImages, isNutanix);
|
|
32
|
+
const ocpVersions = getOCPVersions(clusterImages, t, isNutanix);
|
|
33
|
+
const allOcpVersions = getOCPVersions(clusterImages, t, isNutanix, undefined, true);
|
|
116
34
|
const gridSpans = getGridSpans(isPreviewOpen);
|
|
117
35
|
|
|
118
36
|
const [initialValues, validationSchema] = useDetailsFormik({
|
|
119
37
|
clusterDeployment,
|
|
120
38
|
ocpVersions,
|
|
39
|
+
allOcpVersions,
|
|
121
40
|
agentClusterInstall,
|
|
122
41
|
agents,
|
|
123
42
|
usedClusterNames,
|
|
@@ -17,7 +17,6 @@ import { ClusterDetailsValues } from '../../../../common/components/clusterWizar
|
|
|
17
17
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
18
18
|
import CpuArchitectureDropdown from '../../common/CpuArchitectureDropdown';
|
|
19
19
|
import ControlPlaneNodesDropdown from '../../../../common/components/clusterConfiguration/ControlPlaneNodesDropdown';
|
|
20
|
-
import { getNetworkType } from '../../helpers';
|
|
21
20
|
|
|
22
21
|
export type ClusterDetailsFormFieldsProps = {
|
|
23
22
|
isEditFlow: boolean;
|
|
@@ -59,19 +58,9 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
|
|
|
59
58
|
const { t } = useTranslation();
|
|
60
59
|
const nameInputRef = React.useRef<HTMLInputElement>();
|
|
61
60
|
const [openshiftVersionModalOpen, setOpenshiftVersionModalOpen] = React.useState(false);
|
|
62
|
-
const { values
|
|
61
|
+
const { values } = useFormikContext<ClusterDetailsValues>();
|
|
63
62
|
const { name, baseDnsDomain } = values;
|
|
64
63
|
|
|
65
|
-
React.useEffect(() => {
|
|
66
|
-
if (!versions.length && !values.openshiftVersion && !isEditFlow) {
|
|
67
|
-
const fallbackOpenShiftVersion = allVersions.find((version) => version.default);
|
|
68
|
-
setFieldValue('customOpenshiftSelect', fallbackOpenShiftVersion?.value);
|
|
69
|
-
setFieldValue('openshiftVersion', fallbackOpenShiftVersion?.value);
|
|
70
|
-
setFieldValue('networkType', getNetworkType(fallbackOpenShiftVersion));
|
|
71
|
-
}
|
|
72
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
73
|
-
}, []);
|
|
74
|
-
|
|
75
64
|
React.useEffect(() => {
|
|
76
65
|
nameInputRef.current?.focus();
|
|
77
66
|
}, []);
|
|
@@ -131,9 +120,8 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
|
|
|
131
120
|
)}
|
|
132
121
|
{isEditFlow ? (
|
|
133
122
|
<StaticTextField name="openshiftVersion" label="OpenShift version" isRequired>
|
|
134
|
-
{
|
|
135
|
-
|
|
136
|
-
values.openshiftVersion}
|
|
123
|
+
{allVersions.find((v) => v.value === values.openshiftVersion)?.label ||
|
|
124
|
+
`${t('ai:OpenShift')} ${values.openshiftVersion}`}
|
|
137
125
|
</StaticTextField>
|
|
138
126
|
) : (
|
|
139
127
|
<>
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Lazy } from 'yup';
|
|
3
|
+
import {
|
|
4
|
+
ClusterDetailsValues,
|
|
5
|
+
getClusterDetailsInitialValues,
|
|
6
|
+
getClusterDetailsValidationSchema,
|
|
7
|
+
OpenshiftVersionOptionType,
|
|
8
|
+
useTranslation,
|
|
9
|
+
} from '../../../../common';
|
|
10
|
+
import {
|
|
11
|
+
AgentClusterInstallK8sResource,
|
|
12
|
+
AgentK8sResource,
|
|
13
|
+
ClusterDeploymentK8sResource,
|
|
14
|
+
InfraEnvK8sResource,
|
|
15
|
+
} from '../../../types';
|
|
16
|
+
import { getAICluster, getNetworkType } from '../../helpers';
|
|
17
|
+
|
|
18
|
+
type UseDetailsFormikArgs = {
|
|
19
|
+
usedClusterNames: string[];
|
|
20
|
+
ocpVersions: OpenshiftVersionOptionType[];
|
|
21
|
+
allOcpVersions: OpenshiftVersionOptionType[];
|
|
22
|
+
clusterDeployment?: ClusterDeploymentK8sResource;
|
|
23
|
+
agentClusterInstall?: AgentClusterInstallK8sResource;
|
|
24
|
+
agents?: AgentK8sResource[];
|
|
25
|
+
infraEnv?: InfraEnvK8sResource;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const useDetailsFormik = ({
|
|
29
|
+
clusterDeployment,
|
|
30
|
+
agentClusterInstall,
|
|
31
|
+
agents,
|
|
32
|
+
usedClusterNames,
|
|
33
|
+
infraEnv,
|
|
34
|
+
ocpVersions,
|
|
35
|
+
allOcpVersions,
|
|
36
|
+
}: UseDetailsFormikArgs): [
|
|
37
|
+
ClusterDetailsValues & { networkType: 'OpenShiftSDN' | 'OVNKubernetes' },
|
|
38
|
+
Lazy<{ baseDnsDomain: string }>,
|
|
39
|
+
] => {
|
|
40
|
+
const { t } = useTranslation();
|
|
41
|
+
const isEdit = !!clusterDeployment || !!agentClusterInstall;
|
|
42
|
+
|
|
43
|
+
const cluster = React.useMemo(
|
|
44
|
+
() =>
|
|
45
|
+
clusterDeployment && agentClusterInstall
|
|
46
|
+
? getAICluster({
|
|
47
|
+
clusterDeployment,
|
|
48
|
+
agentClusterInstall,
|
|
49
|
+
agents,
|
|
50
|
+
infraEnv,
|
|
51
|
+
})
|
|
52
|
+
: undefined,
|
|
53
|
+
[agentClusterInstall, clusterDeployment, agents, infraEnv],
|
|
54
|
+
);
|
|
55
|
+
|
|
56
|
+
const initialValues = React.useMemo(
|
|
57
|
+
() => {
|
|
58
|
+
let initValues = getClusterDetailsInitialValues({
|
|
59
|
+
managedDomains: [], // not supported
|
|
60
|
+
cluster,
|
|
61
|
+
ocpVersions,
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
let ocpVersion = ocpVersions.find(
|
|
65
|
+
(ocpVersion) => ocpVersion.value === initValues.openshiftVersion,
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
if (!ocpVersion) {
|
|
69
|
+
ocpVersion = allOcpVersions.find((version) => version.default);
|
|
70
|
+
initValues = {
|
|
71
|
+
...initValues,
|
|
72
|
+
openshiftVersion: ocpVersion?.value || '',
|
|
73
|
+
customOpenshiftSelect: ocpVersion?.value || '',
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
...initValues,
|
|
79
|
+
networkType: getNetworkType(ocpVersion),
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
[], // eslint-disable-line react-hooks/exhaustive-deps
|
|
83
|
+
);
|
|
84
|
+
|
|
85
|
+
const validationSchema = React.useMemo(
|
|
86
|
+
() =>
|
|
87
|
+
getClusterDetailsValidationSchema({
|
|
88
|
+
usedClusterNames,
|
|
89
|
+
pullSecretSet: isEdit,
|
|
90
|
+
validateUniqueName: true,
|
|
91
|
+
t,
|
|
92
|
+
}),
|
|
93
|
+
[usedClusterNames, isEdit, t],
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
return [initialValues, validationSchema];
|
|
97
|
+
};
|
|
@@ -4,11 +4,12 @@ import { Cluster } from '@openshift-assisted/types/./assisted-installer-service'
|
|
|
4
4
|
import { ValidationsInfo, ClusterWizardStepValidationsAlert } from '../../../../common';
|
|
5
5
|
import { ClusterWizardStepHostStatusDeterminationObject } from '../../../../common/types/hosts';
|
|
6
6
|
import ValidationsRunningAlert from '../../common/ValidationsRunningAlert';
|
|
7
|
-
import {
|
|
7
|
+
import { wizardStepsValidationsMap } from '../wizardTransition';
|
|
8
|
+
import { ClusterDeploymentWizardStepsType } from '../types';
|
|
8
9
|
|
|
9
10
|
type ValidationSectionProps = {
|
|
10
11
|
requireProxy?: boolean;
|
|
11
|
-
currentStepId:
|
|
12
|
+
currentStepId: ClusterDeploymentWizardStepsType;
|
|
12
13
|
validationsInfo?: ValidationsInfo;
|
|
13
14
|
clusterStatus?: Cluster['status'];
|
|
14
15
|
hosts: ClusterWizardStepHostStatusDeterminationObject[];
|
|
@@ -15,8 +15,8 @@ export const wizardStepNames = (
|
|
|
15
15
|
'installation-type': t('ai:Installation type'),
|
|
16
16
|
automation: t('ai:Automation'),
|
|
17
17
|
'cluster-details': t('ai:Cluster details'),
|
|
18
|
-
'
|
|
19
|
-
'
|
|
18
|
+
'host-selection': t('ai:Cluster hosts'),
|
|
19
|
+
'host-discovery': t('ai:Cluster hosts'),
|
|
20
20
|
networking: t('ai:Networking'),
|
|
21
21
|
'custom-manifests': t('ai:Custom manifests'),
|
|
22
22
|
review: t('ai:Review and create'),
|
package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx
CHANGED
|
@@ -88,7 +88,7 @@ const ClusterDeploymentHostDiscoveryTable: React.FC<ClusterDeploymentHostDiscove
|
|
|
88
88
|
bmhStatuses,
|
|
89
89
|
onEditHostname: onEditHost,
|
|
90
90
|
onApprove,
|
|
91
|
-
wizardStepId: '
|
|
91
|
+
wizardStepId: 'host-discovery',
|
|
92
92
|
t,
|
|
93
93
|
}),
|
|
94
94
|
roleColumn(t, hostActions.canEditRole, hostActions.onEditRole),
|
package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.tsx
CHANGED
|
@@ -61,7 +61,7 @@ export const ClusterDeploymentHostsDiscoveryStep = ({
|
|
|
61
61
|
errors.push(t('ai:Hostnames must be unique.'));
|
|
62
62
|
}
|
|
63
63
|
const agentsNotHealthy = infraEnvAgents
|
|
64
|
-
.map((agent) => getWizardStepAgentStatus(agent, '
|
|
64
|
+
.map((agent) => getWizardStepAgentStatus(agent, 'host-discovery', t).status.key)
|
|
65
65
|
.some((status) =>
|
|
66
66
|
['disconnected', 'disabled', 'error', 'insufficient', 'cancelled'].includes(status),
|
|
67
67
|
);
|
|
@@ -173,7 +173,7 @@ export const ClusterDeploymentHostsDiscoveryStep = ({
|
|
|
173
173
|
|
|
174
174
|
{!!syncError && (
|
|
175
175
|
<GridItem>
|
|
176
|
-
<ValidationSection currentStepId={'
|
|
176
|
+
<ValidationSection currentStepId={'host-selection'} hosts={[]}>
|
|
177
177
|
<Alert variant={AlertVariant.danger} title={t('ai:An error occurred')} isInline>
|
|
178
178
|
{syncError}
|
|
179
179
|
</Alert>
|
package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx
CHANGED
|
@@ -216,7 +216,7 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
|
|
|
216
216
|
React.useEffect(() => {
|
|
217
217
|
if (nextRequested && !isSubmitting) {
|
|
218
218
|
const agentStatuses = selectedAgents.map(
|
|
219
|
-
(agent) => getWizardStepAgentStatus(agent, '
|
|
219
|
+
(agent) => getWizardStepAgentStatus(agent, 'host-selection', t).status.key,
|
|
220
220
|
);
|
|
221
221
|
if (
|
|
222
222
|
agentStatuses.some((status) =>
|
|
@@ -227,7 +227,7 @@ const HostSelectionForm: React.FC<HostSelectionFormProps> = ({
|
|
|
227
227
|
} else if (
|
|
228
228
|
!!selectedAgents.length &&
|
|
229
229
|
selectedAgents.every(
|
|
230
|
-
(agent) => getWizardStepAgentStatus(agent, '
|
|
230
|
+
(agent) => getWizardStepAgentStatus(agent, 'host-selection', t).status.key === 'known',
|
|
231
231
|
)
|
|
232
232
|
) {
|
|
233
233
|
setShowClusterErrors(true);
|