@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,5 +1,5 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { useLocation } from 'react-router
|
|
2
|
+
import { useLocation } from 'react-router';
|
|
3
3
|
import { ClusterWizardContextType, ClusterWizardContext } from './ClusterWizardContext';
|
|
4
4
|
import {
|
|
5
5
|
ClusterWizardFlowStateType,
|
|
@@ -66,8 +66,8 @@ const getWizardStepIds = (
|
|
|
66
66
|
stepsCopy = removeStepFromClusterWizard(stepsCopy, 'static-ip-network-wide-configurations', 2);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
if (isSingleClusterFeatureEnabled) {
|
|
70
|
-
stepsCopy = addStepToClusterWizard(stepsCopy, '
|
|
69
|
+
if (isSingleClusterFeatureEnabled && !stepsCopy.includes('credentials-download')) {
|
|
70
|
+
stepsCopy = addStepToClusterWizard(stepsCopy, 'custom-manifests', ['credentials-download']);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
return stepsCopy;
|
|
@@ -88,6 +88,8 @@ const ClusterWizardContextProvider = ({
|
|
|
88
88
|
const [connectedWizardStepIds, setWizardStepIds] = React.useState<ClusterWizardStepsType[]>();
|
|
89
89
|
const [wizardPerPage, setWizardPerPage] = React.useState(10);
|
|
90
90
|
const [installDisconnected, setInstallDisconnected] = React.useState(false);
|
|
91
|
+
const [disconnectedCluster, setDisconnectedCluster] = React.useState<Cluster | undefined>();
|
|
92
|
+
const [disconnectedInfraEnv, setDisconnectedInfraEnv] = React.useState<InfraEnv | undefined>();
|
|
91
93
|
const location = useLocation();
|
|
92
94
|
const locationState = location.state as ClusterWizardFlowStateType | undefined;
|
|
93
95
|
const {
|
|
@@ -116,13 +118,11 @@ const ClusterWizardContextProvider = ({
|
|
|
116
118
|
locationState,
|
|
117
119
|
staticIpInfo,
|
|
118
120
|
cluster?.status,
|
|
119
|
-
cluster
|
|
120
|
-
customManifestsStepNeedsToBeFilled,
|
|
121
|
+
cluster,
|
|
121
122
|
);
|
|
122
123
|
const firstStepIds = getWizardStepIds(
|
|
123
124
|
wizardStepIds,
|
|
124
125
|
staticIpInfo?.view,
|
|
125
|
-
|
|
126
126
|
isSingleClusterFeatureEnabled,
|
|
127
127
|
);
|
|
128
128
|
|
|
@@ -150,7 +150,7 @@ const ClusterWizardContextProvider = ({
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
153
|
-
}, [uiSettings, UISettingsLoading, UISettingsError]);
|
|
153
|
+
}, [uiSettings, UISettingsLoading, UISettingsError, isSingleClusterFeatureEnabled]);
|
|
154
154
|
|
|
155
155
|
const contextValue = React.useMemo<ClusterWizardContextType | null>(() => {
|
|
156
156
|
if (!wizardStepIds || !currentStepId) {
|
|
@@ -167,7 +167,6 @@ const ClusterWizardContextProvider = ({
|
|
|
167
167
|
const newStepIds = getWizardStepIds(
|
|
168
168
|
wizardStepIds,
|
|
169
169
|
staticIpInfo.view,
|
|
170
|
-
|
|
171
170
|
isSingleClusterFeatureEnabled,
|
|
172
171
|
);
|
|
173
172
|
setWizardStepIds(newStepIds);
|
|
@@ -207,12 +206,7 @@ const ClusterWizardContextProvider = ({
|
|
|
207
206
|
onUpdateHostNetworkConfigType(type: HostsNetworkConfigurationType): void {
|
|
208
207
|
if (type === HostsNetworkConfigurationType.STATIC) {
|
|
209
208
|
setWizardStepIds(
|
|
210
|
-
getWizardStepIds(
|
|
211
|
-
wizardStepIds,
|
|
212
|
-
StaticIpView.FORM,
|
|
213
|
-
|
|
214
|
-
isSingleClusterFeatureEnabled,
|
|
215
|
-
),
|
|
209
|
+
getWizardStepIds(wizardStepIds, StaticIpView.FORM, isSingleClusterFeatureEnabled),
|
|
216
210
|
);
|
|
217
211
|
} else {
|
|
218
212
|
setWizardStepIds(
|
|
@@ -236,6 +230,10 @@ const ClusterWizardContextProvider = ({
|
|
|
236
230
|
connectedWizardStepIds?.length && onSetCurrentStepId(connectedWizardStepIds[0]);
|
|
237
231
|
}
|
|
238
232
|
},
|
|
233
|
+
disconnectedCluster,
|
|
234
|
+
setDisconnectedCluster,
|
|
235
|
+
disconnectedInfraEnv,
|
|
236
|
+
setDisconnectedInfraEnv,
|
|
239
237
|
};
|
|
240
238
|
}, [
|
|
241
239
|
wizardStepIds,
|
|
@@ -248,6 +246,9 @@ const ClusterWizardContextProvider = ({
|
|
|
248
246
|
updateUISettings,
|
|
249
247
|
installDisconnected,
|
|
250
248
|
connectedWizardStepIds,
|
|
249
|
+
disconnectedCluster,
|
|
250
|
+
disconnectedInfraEnv,
|
|
251
|
+
setDisconnectedInfraEnv,
|
|
251
252
|
]);
|
|
252
253
|
|
|
253
254
|
if (!contextValue) {
|
|
@@ -4,25 +4,32 @@ import ClusterDetails from './ClusterDetails';
|
|
|
4
4
|
import { useClusterWizardContext } from './ClusterWizardContext';
|
|
5
5
|
import ReviewStep from './disconnected/ReviewStep';
|
|
6
6
|
import BasicStep from './disconnected/BasicStep';
|
|
7
|
+
import OptionalConfigurationsStep from './disconnected/OptionalConfigurationsStep';
|
|
7
8
|
import { ClusterWizardStepsType } from './wizardTransition';
|
|
9
|
+
import { useInfraEnv } from '../../hooks';
|
|
10
|
+
import { CpuArchitecture } from '../../../common/types';
|
|
11
|
+
import { InfraEnv } from '@openshift-assisted/types/assisted-installer-service';
|
|
8
12
|
|
|
9
|
-
const getCurrentStep = (currentStepId: ClusterWizardStepsType) => {
|
|
13
|
+
const getCurrentStep = (currentStepId: ClusterWizardStepsType, infraEnv?: InfraEnv) => {
|
|
10
14
|
switch (currentStepId) {
|
|
11
15
|
case 'disconnected-review':
|
|
12
16
|
return <ReviewStep />;
|
|
17
|
+
case 'disconnected-optional-configurations':
|
|
18
|
+
return <OptionalConfigurationsStep />;
|
|
13
19
|
case 'disconnected-basic':
|
|
14
20
|
return <BasicStep />;
|
|
15
21
|
default:
|
|
16
|
-
return <ClusterDetails />;
|
|
22
|
+
return <ClusterDetails infraEnv={infraEnv} />;
|
|
17
23
|
}
|
|
18
24
|
};
|
|
19
25
|
|
|
20
26
|
const NewClusterWizard: React.FC = () => {
|
|
27
|
+
const { infraEnv } = useInfraEnv('', CpuArchitecture.USE_DAY1_ARCHITECTURE);
|
|
21
28
|
const { currentStepId } = useClusterWizardContext();
|
|
22
29
|
|
|
23
30
|
return (
|
|
24
31
|
<div className={classNames('pf-v6-c-wizard', 'cluster-wizard')}>
|
|
25
|
-
{getCurrentStep(currentStepId)}
|
|
32
|
+
{getCurrentStep(currentStepId, infraEnv)}
|
|
26
33
|
</div>
|
|
27
34
|
);
|
|
28
35
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { useDispatch } from 'react-redux';
|
|
3
|
-
import { useLocation, useNavigate } from 'react-router
|
|
3
|
+
import { useLocation, useNavigate } from 'react-router';
|
|
4
4
|
import { Formik, FormikConfig, useFormikContext } from 'formik';
|
|
5
5
|
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
6
6
|
import {
|
|
@@ -29,9 +29,31 @@ const getOperatorsInitialValues = (
|
|
|
29
29
|
uiSettings: UISettingsValues | undefined,
|
|
30
30
|
cluster: Cluster,
|
|
31
31
|
): OperatorsValues => {
|
|
32
|
+
const olmOperators = selectOlmOperators(cluster);
|
|
33
|
+
const selectedOperators = olmOperators
|
|
34
|
+
.filter((operator) => operator.name && !operator.sourceBundles?.length)
|
|
35
|
+
.map(({ name }) => name as string);
|
|
36
|
+
|
|
37
|
+
const selectedBundlesFromOperatorBundles = (cluster.operatorBundles || []).map(
|
|
38
|
+
({ id, optionalOperators }) => ({
|
|
39
|
+
id,
|
|
40
|
+
optionalOperators: optionalOperators || [],
|
|
41
|
+
}),
|
|
42
|
+
);
|
|
43
|
+
|
|
44
|
+
// Backward compatibility: old clusters can miss `operatorBundles`.
|
|
45
|
+
const selectedBundlesFromUiSettings = (uiSettings?.bundlesSelected || []).map((id) => ({
|
|
46
|
+
id,
|
|
47
|
+
optionalOperators: [],
|
|
48
|
+
}));
|
|
49
|
+
|
|
50
|
+
const selectedBundles = !!cluster.operatorBundles?.length
|
|
51
|
+
? selectedBundlesFromOperatorBundles
|
|
52
|
+
: selectedBundlesFromUiSettings;
|
|
53
|
+
|
|
32
54
|
return {
|
|
33
|
-
selectedBundles
|
|
34
|
-
selectedOperators
|
|
55
|
+
selectedBundles,
|
|
56
|
+
selectedOperators,
|
|
35
57
|
};
|
|
36
58
|
};
|
|
37
59
|
|
|
@@ -52,7 +74,7 @@ const OperatorsForm = ({ cluster }: { cluster: Cluster }) => {
|
|
|
52
74
|
|
|
53
75
|
const handleNext = () => {
|
|
54
76
|
if (window.location.pathname.indexOf('assisted-installer') > -1) {
|
|
55
|
-
navigate(pathname, { state: undefined, replace: true });
|
|
77
|
+
void navigate(pathname, { state: undefined, replace: true });
|
|
56
78
|
}
|
|
57
79
|
clusterWizardContext.moveNext();
|
|
58
80
|
};
|
|
@@ -81,22 +103,35 @@ const Operators = ({ cluster }: { cluster: Cluster }) => {
|
|
|
81
103
|
const dispatch = useDispatch();
|
|
82
104
|
const { updateUISettings, uiSettings } = useClusterWizardContext();
|
|
83
105
|
const { addAlert, clearAlerts } = useAlerts();
|
|
106
|
+
const initialValues = React.useMemo(
|
|
107
|
+
() => getOperatorsInitialValues(uiSettings, cluster),
|
|
108
|
+
[cluster, uiSettings],
|
|
109
|
+
);
|
|
84
110
|
|
|
85
111
|
const handleSubmit: FormikConfig<OperatorsValues>['onSubmit'] = async (values) => {
|
|
86
112
|
clearAlerts();
|
|
87
113
|
|
|
88
|
-
const enabledOperators = values.selectedOperators.map((so) => ({
|
|
89
|
-
name: so,
|
|
90
|
-
}));
|
|
91
|
-
|
|
92
114
|
try {
|
|
93
115
|
const { data: updatedCluster } = await ClustersService.update(cluster.id, cluster.tags, {
|
|
94
|
-
|
|
116
|
+
operatorBundles: values.selectedBundles,
|
|
117
|
+
olmOperators: values.selectedOperators.map((name) => ({ name })),
|
|
95
118
|
});
|
|
96
119
|
|
|
97
|
-
await updateUISettings({ bundlesSelected: values.selectedBundles });
|
|
98
|
-
|
|
99
120
|
dispatch(updateCluster(updatedCluster));
|
|
121
|
+
|
|
122
|
+
// Backward compatibility: old clusters used uiSettings.bundlesSelected, keep operatorBundles as source of truth.
|
|
123
|
+
if (uiSettings?.bundlesSelected?.length) {
|
|
124
|
+
try {
|
|
125
|
+
await updateUISettings({ bundlesSelected: undefined });
|
|
126
|
+
} catch (uiSettingsError) {
|
|
127
|
+
handleApiError(uiSettingsError, () =>
|
|
128
|
+
addAlert({
|
|
129
|
+
title: 'Failed to update UI settings',
|
|
130
|
+
message: getApiErrorMessage(uiSettingsError),
|
|
131
|
+
}),
|
|
132
|
+
);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
100
135
|
} catch (e) {
|
|
101
136
|
handleApiError(e, () =>
|
|
102
137
|
addAlert({ title: 'Failed to update the cluster', message: getApiErrorMessage(e) }),
|
|
@@ -108,7 +143,7 @@ const Operators = ({ cluster }: { cluster: Cluster }) => {
|
|
|
108
143
|
};
|
|
109
144
|
|
|
110
145
|
return (
|
|
111
|
-
<Formik initialValues={
|
|
146
|
+
<Formik initialValues={initialValues} onSubmit={handleSubmit}>
|
|
112
147
|
<OperatorsForm cluster={cluster} />
|
|
113
148
|
</Formik>
|
|
114
149
|
);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
|
+
Alert,
|
|
3
4
|
Card,
|
|
4
5
|
CardBody,
|
|
5
6
|
CardHeader,
|
|
@@ -13,21 +14,24 @@ import {
|
|
|
13
14
|
Title,
|
|
14
15
|
Tooltip,
|
|
15
16
|
} from '@patternfly/react-core';
|
|
17
|
+
import { Bundle, Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
16
18
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
ExternalLink,
|
|
20
|
+
OperatorsValues,
|
|
21
|
+
PopoverIcon,
|
|
22
|
+
selectClusterValidationsInfo,
|
|
23
|
+
singleClusterBundles,
|
|
24
|
+
} from '../../../common';
|
|
21
25
|
import { useFormikContext } from 'formik';
|
|
22
26
|
import { useNewFeatureSupportLevel } from '../../../common/components/newFeatureSupportLevels';
|
|
23
27
|
import { useFeature } from '../../hooks/use-feature';
|
|
24
|
-
import { getNewBundleOperators } from '../clusterConfiguration/operators/utils';
|
|
25
28
|
import { bundleSpecs } from '../clusterConfiguration/operators/bundleSpecs';
|
|
26
29
|
import {
|
|
27
30
|
highlightMatch,
|
|
28
31
|
useOperatorSpecs,
|
|
29
32
|
} from '../../../common/components/operators/operatorSpecs';
|
|
30
33
|
import { useClusterWizardContext } from './ClusterWizardContext';
|
|
34
|
+
import OptionalOperatorsDropdown from './OptionalOperatorsDropdown';
|
|
31
35
|
import './OperatorsBundle.css';
|
|
32
36
|
|
|
33
37
|
const BundleLabel = ({ bundle, searchTerm }: { bundle: Bundle; searchTerm?: string }) => {
|
|
@@ -73,13 +77,13 @@ const BundleLabel = ({ bundle, searchTerm }: { bundle: Bundle; searchTerm?: stri
|
|
|
73
77
|
const BundleCard = ({
|
|
74
78
|
bundle,
|
|
75
79
|
bundles,
|
|
76
|
-
preflightRequirements,
|
|
77
80
|
searchTerm,
|
|
81
|
+
informationalMessage,
|
|
78
82
|
}: {
|
|
79
83
|
bundle: Bundle;
|
|
80
84
|
bundles: Bundle[];
|
|
81
|
-
preflightRequirements: PreflightHardwareRequirements | undefined;
|
|
82
85
|
searchTerm?: string;
|
|
86
|
+
informationalMessage?: string;
|
|
83
87
|
}) => {
|
|
84
88
|
const { values, setFieldValue } = useFormikContext<OperatorsValues>();
|
|
85
89
|
const { isFeatureSupported } = useNewFeatureSupportLevel();
|
|
@@ -97,7 +101,7 @@ const BundleCard = ({
|
|
|
97
101
|
const bundleSpec = bundleSpecs[bundle.id || ''];
|
|
98
102
|
|
|
99
103
|
const incompatibleBundle = bundleSpec?.incompatibleBundles?.find((b) =>
|
|
100
|
-
values.selectedBundles.
|
|
104
|
+
values.selectedBundles.some((bundleSelection) => bundleSelection.id === b),
|
|
101
105
|
);
|
|
102
106
|
const isAssistedMigration = uiSettings?.isAssistedMigration;
|
|
103
107
|
const disabledReason = hasUnsupportedOperators
|
|
@@ -112,23 +116,30 @@ const BundleCard = ({
|
|
|
112
116
|
? 'This bundle is not available for the current configuration, you might be able to use the standalone operators instead.'
|
|
113
117
|
: undefined;
|
|
114
118
|
|
|
119
|
+
const addBundle = (
|
|
120
|
+
selectedBundles: OperatorsValues['selectedBundles'],
|
|
121
|
+
bundle: Bundle,
|
|
122
|
+
): OperatorsValues['selectedBundles'] => [
|
|
123
|
+
...selectedBundles,
|
|
124
|
+
{ id: bundle.id || '', optionalOperators: bundle.optionalOperators || [] },
|
|
125
|
+
];
|
|
126
|
+
|
|
127
|
+
const removeBundle = (
|
|
128
|
+
selectedBundles: OperatorsValues['selectedBundles'],
|
|
129
|
+
bundleId: Bundle['id'],
|
|
130
|
+
): OperatorsValues['selectedBundles'] =>
|
|
131
|
+
selectedBundles.filter((selectedBundle) => selectedBundle.id !== bundleId);
|
|
132
|
+
|
|
115
133
|
const onSelect = (checked: boolean) => {
|
|
116
|
-
const
|
|
117
|
-
?
|
|
118
|
-
: values.selectedBundles
|
|
119
|
-
setFieldValue('selectedBundles',
|
|
120
|
-
const newOperators = getNewBundleOperators(
|
|
121
|
-
values.selectedOperators,
|
|
122
|
-
newBundles,
|
|
123
|
-
bundles,
|
|
124
|
-
bundle,
|
|
125
|
-
preflightRequirements,
|
|
126
|
-
checked,
|
|
127
|
-
);
|
|
128
|
-
setFieldValue('selectedOperators', newOperators);
|
|
134
|
+
const nextBundles = checked
|
|
135
|
+
? addBundle(values.selectedBundles, bundle)
|
|
136
|
+
: removeBundle(values.selectedBundles, bundle.id);
|
|
137
|
+
setFieldValue('selectedBundles', nextBundles);
|
|
129
138
|
};
|
|
130
139
|
|
|
131
|
-
const isSelected = values.selectedBundles.
|
|
140
|
+
const isSelected = values.selectedBundles.some(
|
|
141
|
+
(selectedBundle) => selectedBundle.id === bundle.id,
|
|
142
|
+
);
|
|
132
143
|
const checkboxId = `bundle-${bundle.id || ''}`;
|
|
133
144
|
return (
|
|
134
145
|
<Tooltip content={disabledReason} hidden={!disabledReason}>
|
|
@@ -145,7 +156,7 @@ const BundleCard = ({
|
|
|
145
156
|
selectableActionId: checkboxId,
|
|
146
157
|
selectableActionAriaLabelledby: checkboxId,
|
|
147
158
|
name: checkboxId,
|
|
148
|
-
onChange: (_, checked) => onSelect(checked),
|
|
159
|
+
onChange: (_, checked) => onSelect(!!checked),
|
|
149
160
|
isChecked: isSelected,
|
|
150
161
|
}}
|
|
151
162
|
>
|
|
@@ -158,6 +169,25 @@ const BundleCard = ({
|
|
|
158
169
|
<StackItem isFilled>
|
|
159
170
|
<div>{highlightMatch(bundle.description || '', searchTerm)}</div>
|
|
160
171
|
</StackItem>
|
|
172
|
+
{!!bundle.optionalOperators?.length && (
|
|
173
|
+
<StackItem onClick={(e) => e.stopPropagation()}>
|
|
174
|
+
<OptionalOperatorsDropdown
|
|
175
|
+
bundleId={bundle.id || ''}
|
|
176
|
+
optionalOperatorIds={bundle.optionalOperators}
|
|
177
|
+
selectedBundles={values.selectedBundles}
|
|
178
|
+
setSelectedBundles={(selectedBundles) =>
|
|
179
|
+
setFieldValue('selectedBundles', selectedBundles)
|
|
180
|
+
}
|
|
181
|
+
isDisabled={!isSelected || !!disabledReason}
|
|
182
|
+
getOperatorLabel={(operatorId) => opSpecs[operatorId]?.title || operatorId}
|
|
183
|
+
/>
|
|
184
|
+
</StackItem>
|
|
185
|
+
)}
|
|
186
|
+
{informationalMessage && (
|
|
187
|
+
<StackItem>
|
|
188
|
+
<Alert isInline variant="info" title={informationalMessage} />
|
|
189
|
+
</StackItem>
|
|
190
|
+
)}
|
|
161
191
|
</Stack>
|
|
162
192
|
</CardBody>
|
|
163
193
|
</Card>
|
|
@@ -168,15 +198,29 @@ const BundleCard = ({
|
|
|
168
198
|
const OperatorsBundle = ({
|
|
169
199
|
bundles,
|
|
170
200
|
allBundles,
|
|
171
|
-
preflightRequirements,
|
|
172
201
|
searchTerm,
|
|
202
|
+
cluster,
|
|
173
203
|
}: {
|
|
174
204
|
bundles: Bundle[];
|
|
175
205
|
allBundles: Bundle[];
|
|
176
|
-
preflightRequirements: PreflightHardwareRequirements | undefined;
|
|
177
206
|
searchTerm?: string;
|
|
207
|
+
cluster: Cluster;
|
|
178
208
|
}) => {
|
|
179
209
|
const isSingleClusterFeatureEnabled = useFeature('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
|
|
210
|
+
const openshiftAiGpuInfoMessage = React.useMemo(() => {
|
|
211
|
+
const validationsInfo = selectClusterValidationsInfo(cluster);
|
|
212
|
+
if (!validationsInfo) {
|
|
213
|
+
return undefined;
|
|
214
|
+
}
|
|
215
|
+
return Object.values(validationsInfo)
|
|
216
|
+
.flat()
|
|
217
|
+
.find(
|
|
218
|
+
(validation) =>
|
|
219
|
+
validation?.id === 'openshift-ai-gpu-requirements-satisfied' &&
|
|
220
|
+
validation?.status === 'success' &&
|
|
221
|
+
!!validation.message,
|
|
222
|
+
)?.message;
|
|
223
|
+
}, [cluster]);
|
|
180
224
|
|
|
181
225
|
return (
|
|
182
226
|
<Stack hasGutter>
|
|
@@ -195,8 +239,10 @@ const OperatorsBundle = ({
|
|
|
195
239
|
<BundleCard
|
|
196
240
|
bundle={bundles.find((b) => b.id === bundle.id) || bundle}
|
|
197
241
|
bundles={bundles}
|
|
198
|
-
preflightRequirements={preflightRequirements}
|
|
199
242
|
searchTerm={searchTerm}
|
|
243
|
+
informationalMessage={
|
|
244
|
+
bundle.id === 'openshift-ai' ? openshiftAiGpuInfoMessage : undefined
|
|
245
|
+
}
|
|
200
246
|
/>
|
|
201
247
|
</GalleryItem>
|
|
202
248
|
))}
|
|
@@ -10,7 +10,7 @@ function calculateSelectedOperators(
|
|
|
10
10
|
): string[] {
|
|
11
11
|
// Calculate all selected operators (direct selections + bundle selections)
|
|
12
12
|
const bundleOperators = values.selectedBundles.flatMap(
|
|
13
|
-
(
|
|
13
|
+
(bundle) => bundles.find((b) => b.id === bundle.id)?.operators || [],
|
|
14
14
|
);
|
|
15
15
|
|
|
16
16
|
const allSelectedOperators = values.selectedOperators
|
|
@@ -62,7 +62,7 @@ describe('OperatorsSelect counting logic', () => {
|
|
|
62
62
|
it('should count bundle operators when a bundle is selected', () => {
|
|
63
63
|
const values: OperatorsValues = {
|
|
64
64
|
selectedOperators: ['lvm'], // 1 manually selected
|
|
65
|
-
selectedBundles: ['virtualization'], // bundle with 3 operators: cnv, nmstate, mtv
|
|
65
|
+
selectedBundles: [{ id: 'virtualization', optionalOperators: [] }], // bundle with 3 operators: cnv, nmstate, mtv
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
const result = calculateSelectedOperators(values, mockBundles, mockOpSpecs);
|
|
@@ -77,7 +77,7 @@ describe('OperatorsSelect counting logic', () => {
|
|
|
77
77
|
it('should not double-count operators that are both manually selected and in a bundle', () => {
|
|
78
78
|
const values: OperatorsValues = {
|
|
79
79
|
selectedOperators: ['lvm', 'cnv'], // cnv is also in the bundle
|
|
80
|
-
selectedBundles: ['virtualization'], // bundle with: cnv, nmstate, mtv
|
|
80
|
+
selectedBundles: [{ id: 'virtualization', optionalOperators: [] }], // bundle with: cnv, nmstate, mtv
|
|
81
81
|
};
|
|
82
82
|
|
|
83
83
|
const result = calculateSelectedOperators(values, mockBundles, mockOpSpecs);
|
|
@@ -107,7 +107,10 @@ describe('OperatorsSelect counting logic', () => {
|
|
|
107
107
|
it('should handle multiple bundles correctly', () => {
|
|
108
108
|
const values: OperatorsValues = {
|
|
109
109
|
selectedOperators: ['lvm'],
|
|
110
|
-
selectedBundles: [
|
|
110
|
+
selectedBundles: [
|
|
111
|
+
{ id: 'virtualization', optionalOperators: [] },
|
|
112
|
+
{ id: 'openshift-ai', optionalOperators: [] },
|
|
113
|
+
], // Two bundles
|
|
111
114
|
};
|
|
112
115
|
|
|
113
116
|
const result = calculateSelectedOperators(values, mockBundles, mockOpSpecs);
|
|
@@ -125,7 +128,10 @@ describe('OperatorsSelect counting logic', () => {
|
|
|
125
128
|
it('should handle overlapping operators in multiple bundles', () => {
|
|
126
129
|
const values: OperatorsValues = {
|
|
127
130
|
selectedOperators: [],
|
|
128
|
-
selectedBundles: [
|
|
131
|
+
selectedBundles: [
|
|
132
|
+
{ id: 'virtualization', optionalOperators: [] },
|
|
133
|
+
{ id: 'openshift-ai', optionalOperators: [] },
|
|
134
|
+
], // Both bundles have 'odf' (but only virtualization has it in our mock)
|
|
129
135
|
};
|
|
130
136
|
|
|
131
137
|
// Let's modify the virtualization bundle to include odf to test overlap
|
|
@@ -19,6 +19,7 @@ import { OperatorsService } from '../../services';
|
|
|
19
19
|
import { useFeature } from '../../hooks/use-feature';
|
|
20
20
|
import OperatorCheckbox from '../clusterConfiguration/operators/OperatorCheckbox';
|
|
21
21
|
import { useOperatorSpecs } from '../../../common/components/operators/operatorSpecs';
|
|
22
|
+
import { getOperatorDependencies } from '../clusterConfiguration/operators/utils';
|
|
22
23
|
|
|
23
24
|
const OperatorsSelect = ({
|
|
24
25
|
cluster,
|
|
@@ -36,7 +37,6 @@ const OperatorsSelect = ({
|
|
|
36
37
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
37
38
|
const [supportedOperators, setSupportedOperators] = useStateSafely<string[]>([]);
|
|
38
39
|
const isSingleClusterFeatureEnabled = useFeature('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
|
|
39
|
-
const { values } = useFormikContext<OperatorsValues>();
|
|
40
40
|
React.useEffect(() => {
|
|
41
41
|
const fetchSupportedOperators = async () => {
|
|
42
42
|
try {
|
|
@@ -54,6 +54,7 @@ const OperatorsSelect = ({
|
|
|
54
54
|
void fetchSupportedOperators();
|
|
55
55
|
}, [addAlert, setSupportedOperators, setIsLoading]);
|
|
56
56
|
|
|
57
|
+
const { values } = useFormikContext<OperatorsValues>();
|
|
57
58
|
const { byCategory, byKey: opSpecs } = useOperatorSpecs();
|
|
58
59
|
|
|
59
60
|
const operators = React.useMemo(() => {
|
|
@@ -65,10 +66,24 @@ const OperatorsSelect = ({
|
|
|
65
66
|
});
|
|
66
67
|
}, [isSingleClusterFeatureEnabled, supportedOperators]);
|
|
67
68
|
|
|
68
|
-
const
|
|
69
|
-
|
|
69
|
+
const bundleOperators = new Set<string>();
|
|
70
|
+
values.selectedBundles.forEach((b) => {
|
|
71
|
+
b.optionalOperators?.forEach((op) => bundleOperators.add(op));
|
|
72
|
+
bundles.find(({ id }) => id === b.id)?.operators?.forEach((op) => bundleOperators.add(op));
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
const dependencies = new Set<string>();
|
|
76
|
+
[...values.selectedOperators, ...bundleOperators].forEach((op) =>
|
|
77
|
+
getOperatorDependencies(op, preflightRequirements, dependencies),
|
|
70
78
|
);
|
|
71
79
|
|
|
80
|
+
const checkedOperatorIds = new Set([
|
|
81
|
+
...values.selectedOperators,
|
|
82
|
+
...bundleOperators,
|
|
83
|
+
...dependencies,
|
|
84
|
+
]);
|
|
85
|
+
const operatorsCount = operators.filter((op) => checkedOperatorIds.has(op)).length;
|
|
86
|
+
|
|
72
87
|
if (isLoading) {
|
|
73
88
|
return <LoadingState />;
|
|
74
89
|
}
|
|
@@ -76,7 +91,7 @@ const OperatorsSelect = ({
|
|
|
76
91
|
return (
|
|
77
92
|
<>
|
|
78
93
|
<ExpandableSection
|
|
79
|
-
toggleText={`Single
|
|
94
|
+
toggleText={`Single operators (${operatorsCount} selected)`}
|
|
80
95
|
onToggle={() => setIsExpanded(!isExpanded)}
|
|
81
96
|
isExpanded={isExpanded}
|
|
82
97
|
data-testid="single-operators-section"
|
|
@@ -113,6 +128,8 @@ const OperatorsSelect = ({
|
|
|
113
128
|
<OperatorCheckbox
|
|
114
129
|
bundles={bundles}
|
|
115
130
|
operatorId={spec.operatorKey}
|
|
131
|
+
checkedOperatorIds={checkedOperatorIds}
|
|
132
|
+
isChecked={checkedOperatorIds.has(spec.operatorKey)}
|
|
116
133
|
cluster={cluster}
|
|
117
134
|
openshiftVersion={cluster.openshiftVersion}
|
|
118
135
|
preflightRequirements={preflightRequirements}
|
|
@@ -92,9 +92,9 @@ export const OperatorsStep = ({ cluster }: ClusterOperatorProps) => {
|
|
|
92
92
|
<StackItem>
|
|
93
93
|
<OperatorsBundle
|
|
94
94
|
bundles={filteredBundles}
|
|
95
|
-
preflightRequirements={preflightRequirements}
|
|
96
95
|
searchTerm={searchTerm}
|
|
97
96
|
allBundles={allBundles}
|
|
97
|
+
cluster={cluster}
|
|
98
98
|
/>
|
|
99
99
|
</StackItem>
|
|
100
100
|
<StackItem>
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Badge,
|
|
4
|
+
MenuToggle,
|
|
5
|
+
MenuToggleElement,
|
|
6
|
+
Select,
|
|
7
|
+
SelectList,
|
|
8
|
+
SelectOption,
|
|
9
|
+
} from '@patternfly/react-core';
|
|
10
|
+
import { OperatorsValues } from '../../../common';
|
|
11
|
+
|
|
12
|
+
type OptionalOperatorsDropdownProps = {
|
|
13
|
+
bundleId: string;
|
|
14
|
+
optionalOperatorIds: string[];
|
|
15
|
+
selectedBundles: OperatorsValues['selectedBundles'];
|
|
16
|
+
setSelectedBundles: (selectedBundles: OperatorsValues['selectedBundles']) => void;
|
|
17
|
+
isDisabled: boolean;
|
|
18
|
+
getOperatorLabel: (operatorId: string) => string;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
const OptionalOperatorsDropdown = ({
|
|
22
|
+
bundleId,
|
|
23
|
+
optionalOperatorIds,
|
|
24
|
+
selectedBundles,
|
|
25
|
+
setSelectedBundles,
|
|
26
|
+
isDisabled,
|
|
27
|
+
getOperatorLabel,
|
|
28
|
+
}: OptionalOperatorsDropdownProps) => {
|
|
29
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
30
|
+
const toggleLabel = bundleId === 'openshift-ai' ? 'GPU operators' : 'Optional operators';
|
|
31
|
+
const selectedBundleEntry = selectedBundles.find(
|
|
32
|
+
(bundleSelection) => bundleSelection.id === bundleId,
|
|
33
|
+
);
|
|
34
|
+
const selectedOptionalOperators = selectedBundleEntry?.optionalOperators || [];
|
|
35
|
+
|
|
36
|
+
const updateBundleOptionalOperators = (operatorId: string) => {
|
|
37
|
+
if (selectedBundleEntry) {
|
|
38
|
+
const isCurrentlySelected = selectedOptionalOperators.includes(operatorId);
|
|
39
|
+
const nextOptionalOperators = isCurrentlySelected
|
|
40
|
+
? selectedOptionalOperators.filter((optionalOperator) => optionalOperator !== operatorId)
|
|
41
|
+
: [...selectedOptionalOperators, operatorId];
|
|
42
|
+
|
|
43
|
+
const updatedBundles = selectedBundles.map((bundleSelection) =>
|
|
44
|
+
bundleSelection.id === bundleId
|
|
45
|
+
? {
|
|
46
|
+
...bundleSelection,
|
|
47
|
+
optionalOperators: nextOptionalOperators,
|
|
48
|
+
}
|
|
49
|
+
: bundleSelection,
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
setSelectedBundles(updatedBundles);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const onSelect = (
|
|
57
|
+
_event: React.MouseEvent | React.ChangeEvent | undefined,
|
|
58
|
+
value?: string | number,
|
|
59
|
+
) => {
|
|
60
|
+
const operatorId = value as string;
|
|
61
|
+
updateBundleOptionalOperators(operatorId);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
return (
|
|
65
|
+
<Select
|
|
66
|
+
role="menu"
|
|
67
|
+
isOpen={isOpen}
|
|
68
|
+
onSelect={onSelect}
|
|
69
|
+
selected={selectedOptionalOperators}
|
|
70
|
+
onOpenChange={(nextIsOpen) => setIsOpen(nextIsOpen)}
|
|
71
|
+
toggle={(toggleRef: React.Ref<MenuToggleElement>) => (
|
|
72
|
+
<MenuToggle
|
|
73
|
+
ref={toggleRef}
|
|
74
|
+
onClick={() => setIsOpen((prevIsOpen) => !prevIsOpen)}
|
|
75
|
+
isExpanded={isOpen}
|
|
76
|
+
isDisabled={isDisabled}
|
|
77
|
+
style={{ minWidth: '190px' }}
|
|
78
|
+
>
|
|
79
|
+
{toggleLabel}
|
|
80
|
+
{selectedOptionalOperators.length > 0 && (
|
|
81
|
+
<>
|
|
82
|
+
{' '}
|
|
83
|
+
<Badge isRead>{selectedOptionalOperators.length}</Badge>
|
|
84
|
+
</>
|
|
85
|
+
)}
|
|
86
|
+
</MenuToggle>
|
|
87
|
+
)}
|
|
88
|
+
>
|
|
89
|
+
<SelectList>
|
|
90
|
+
{optionalOperatorIds.map((operatorId) => (
|
|
91
|
+
<SelectOption
|
|
92
|
+
id={`optional-operator-${bundleId}-${operatorId}`}
|
|
93
|
+
key={operatorId}
|
|
94
|
+
value={operatorId}
|
|
95
|
+
hasCheckbox
|
|
96
|
+
isSelected={selectedOptionalOperators.includes(operatorId)}
|
|
97
|
+
>
|
|
98
|
+
{getOperatorLabel(operatorId)}
|
|
99
|
+
</SelectOption>
|
|
100
|
+
))}
|
|
101
|
+
</SelectList>
|
|
102
|
+
</Select>
|
|
103
|
+
);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
export default OptionalOperatorsDropdown;
|
|
@@ -14,6 +14,7 @@ export const wizardStepNames: { [key in ClusterWizardStepsType]: string } = {
|
|
|
14
14
|
'credentials-download': 'Download credentials',
|
|
15
15
|
'disconnected-review': 'Review and download ISO',
|
|
16
16
|
'disconnected-basic': 'Basic information',
|
|
17
|
+
'disconnected-optional-configurations': 'Optional configurations',
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export const defaultWizardSteps: ClusterWizardStepsType[] = [
|