@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterDetailsForm.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,6CAA0C;AAC1C
|
|
1
|
+
{"version":3,"file":"ClusterDetailsForm.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,6CAA0C;AAC1C,+CAA2C;AAC3C,uDAA8D;AAC9D,sFAAmD;AACnD,mCAA+C;AAC/C,4CASyB;AACzB,yDAA2D;AAC3D,wFAAwD;AACxD,6CAA8C;AAC9C,6CAIwB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ACD,8BAAC,qBAAQ,IAAC,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC;oBACvC,8BAAC,yDAA2B,IAC1B,QAAQ,EAAE,WAAW,EACrB,iBAAiB,EAAE,UAAU,EAC7B,KAAK,EAAE,aAAO,EACd,cAAc,EAAE,cAAc,EAC9B,OAAO,EAAE,OAAO,GAChB,CACO,CACN,CACW,CACrB,CAAC;IACJ,CAAC,CACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterWizardContext.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardContext.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;
|
|
1
|
+
{"version":3,"file":"ClusterWizardContext.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardContext.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AA2Bb,QAAA,oBAAoB,GAAG,eAAK,CAAC,aAAa,CAAkC,IAAI,CAAC,CAAC;AAExF,MAAM,uBAAuB,GAAG,GAAG,EAAE;IAC1C,MAAM,OAAO,GAAG,eAAK,CAAC,UAAU,CAAC,4BAAoB,CAAC,CAAC;IACvD,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,0EAA0E,CAAC,CAAC;IAC9F,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AANW,QAAA,uBAAuB,2BAMlC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const
|
|
5
|
+
const react_router_1 = require("react-router");
|
|
6
6
|
const ClusterWizardContext_1 = require("./ClusterWizardContext");
|
|
7
7
|
const wizardTransition_1 = require("./wizardTransition");
|
|
8
8
|
const services_1 = require("../../services");
|
|
@@ -46,8 +46,8 @@ const getWizardStepIds = (wizardStepIds, staticIpView, isSingleClusterFeatureEna
|
|
|
46
46
|
else if (staticIpView === 'dhcp-selected') {
|
|
47
47
|
stepsCopy = removeStepFromClusterWizard(stepsCopy, 'static-ip-network-wide-configurations', 2);
|
|
48
48
|
}
|
|
49
|
-
if (isSingleClusterFeatureEnabled) {
|
|
50
|
-
stepsCopy = addStepToClusterWizard(stepsCopy, '
|
|
49
|
+
if (isSingleClusterFeatureEnabled && !stepsCopy.includes('credentials-download')) {
|
|
50
|
+
stepsCopy = addStepToClusterWizard(stepsCopy, 'custom-manifests', ['credentials-download']);
|
|
51
51
|
}
|
|
52
52
|
return stepsCopy;
|
|
53
53
|
};
|
|
@@ -57,7 +57,9 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
57
57
|
const [connectedWizardStepIds, setWizardStepIds] = react_1.default.useState();
|
|
58
58
|
const [wizardPerPage, setWizardPerPage] = react_1.default.useState(10);
|
|
59
59
|
const [installDisconnected, setInstallDisconnected] = react_1.default.useState(false);
|
|
60
|
-
const
|
|
60
|
+
const [disconnectedCluster, setDisconnectedCluster] = react_1.default.useState();
|
|
61
|
+
const [disconnectedInfraEnv, setDisconnectedInfraEnv] = react_1.default.useState();
|
|
62
|
+
const location = (0, react_router_1.useLocation)();
|
|
61
63
|
const locationState = location.state;
|
|
62
64
|
const { uiSettings, updateUISettings, loading: UISettingsLoading, error: UISettingsError, } = (0, hooks_1.useUISettings)(cluster === null || cluster === void 0 ? void 0 : cluster.id);
|
|
63
65
|
const { clearAlerts, addAlert, alerts } = (0, common_1.useAlerts)();
|
|
@@ -72,7 +74,7 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
72
74
|
(0, networkType_1.isThirdPartyCNI)(cluster.networkType) || (0, utils_1.isOciPlatformType)(cluster);
|
|
73
75
|
}
|
|
74
76
|
const customManifestsStepNeedsToBeFilled = customManifestsRequired && !(uiSettings === null || uiSettings === void 0 ? void 0 : uiSettings.customManifestsAdded);
|
|
75
|
-
const requiredStepId = (0, wizardTransition_1.getClusterWizardFirstStep)(locationState, staticIpInfo, cluster === null || cluster === void 0 ? void 0 : cluster.status, cluster
|
|
77
|
+
const requiredStepId = (0, wizardTransition_1.getClusterWizardFirstStep)(locationState, staticIpInfo, cluster === null || cluster === void 0 ? void 0 : cluster.status, cluster);
|
|
76
78
|
const firstStepIds = getWizardStepIds(wizardStepIds, staticIpInfo === null || staticIpInfo === void 0 ? void 0 : staticIpInfo.view, isSingleClusterFeatureEnabled);
|
|
77
79
|
// Only move step if there is still none, or the user is at a forbidden step
|
|
78
80
|
if (!currentStepId ||
|
|
@@ -91,7 +93,7 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
91
93
|
});
|
|
92
94
|
}
|
|
93
95
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
94
|
-
}, [uiSettings, UISettingsLoading, UISettingsError]);
|
|
96
|
+
}, [uiSettings, UISettingsLoading, UISettingsError, isSingleClusterFeatureEnabled]);
|
|
95
97
|
const contextValue = react_1.default.useMemo(() => {
|
|
96
98
|
if (!wizardStepIds || !currentStepId) {
|
|
97
99
|
return null;
|
|
@@ -161,6 +163,10 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
161
163
|
(connectedWizardStepIds === null || connectedWizardStepIds === void 0 ? void 0 : connectedWizardStepIds.length) && onSetCurrentStepId(connectedWizardStepIds[0]);
|
|
162
164
|
}
|
|
163
165
|
},
|
|
166
|
+
disconnectedCluster,
|
|
167
|
+
setDisconnectedCluster,
|
|
168
|
+
disconnectedInfraEnv,
|
|
169
|
+
setDisconnectedInfraEnv,
|
|
164
170
|
};
|
|
165
171
|
}, [
|
|
166
172
|
wizardStepIds,
|
|
@@ -173,6 +179,9 @@ const ClusterWizardContextProvider = ({ children, cluster, infraEnv, permissions
|
|
|
173
179
|
updateUISettings,
|
|
174
180
|
installDisconnected,
|
|
175
181
|
connectedWizardStepIds,
|
|
182
|
+
disconnectedCluster,
|
|
183
|
+
disconnectedInfraEnv,
|
|
184
|
+
setDisconnectedInfraEnv,
|
|
176
185
|
]);
|
|
177
186
|
if (!contextValue) {
|
|
178
187
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterWizardContextProvider.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx"],"names":[],"mappings":";;;AAAA,0DAAiD;AACjD
|
|
1
|
+
{"version":3,"file":"ClusterWizardContextProvider.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx"],"names":[],"mappings":";;;AAAA,0DAAiD;AACjD,+CAA2C;AAC3C,iEAAwF;AACxF,yDAO4B;AAC5B,6CAA+D;AAC/D,2CAA2E;AAC3E,+EAA+E;AAC/E,qFAAqF;AACrF,4CAAyF;AACzF,4GAA4E;AAE5E,uCAA4C;AAC5C,uDAAsD;AACtD,yDAAqD;AACrD,mEAAoE;AACpE,oCAA6C;AAE7C,MAAM,sBAAsB,GAAG,CAC7B,aAAuC,EACvC,YAAoC,EACpC,UAAoC,EACpC,EAAE;IACF,MAAM,QAAQ,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC;IACpC,MAAM,iBAAiB,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,YAAY,CAAC,CAAC;IAC9E,MAAM,KAAK,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACrE,IAAI,iBAAiB,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnD,QAAQ,CAAC,MAAM,CAAC,iBA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,aAAa;YAC5B,aAAa;YACb,gBAAgB,EAAE,kBAAkB;YACpC,aAAa;YACb,gBAAgB;YAChB,UAAU;YACV,gBAAgB;YAChB,mBAAmB;YACnB,sBAAsB,EAAE,CAAC,OAAgB,EAAE,EAAE;gBAC3C,sBAAsB,CAAC,OAAO,CAAC,CAAC;gBAChC,IAAI,OAAO,EAAE,CAAC;oBACZ,kBAAkB,CAAC,oCAAiB,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC3C,CAAC;qBAAM,CAAC;oBACN,CAAA,sBAAsB,aAAtB,sBAAsB,uBAAtB,sBAAsB,CAAE,MAAM,KAAI,kBAAkB,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC;gBAClF,CAAC;YACH,CAAC;YACD,mBAAmB;YACnB,sBAAsB;YACtB,oBAAoB;YACpB,uBAAuB;SACxB,CAAC;IACJ,CAAC,EAAE;QACD,aAAa;QACb,aAAa;QACb,QAAQ;QACR,aAAa;QACb,6BAA6B;QAC7B,WAAW;QACX,UAAU;QACV,gBAAgB;QAChB,mBAAmB;QACnB,sBAAsB;QACtB,mBAAmB;QACnB,oBAAoB;QACpB,uBAAuB;KACxB,CAAC,CAAC;IAEH,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,OAAO,CACL;QACE,8BAAC,2CAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,YAAY,IAAG,QAAQ,CAAiC,CAC7F,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,4BAA4B,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
|
-
const
|
|
5
|
+
const react_router_1 = require("react-router");
|
|
6
6
|
const react_core_1 = require("@patternfly/react-core");
|
|
7
7
|
const common_1 = require("../../../common");
|
|
8
8
|
const wizardTransition_1 = require("./wizardTransition");
|
|
@@ -30,7 +30,7 @@ const ValidationSection = ({ cluster, errorFields = [], alertTitle, alertContent
|
|
|
30
30
|
const ClusterWizardFooter = (_a) => {
|
|
31
31
|
var { cluster, additionalActions, errorFields, alertTitle, alertContent, onCancel } = _a, rest = tslib_1.__rest(_a, ["cluster", "additionalActions", "errorFields", "alertTitle", "alertContent", "onCancel"]);
|
|
32
32
|
const { alerts } = (0, common_1.useAlerts)();
|
|
33
|
-
const navigate = (0,
|
|
33
|
+
const navigate = (0, react_router_1.useNavigate)();
|
|
34
34
|
const isSingleClusterFeatureEnabled = (0, use_feature_1.useFeature)('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
|
|
35
35
|
const { currentStepId } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
36
36
|
const { resetSingleClusterDialog } = (0, ModalDialogsContext_1.useModalDialogsContext)();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterWizardFooter.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B
|
|
1
|
+
{"version":3,"file":"ClusterWizardFooter.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/ClusterWizardFooter.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,+CAA2C;AAC3C,uDAAyE;AACzE,4CAOyB;AACzB,yDAA+D;AAC/D,iEAAiE;AACjE,2JAA2H;AAC3H,2FAA+E;AAC/E,yDAAwD;AAExD,yDAAqD;AACrD,sEAAsE;AAStE,MAAM,iBAAiB,GAAG,6CAA6C,CAAC;AACxE,MAAM,iBAAiB,GAAG,CAAC,EACzB,OAAO,EACP,WAAW,GAAG,EAAE,EAChB,UAAU,EACV,YAAY,GACkB,EAAE,EAAE;IAClC,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,8CAAuB,GAAE,CAAC;IACpD,MAAM,eAAe,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H,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,mBAAmB,CAAC"}
|
|
@@ -7,19 +7,25 @@ const ClusterDetails_1 = tslib_1.__importDefault(require("./ClusterDetails"));
|
|
|
7
7
|
const ClusterWizardContext_1 = require("./ClusterWizardContext");
|
|
8
8
|
const ReviewStep_1 = tslib_1.__importDefault(require("./disconnected/ReviewStep"));
|
|
9
9
|
const BasicStep_1 = tslib_1.__importDefault(require("./disconnected/BasicStep"));
|
|
10
|
-
const
|
|
10
|
+
const OptionalConfigurationsStep_1 = tslib_1.__importDefault(require("./disconnected/OptionalConfigurationsStep"));
|
|
11
|
+
const hooks_1 = require("../../hooks");
|
|
12
|
+
const types_1 = require("../../../common/types");
|
|
13
|
+
const getCurrentStep = (currentStepId, infraEnv) => {
|
|
11
14
|
switch (currentStepId) {
|
|
12
15
|
case 'disconnected-review':
|
|
13
16
|
return react_1.default.createElement(ReviewStep_1.default, null);
|
|
17
|
+
case 'disconnected-optional-configurations':
|
|
18
|
+
return react_1.default.createElement(OptionalConfigurationsStep_1.default, null);
|
|
14
19
|
case 'disconnected-basic':
|
|
15
20
|
return react_1.default.createElement(BasicStep_1.default, null);
|
|
16
21
|
default:
|
|
17
|
-
return react_1.default.createElement(ClusterDetails_1.default,
|
|
22
|
+
return react_1.default.createElement(ClusterDetails_1.default, { infraEnv: infraEnv });
|
|
18
23
|
}
|
|
19
24
|
};
|
|
20
25
|
const NewClusterWizard = () => {
|
|
26
|
+
const { infraEnv } = (0, hooks_1.useInfraEnv)('', types_1.CpuArchitecture.USE_DAY1_ARCHITECTURE);
|
|
21
27
|
const { currentStepId } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
22
|
-
return (react_1.default.createElement("div", { className: (0, classnames_1.default)('pf-v6-c-wizard', 'cluster-wizard') }, getCurrentStep(currentStepId)));
|
|
28
|
+
return (react_1.default.createElement("div", { className: (0, classnames_1.default)('pf-v6-c-wizard', 'cluster-wizard') }, getCurrentStep(currentStepId, infraEnv)));
|
|
23
29
|
};
|
|
24
30
|
exports.default = NewClusterWizard;
|
|
25
31
|
//# sourceMappingURL=NewClusterWizard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewClusterWizard.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/NewClusterWizard.tsx"],"names":[],"mappings":";;;AAAA,oEAAoC;AACpC,0DAA0B;AAC1B,8EAA8C;AAC9C,iEAAiE;AACjE,mFAAmD;AACnD,iFAAiD;
|
|
1
|
+
{"version":3,"file":"NewClusterWizard.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/NewClusterWizard.tsx"],"names":[],"mappings":";;;AAAA,oEAAoC;AACpC,0DAA0B;AAC1B,8EAA8C;AAC9C,iEAAiE;AACjE,mFAAmD;AACnD,iFAAiD;AACjD,mHAAmF;AAEnF,uCAA0C;AAC1C,iDAAwD;AAGxD,MAAM,cAAc,GAAG,CAAC,aAAqC,EAAE,QAAmB,EAAE,EAAE;IACpF,QAAQ,aAAa,EAAE,CAAC;QACtB,KAAK,qBAAqB;YACxB,OAAO,8BAAC,oBAAU,OAAG,CAAC;QACxB,KAAK,sCAAsC;YACzC,OAAO,8BAAC,oCAA0B,OAAG,CAAC;QACxC,KAAK,oBAAoB;YACvB,OAAO,8BAAC,mBAAS,OAAG,CAAC;QACvB;YACE,OAAO,8BAAC,wBAAc,IAAC,QAAQ,EAAE,QAAQ,GAAI,CAAC;IAClD,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAa,GAAG,EAAE;IACtC,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,mBAAW,EAAC,EAAE,EAAE,uBAAe,CAAC,qBAAqB,CAAC,CAAC;IAC5E,MAAM,EAAE,aAAa,EAAE,GAAG,IAAA,8CAAuB,GAAE,CAAC;IAEpD,OAAO,CACL,uCAAK,SAAS,EAAE,IAAA,oBAAU,EAAC,gBAAgB,EAAE,gBAAgB,CAAC,IAC3D,cAAc,CAAC,aAAa,EAAE,QAAQ,CAAC,CACpC,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const react_redux_1 = require("react-redux");
|
|
6
|
-
const
|
|
6
|
+
const react_router_1 = require("react-router");
|
|
7
7
|
const formik_1 = require("formik");
|
|
8
8
|
const common_1 = require("../../../common");
|
|
9
9
|
const ClusterWizardContext_1 = require("./ClusterWizardContext");
|
|
@@ -18,9 +18,26 @@ const wizardTransition_1 = require("./wizardTransition");
|
|
|
18
18
|
// but making it shorter will allow us to disable navigation buttons while changes are pending
|
|
19
19
|
const operatorsAutoSaveDebounce = 500;
|
|
20
20
|
const getOperatorsInitialValues = (uiSettings, cluster) => {
|
|
21
|
+
var _a;
|
|
22
|
+
const olmOperators = (0, common_1.selectOlmOperators)(cluster);
|
|
23
|
+
const selectedOperators = olmOperators
|
|
24
|
+
.filter((operator) => { var _a; return operator.name && !((_a = operator.sourceBundles) === null || _a === void 0 ? void 0 : _a.length); })
|
|
25
|
+
.map(({ name }) => name);
|
|
26
|
+
const selectedBundlesFromOperatorBundles = (cluster.operatorBundles || []).map(({ id, optionalOperators }) => ({
|
|
27
|
+
id,
|
|
28
|
+
optionalOperators: optionalOperators || [],
|
|
29
|
+
}));
|
|
30
|
+
// Backward compatibility: old clusters can miss `operatorBundles`.
|
|
31
|
+
const selectedBundlesFromUiSettings = ((uiSettings === null || uiSettings === void 0 ? void 0 : uiSettings.bundlesSelected) || []).map((id) => ({
|
|
32
|
+
id,
|
|
33
|
+
optionalOperators: [],
|
|
34
|
+
}));
|
|
35
|
+
const selectedBundles = !!((_a = cluster.operatorBundles) === null || _a === void 0 ? void 0 : _a.length)
|
|
36
|
+
? selectedBundlesFromOperatorBundles
|
|
37
|
+
: selectedBundlesFromUiSettings;
|
|
21
38
|
return {
|
|
22
|
-
selectedBundles
|
|
23
|
-
selectedOperators
|
|
39
|
+
selectedBundles,
|
|
40
|
+
selectedOperators,
|
|
24
41
|
};
|
|
25
42
|
};
|
|
26
43
|
const OperatorsForm = ({ cluster }) => {
|
|
@@ -28,8 +45,8 @@ const OperatorsForm = ({ cluster }) => {
|
|
|
28
45
|
const clusterWizardContext = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
29
46
|
const isAutoSaveRunning = (0, common_1.useFormikAutoSave)(operatorsAutoSaveDebounce);
|
|
30
47
|
const { errors, touched, isSubmitting, isValid } = (0, formik_1.useFormikContext)();
|
|
31
|
-
const navigate = (0,
|
|
32
|
-
const { pathname } = (0,
|
|
48
|
+
const navigate = (0, react_router_1.useNavigate)();
|
|
49
|
+
const { pathname } = (0, react_router_1.useLocation)();
|
|
33
50
|
const isNextDisabled = isAutoSaveRunning ||
|
|
34
51
|
!isValid ||
|
|
35
52
|
!!alerts.length ||
|
|
@@ -37,7 +54,7 @@ const OperatorsForm = ({ cluster }) => {
|
|
|
37
54
|
!(0, wizardTransition_1.canNextOperators)({ cluster });
|
|
38
55
|
const handleNext = () => {
|
|
39
56
|
if (window.location.pathname.indexOf('assisted-installer') > -1) {
|
|
40
|
-
navigate(pathname, { state: undefined, replace: true });
|
|
57
|
+
void navigate(pathname, { state: undefined, replace: true });
|
|
41
58
|
}
|
|
42
59
|
clusterWizardContext.moveNext();
|
|
43
60
|
};
|
|
@@ -48,17 +65,28 @@ const Operators = ({ cluster }) => {
|
|
|
48
65
|
const dispatch = (0, react_redux_1.useDispatch)();
|
|
49
66
|
const { updateUISettings, uiSettings } = (0, ClusterWizardContext_1.useClusterWizardContext)();
|
|
50
67
|
const { addAlert, clearAlerts } = (0, common_1.useAlerts)();
|
|
68
|
+
const initialValues = react_1.default.useMemo(() => getOperatorsInitialValues(uiSettings, cluster), [cluster, uiSettings]);
|
|
51
69
|
const handleSubmit = (values) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
70
|
+
var _a;
|
|
52
71
|
clearAlerts();
|
|
53
|
-
const enabledOperators = values.selectedOperators.map((so) => ({
|
|
54
|
-
name: so,
|
|
55
|
-
}));
|
|
56
72
|
try {
|
|
57
73
|
const { data: updatedCluster } = yield services_1.ClustersService.update(cluster.id, cluster.tags, {
|
|
58
|
-
|
|
74
|
+
operatorBundles: values.selectedBundles,
|
|
75
|
+
olmOperators: values.selectedOperators.map((name) => ({ name })),
|
|
59
76
|
});
|
|
60
|
-
yield updateUISettings({ bundlesSelected: values.selectedBundles });
|
|
61
77
|
dispatch((0, slice_1.updateCluster)(updatedCluster));
|
|
78
|
+
// Backward compatibility: old clusters used uiSettings.bundlesSelected, keep operatorBundles as source of truth.
|
|
79
|
+
if ((_a = uiSettings === null || uiSettings === void 0 ? void 0 : uiSettings.bundlesSelected) === null || _a === void 0 ? void 0 : _a.length) {
|
|
80
|
+
try {
|
|
81
|
+
yield updateUISettings({ bundlesSelected: undefined });
|
|
82
|
+
}
|
|
83
|
+
catch (uiSettingsError) {
|
|
84
|
+
(0, api_1.handleApiError)(uiSettingsError, () => addAlert({
|
|
85
|
+
title: 'Failed to update UI settings',
|
|
86
|
+
message: (0, api_1.getApiErrorMessage)(uiSettingsError),
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
62
90
|
}
|
|
63
91
|
catch (e) {
|
|
64
92
|
(0, api_1.handleApiError)(e, () => addAlert({ title: 'Failed to update the cluster', message: (0, api_1.getApiErrorMessage)(e) }));
|
|
@@ -67,7 +95,7 @@ const Operators = ({ cluster }) => {
|
|
|
67
95
|
}
|
|
68
96
|
}
|
|
69
97
|
});
|
|
70
|
-
return (react_1.default.createElement(formik_1.Formik, { initialValues:
|
|
98
|
+
return (react_1.default.createElement(formik_1.Formik, { initialValues: initialValues, onSubmit: handleSubmit },
|
|
71
99
|
react_1.default.createElement(OperatorsForm, { cluster: cluster })));
|
|
72
100
|
};
|
|
73
101
|
exports.default = Operators;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Operators.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/Operators.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,6CAA0C;AAC1C
|
|
1
|
+
{"version":3,"file":"Operators.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/Operators.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,6CAA0C;AAC1C,+CAAwD;AACxD,mCAAgE;AAEhE,4CAQyB;AACzB,iEAAiE;AACjE,uGAAuE;AACvE,+GAA+E;AAC/E,mDAAgD;AAChD,6CAAiD;AACjD,oEAA+F;AAC/F,6CAA+F;AAC/F,yDAAsD;AAEtD,uEAAuE;AACvE,8FAA8F;AAC9F,MAAM,yBAAyB,GAAG,GAAG,CAAC;AAEtC,MAAM,yBAAyB,GAAG,CAChC,UAAwC,EACxC,OAAgB,EACC,EAAE;;IACnB,MAAM,YAAY,GAAG,IAAA,2BAAkB,EAAC,OAAO,CAAC,CAAC;IACjD,MAAM,iBAAiB,GAAG,YAAY;SACnC,MAAM,CAAC,CAAC,QAAQ,EAAE,EAAE,WAAC,OAAA,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAA,MAAA,QAAQ,CAAC,aAAa,0CAAE,MAAM,CAAA,CAAA,EAAA,CAAC;SACtE,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAc,CAAC,CAAC;IAErC,MAAM,kCAAkC,GAAG,CAAC,OAAO,CAAC,eAAe,IAAI,EAAE,CAAC,CAAC,GAAG,CAC5E,CAAC,EAAE,EAAE,EAAE,iBAAiB,EAAE,EAAE,EAAE,CAAC,CAAC;QAC9B,EAAE;QACF,iBAAiB,EAAE,iBAAiB,IAAI,EAAE;KAC3C,CAAC,CACH,CAAC;IAEF,mEAAmE;IACnE,MAAM,6BAA6B,GAAG,CAAC,CAAA,UAAU,aAAV,UAAU,uBAA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../../common");
|
|
|
7
7
|
const formik_1 = require("formik");
|
|
8
8
|
const newFeatureSupportLevels_1 = require("../../../common/components/newFeatureSupportLevels");
|
|
9
9
|
const use_feature_1 = require("../../hooks/use-feature");
|
|
10
|
-
const utils_1 = require("../clusterConfiguration/operators/utils");
|
|
11
10
|
const bundleSpecs_1 = require("../clusterConfiguration/operators/bundleSpecs");
|
|
12
11
|
const operatorSpecs_1 = require("../../../common/components/operators/operatorSpecs");
|
|
13
12
|
const ClusterWizardContext_1 = require("./ClusterWizardContext");
|
|
13
|
+
const OptionalOperatorsDropdown_1 = tslib_1.__importDefault(require("./OptionalOperatorsDropdown"));
|
|
14
14
|
require("./OperatorsBundle.css");
|
|
15
15
|
const BundleLabel = ({ bundle, searchTerm }) => {
|
|
16
16
|
var _a;
|
|
@@ -33,8 +33,8 @@ const BundleLabel = ({ bundle, searchTerm }) => {
|
|
|
33
33
|
(bundleSpec === null || bundleSpec === void 0 ? void 0 : bundleSpec.docsLink) && (React.createElement(react_core_1.StackItem, null,
|
|
34
34
|
React.createElement(common_1.ExternalLink, { href: bundleSpec.docsLink }, "Learn more")))) })));
|
|
35
35
|
};
|
|
36
|
-
const BundleCard = ({ bundle, bundles,
|
|
37
|
-
var _a, _b, _c;
|
|
36
|
+
const BundleCard = ({ bundle, bundles, searchTerm, informationalMessage, }) => {
|
|
37
|
+
var _a, _b, _c, _d;
|
|
38
38
|
const { values, setFieldValue } = (0, formik_1.useFormikContext)();
|
|
39
39
|
const { isFeatureSupported } = (0, newFeatureSupportLevels_1.useNewFeatureSupportLevel)();
|
|
40
40
|
const { byKey: opSpecs } = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
@@ -47,7 +47,7 @@ const BundleCard = ({ bundle, bundles, preflightRequirements, searchTerm, }) =>
|
|
|
47
47
|
return !isFeatureSupported(operatorSpec.featureId);
|
|
48
48
|
}));
|
|
49
49
|
const bundleSpec = bundleSpecs_1.bundleSpecs[bundle.id || ''];
|
|
50
|
-
const incompatibleBundle = (_b = bundleSpec === null || bundleSpec === void 0 ? void 0 : bundleSpec.incompatibleBundles) === null || _b === void 0 ? void 0 : _b.find((b) => values.selectedBundles.
|
|
50
|
+
const incompatibleBundle = (_b = bundleSpec === null || bundleSpec === void 0 ? void 0 : bundleSpec.incompatibleBundles) === null || _b === void 0 ? void 0 : _b.find((b) => values.selectedBundles.some((bundleSelection) => bundleSelection.id === b));
|
|
51
51
|
const isAssistedMigration = uiSettings === null || uiSettings === void 0 ? void 0 : uiSettings.isAssistedMigration;
|
|
52
52
|
const disabledReason = hasUnsupportedOperators
|
|
53
53
|
? 'Some operators in this bundle are not supported with the current configuration.'
|
|
@@ -58,15 +58,18 @@ const BundleCard = ({ bundle, bundles, preflightRequirements, searchTerm, }) =>
|
|
|
58
58
|
: !bundles.some((b) => b.id === bundle.id)
|
|
59
59
|
? 'This bundle is not available for the current configuration, you might be able to use the standalone operators instead.'
|
|
60
60
|
: undefined;
|
|
61
|
+
const addBundle = (selectedBundles, bundle) => [
|
|
62
|
+
...selectedBundles,
|
|
63
|
+
{ id: bundle.id || '', optionalOperators: bundle.optionalOperators || [] },
|
|
64
|
+
];
|
|
65
|
+
const removeBundle = (selectedBundles, bundleId) => selectedBundles.filter((selectedBundle) => selectedBundle.id !== bundleId);
|
|
61
66
|
const onSelect = (checked) => {
|
|
62
|
-
const
|
|
63
|
-
?
|
|
64
|
-
: values.selectedBundles
|
|
65
|
-
setFieldValue('selectedBundles',
|
|
66
|
-
const newOperators = (0, utils_1.getNewBundleOperators)(values.selectedOperators, newBundles, bundles, bundle, preflightRequirements, checked);
|
|
67
|
-
setFieldValue('selectedOperators', newOperators);
|
|
67
|
+
const nextBundles = checked
|
|
68
|
+
? addBundle(values.selectedBundles, bundle)
|
|
69
|
+
: removeBundle(values.selectedBundles, bundle.id);
|
|
70
|
+
setFieldValue('selectedBundles', nextBundles);
|
|
68
71
|
};
|
|
69
|
-
const isSelected = values.selectedBundles.
|
|
72
|
+
const isSelected = values.selectedBundles.some((selectedBundle) => selectedBundle.id === bundle.id);
|
|
70
73
|
const checkboxId = `bundle-${bundle.id || ''}`;
|
|
71
74
|
return (React.createElement(react_core_1.Tooltip, { content: disabledReason, hidden: !disabledReason },
|
|
72
75
|
React.createElement(react_core_1.Card, { isDisabled: !!disabledReason, isFullHeight: true, isClickable: true, isSelectable: true, isSelected: isSelected, className: "ai-bundle-card" },
|
|
@@ -74,7 +77,7 @@ const BundleCard = ({ bundle, bundles, preflightRequirements, searchTerm, }) =>
|
|
|
74
77
|
selectableActionId: checkboxId,
|
|
75
78
|
selectableActionAriaLabelledby: checkboxId,
|
|
76
79
|
name: checkboxId,
|
|
77
|
-
onChange: (_, checked) => onSelect(checked),
|
|
80
|
+
onChange: (_, checked) => onSelect(!!checked),
|
|
78
81
|
isChecked: isSelected,
|
|
79
82
|
} },
|
|
80
83
|
React.createElement(react_core_1.CardTitle, null,
|
|
@@ -82,10 +85,26 @@ const BundleCard = ({ bundle, bundles, preflightRequirements, searchTerm, }) =>
|
|
|
82
85
|
React.createElement(react_core_1.CardBody, { isFilled: true },
|
|
83
86
|
React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
84
87
|
React.createElement(react_core_1.StackItem, { isFilled: true },
|
|
85
|
-
React.createElement("div", null, (0, operatorSpecs_1.highlightMatch)(bundle.description || '', searchTerm)))
|
|
88
|
+
React.createElement("div", null, (0, operatorSpecs_1.highlightMatch)(bundle.description || '', searchTerm))),
|
|
89
|
+
!!((_d = bundle.optionalOperators) === null || _d === void 0 ? void 0 : _d.length) && (React.createElement(react_core_1.StackItem, { onClick: (e) => e.stopPropagation() },
|
|
90
|
+
React.createElement(OptionalOperatorsDropdown_1.default, { bundleId: bundle.id || '', optionalOperatorIds: bundle.optionalOperators, selectedBundles: values.selectedBundles, setSelectedBundles: (selectedBundles) => setFieldValue('selectedBundles', selectedBundles), isDisabled: !isSelected || !!disabledReason, getOperatorLabel: (operatorId) => { var _a; return ((_a = opSpecs[operatorId]) === null || _a === void 0 ? void 0 : _a.title) || operatorId; } }))),
|
|
91
|
+
informationalMessage && (React.createElement(react_core_1.StackItem, null,
|
|
92
|
+
React.createElement(react_core_1.Alert, { isInline: true, variant: "info", title: informationalMessage }))))))));
|
|
86
93
|
};
|
|
87
|
-
const OperatorsBundle = ({ bundles, allBundles,
|
|
94
|
+
const OperatorsBundle = ({ bundles, allBundles, searchTerm, cluster, }) => {
|
|
88
95
|
const isSingleClusterFeatureEnabled = (0, use_feature_1.useFeature)('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
|
|
96
|
+
const openshiftAiGpuInfoMessage = React.useMemo(() => {
|
|
97
|
+
var _a;
|
|
98
|
+
const validationsInfo = (0, common_1.selectClusterValidationsInfo)(cluster);
|
|
99
|
+
if (!validationsInfo) {
|
|
100
|
+
return undefined;
|
|
101
|
+
}
|
|
102
|
+
return (_a = Object.values(validationsInfo)
|
|
103
|
+
.flat()
|
|
104
|
+
.find((validation) => (validation === null || validation === void 0 ? void 0 : validation.id) === 'openshift-ai-gpu-requirements-satisfied' &&
|
|
105
|
+
(validation === null || validation === void 0 ? void 0 : validation.status) === 'success' &&
|
|
106
|
+
!!validation.message)) === null || _a === void 0 ? void 0 : _a.message;
|
|
107
|
+
}, [cluster]);
|
|
89
108
|
return (React.createElement(react_core_1.Stack, { hasGutter: true },
|
|
90
109
|
React.createElement(react_core_1.StackItem, null,
|
|
91
110
|
React.createElement(react_core_1.Title, { headingLevel: "h2", size: "lg" }, allBundles.length > 0 ? 'Bundles' : '')),
|
|
@@ -93,7 +112,7 @@ const OperatorsBundle = ({ bundles, allBundles, preflightRequirements, searchTer
|
|
|
93
112
|
React.createElement(react_core_1.Gallery, { hasGutter: true, minWidths: { default: '350px' } }, (isSingleClusterFeatureEnabled
|
|
94
113
|
? allBundles.filter((b) => b.id && common_1.singleClusterBundles.includes(b.id))
|
|
95
114
|
: allBundles).map((bundle) => (React.createElement(react_core_1.GalleryItem, { key: bundle.id },
|
|
96
|
-
React.createElement(BundleCard, { bundle: bundles.find((b) => b.id === bundle.id) || bundle, bundles: bundles,
|
|
115
|
+
React.createElement(BundleCard, { bundle: bundles.find((b) => b.id === bundle.id) || bundle, bundles: bundles, searchTerm: searchTerm, informationalMessage: bundle.id === 'openshift-ai' ? openshiftAiGpuInfoMessage : undefined }))))))));
|
|
97
116
|
};
|
|
98
117
|
exports.default = OperatorsBundle;
|
|
99
118
|
//# sourceMappingURL=OperatorsBundle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperatorsBundle.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsBundle.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,
|
|
1
|
+
{"version":3,"file":"OperatorsBundle.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsBundle.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAcgC;AAEhC,4CAMyB;AACzB,mCAA0C;AAC1C,gGAA+F;AAC/F,yDAAqD;AACrD,+EAA4E;AAC5E,sFAG4D;AAC5D,iEAAiE;AACjE,oGAAoE;AACpE,iCAA+B;AAE/B,MAAM,WAAW,GAAG,CAAC,EAAE,MAAM,EAAE,UAAU,EAA2C,EAAE,EAAE;;IACtF,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAA,gCAAgB,GAAE,CAAC;IAC9C,MAAM,UAAU,GAAG,yBAAW,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAChD,OAAO,CACL;QACE;YAAO,IAAA,8BAAc,EAAC,MAAM,CAAC,KAAK,IAAI,EAAE,EAAE,UAAU,CAAC;gBAAS;QAC9D,oBAAC,oBAAW,IACV,SAAS,EAAE,GAAG,EACd,aAAa,EAAE,iEAAwC,EACvD,WAAW,EACT,oBAAC,kBAAK,IAAC,SAAS;gBACb,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,WAAW,KAAI,CAC1B,oBAAC,sBA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,CAAC,CAAC,CAAC,EAAE,KAAK,MAAM,CAAC,EAAE,CAAC,IAAI,MAAM,EACzD,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,UAAU,EACtB,oBAAoB,EAClB,MAAM,CAAC,EAAE,KAAK,cAAc,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,GAEtE,CACU,CACf,CAAC,CACM,CACA,CACN,CACT,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -9,13 +9,13 @@ const services_1 = require("../../services");
|
|
|
9
9
|
const use_feature_1 = require("../../hooks/use-feature");
|
|
10
10
|
const OperatorCheckbox_1 = tslib_1.__importDefault(require("../clusterConfiguration/operators/OperatorCheckbox"));
|
|
11
11
|
const operatorSpecs_1 = require("../../../common/components/operators/operatorSpecs");
|
|
12
|
+
const utils_1 = require("../clusterConfiguration/operators/utils");
|
|
12
13
|
const OperatorsSelect = ({ cluster, bundles, preflightRequirements, searchTerm, }) => {
|
|
13
14
|
const [isLoading, setIsLoading] = (0, common_1.useStateSafely)(true);
|
|
14
15
|
const { addAlert } = (0, common_1.useAlerts)();
|
|
15
16
|
const [isExpanded, setIsExpanded] = React.useState(false);
|
|
16
17
|
const [supportedOperators, setSupportedOperators] = (0, common_1.useStateSafely)([]);
|
|
17
18
|
const isSingleClusterFeatureEnabled = (0, use_feature_1.useFeature)('ASSISTED_INSTALLER_SINGLE_CLUSTER_FEATURE');
|
|
18
|
-
const { values } = (0, formik_1.useFormikContext)();
|
|
19
19
|
React.useEffect(() => {
|
|
20
20
|
const fetchSupportedOperators = () => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
21
21
|
try {
|
|
@@ -31,6 +31,7 @@ const OperatorsSelect = ({ cluster, bundles, preflightRequirements, searchTerm,
|
|
|
31
31
|
});
|
|
32
32
|
void fetchSupportedOperators();
|
|
33
33
|
}, [addAlert, setSupportedOperators, setIsLoading]);
|
|
34
|
+
const { values } = (0, formik_1.useFormikContext)();
|
|
34
35
|
const { byCategory, byKey: opSpecs } = (0, operatorSpecs_1.useOperatorSpecs)();
|
|
35
36
|
const operators = React.useMemo(() => {
|
|
36
37
|
return supportedOperators.filter((op) => {
|
|
@@ -40,13 +41,26 @@ const OperatorsSelect = ({ cluster, bundles, preflightRequirements, searchTerm,
|
|
|
40
41
|
return common_1.singleClusterOperators.includes(op);
|
|
41
42
|
});
|
|
42
43
|
}, [isSingleClusterFeatureEnabled, supportedOperators]);
|
|
43
|
-
const
|
|
44
|
+
const bundleOperators = new Set();
|
|
45
|
+
values.selectedBundles.forEach((b) => {
|
|
46
|
+
var _a, _b, _c;
|
|
47
|
+
(_a = b.optionalOperators) === null || _a === void 0 ? void 0 : _a.forEach((op) => bundleOperators.add(op));
|
|
48
|
+
(_c = (_b = bundles.find(({ id }) => id === b.id)) === null || _b === void 0 ? void 0 : _b.operators) === null || _c === void 0 ? void 0 : _c.forEach((op) => bundleOperators.add(op));
|
|
49
|
+
});
|
|
50
|
+
const dependencies = new Set();
|
|
51
|
+
[...values.selectedOperators, ...bundleOperators].forEach((op) => (0, utils_1.getOperatorDependencies)(op, preflightRequirements, dependencies));
|
|
52
|
+
const checkedOperatorIds = new Set([
|
|
53
|
+
...values.selectedOperators,
|
|
54
|
+
...bundleOperators,
|
|
55
|
+
...dependencies,
|
|
56
|
+
]);
|
|
57
|
+
const operatorsCount = operators.filter((op) => checkedOperatorIds.has(op)).length;
|
|
44
58
|
if (isLoading) {
|
|
45
59
|
return React.createElement(common_1.LoadingState, null);
|
|
46
60
|
}
|
|
47
61
|
let foundAtLeastOneOperator = false;
|
|
48
62
|
return (React.createElement(React.Fragment, null,
|
|
49
|
-
React.createElement(react_core_1.ExpandableSection, { toggleText: `Single
|
|
63
|
+
React.createElement(react_core_1.ExpandableSection, { toggleText: `Single operators (${operatorsCount} selected)`, onToggle: () => setIsExpanded(!isExpanded), isExpanded: isExpanded, "data-testid": "single-operators-section" },
|
|
50
64
|
React.createElement(react_core_1.Stack, { hasGutter: true, "data-testid": 'operators-form' }, Object.entries(byCategory).map(([categoryName, specs]) => {
|
|
51
65
|
let categoryOperators = specs.filter((spec) => operators.includes(spec.operatorKey));
|
|
52
66
|
// Filter by searchTerm
|
|
@@ -72,7 +86,7 @@ const OperatorsSelect = ({ cluster, bundles, preflightRequirements, searchTerm,
|
|
|
72
86
|
React.createElement(react_core_1.StackItem, null,
|
|
73
87
|
React.createElement(react_core_1.Content, { className: "pf-v6-u-font-weight-bold" }, categoryName)),
|
|
74
88
|
categoryOperators.map((spec) => (React.createElement(react_core_1.StackItem, { key: spec.operatorKey },
|
|
75
|
-
React.createElement(OperatorCheckbox_1.default, Object.assign({ bundles: bundles, operatorId: spec.operatorKey, cluster: cluster, openshiftVersion: cluster.openshiftVersion, preflightRequirements: preflightRequirements, searchTerm: searchTerm }, spec)))))));
|
|
89
|
+
React.createElement(OperatorCheckbox_1.default, Object.assign({ bundles: bundles, operatorId: spec.operatorKey, checkedOperatorIds: checkedOperatorIds, isChecked: checkedOperatorIds.has(spec.operatorKey), cluster: cluster, openshiftVersion: cluster.openshiftVersion, preflightRequirements: preflightRequirements, searchTerm: searchTerm }, spec)))))));
|
|
76
90
|
}))),
|
|
77
91
|
!foundAtLeastOneOperator && !!(searchTerm === null || searchTerm === void 0 ? void 0 : searchTerm.trim()) && React.createElement(react_core_1.StackItem, null, "No results found")));
|
|
78
92
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OperatorsSelect.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsSelect.tsx"],"names":[],"mappings":";;;AAAA,qDAA+B;AAC/B,uDAAsF;AAMtF,mCAA0C;AAC1C,4CAQyB;AACzB,6CAAkD;AAClD,yDAAqD;AACrD,kHAAkF;AAClF,sFAAsF;
|
|
1
|
+
{"version":3,"file":"OperatorsSelect.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterWizard/OperatorsSelect.tsx"],"names":[],"mappings":";;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EAAE,UAAU,IAClB,IAAI,EACR,CACQ,CACb,CAAC,CACa,CAClB,CAAC;YACJ,CAAC,CAAC,CACI,CACU;QACnB,CAAC,uBAAuB,IAAI,CAAC,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,IAAI,EAAE,CAAA,IAAI,oBAAC,sBAAS,2BAA6B,CAC3F,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,eAAe,CAAC"}
|
|
@@ -4,7 +4,7 @@ const vitest_1 = require("vitest");
|
|
|
4
4
|
// Test the counting logic that was implemented in OperatorsSelect
|
|
5
5
|
function calculateSelectedOperators(values, bundles, opSpecs) {
|
|
6
6
|
// Calculate all selected operators (direct selections + bundle selections)
|
|
7
|
-
const bundleOperators = values.selectedBundles.flatMap((
|
|
7
|
+
const bundleOperators = values.selectedBundles.flatMap((bundle) => { var _a; return ((_a = bundles.find((b) => b.id === bundle.id)) === null || _a === void 0 ? void 0 : _a.operators) || []; });
|
|
8
8
|
const allSelectedOperators = values.selectedOperators
|
|
9
9
|
.concat(bundleOperators)
|
|
10
10
|
.filter((op, index, array) => array.indexOf(op) === index); // Remove duplicates
|
|
@@ -47,7 +47,7 @@ function calculateSelectedOperators(values, bundles, opSpecs) {
|
|
|
47
47
|
(0, vitest_1.it)('should count bundle operators when a bundle is selected', () => {
|
|
48
48
|
const values = {
|
|
49
49
|
selectedOperators: ['lvm'], // 1 manually selected
|
|
50
|
-
selectedBundles: ['virtualization'], // bundle with 3 operators: cnv, nmstate, mtv
|
|
50
|
+
selectedBundles: [{ id: 'virtualization', optionalOperators: [] }], // bundle with 3 operators: cnv, nmstate, mtv
|
|
51
51
|
};
|
|
52
52
|
const result = calculateSelectedOperators(values, mockBundles, mockOpSpecs);
|
|
53
53
|
(0, vitest_1.expect)(result).toHaveLength(4);
|
|
@@ -59,7 +59,7 @@ function calculateSelectedOperators(values, bundles, opSpecs) {
|
|
|
59
59
|
(0, vitest_1.it)('should not double-count operators that are both manually selected and in a bundle', () => {
|
|
60
60
|
const values = {
|
|
61
61
|
selectedOperators: ['lvm', 'cnv'], // cnv is also in the bundle
|
|
62
|
-
selectedBundles: ['virtualization'], // bundle with: cnv, nmstate, mtv
|
|
62
|
+
selectedBundles: [{ id: 'virtualization', optionalOperators: [] }], // bundle with: cnv, nmstate, mtv
|
|
63
63
|
};
|
|
64
64
|
const result = calculateSelectedOperators(values, mockBundles, mockOpSpecs);
|
|
65
65
|
(0, vitest_1.expect)(result).toHaveLength(4);
|
|
@@ -83,7 +83,10 @@ function calculateSelectedOperators(values, bundles, opSpecs) {
|
|
|
83
83
|
(0, vitest_1.it)('should handle multiple bundles correctly', () => {
|
|
84
84
|
const values = {
|
|
85
85
|
selectedOperators: ['lvm'],
|
|
86
|
-
selectedBundles: [
|
|
86
|
+
selectedBundles: [
|
|
87
|
+
{ id: 'virtualization', optionalOperators: [] },
|
|
88
|
+
{ id: 'openshift-ai', optionalOperators: [] },
|
|
89
|
+
], // Two bundles
|
|
87
90
|
};
|
|
88
91
|
const result = calculateSelectedOperators(values, mockBundles, mockOpSpecs);
|
|
89
92
|
(0, vitest_1.expect)(result).toHaveLength(7); // lvm + 3 from virtualization + 3 from openshift-ai
|
|
@@ -98,7 +101,10 @@ function calculateSelectedOperators(values, bundles, opSpecs) {
|
|
|
98
101
|
(0, vitest_1.it)('should handle overlapping operators in multiple bundles', () => {
|
|
99
102
|
const values = {
|
|
100
103
|
selectedOperators: [],
|
|
101
|
-
selectedBundles: [
|
|
104
|
+
selectedBundles: [
|
|
105
|
+
{ id: 'virtualization', optionalOperators: [] },
|
|
106
|
+
{ id: 'openshift-ai', optionalOperators: [] },
|
|
107
|
+
], // Both bundles have 'odf' (but only virtualization has it in our mock)
|
|
102
108
|
};
|
|
103
109
|
// Let's modify the virtualization bundle to include odf to test overlap
|
|
104
110
|
const bundlesWithOverlap = [
|