@openshift-assisted/ui-lib 5.0.1-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.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -1
- 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 -2
- package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +3 -2
- 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/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/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 +1 -0
- package/build/@types/cim/hooks/index.d.ts.map +1 -1
- 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/clusterWizard/validationsInfoUtils.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/docs_links.d.ts.map +1 -1
- package/build/@types/common/types/clusters.d.ts +1 -1
- 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/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/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/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 +1 -1
- package/build/@types/ocm/components/clusterWizard/wizardTransition.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/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/NewFeatureSupportLevelsService.d.ts +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/ClusterDeployment/ClusterDeploymentWizard.js +13 -15
- 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 +3 -2
- 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 +2 -2
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +2 -5
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
- 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 +4 -4
- package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +21 -7
- package/build/cjs/cim/components/ClusterDeployment/wizardTransition.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/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/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/CimStorageMissingAlert.js +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js.map +1 -1
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +2 -2
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
- package/build/cjs/cim/hooks/index.js +1 -0
- package/build/cjs/cim/hooks/index.js.map +1 -1
- 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/DownloadIso.js +1 -1
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ConsoleModal.js +1 -1
- package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/validationsInfoUtils.js +11 -4
- package/build/cjs/common/components/clusterWizard/validationsInfoUtils.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/docs_links.js +5 -4
- package/build/cjs/common/config/docs_links.js.map +1 -1
- package/build/cjs/common/utils.js +3 -0
- package/build/cjs/common/utils.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.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/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/ClusterWizardContext.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +9 -0
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js +3 -0
- package/build/cjs/ocm/components/clusterWizard/NewClusterWizard.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/constants.js +1 -0
- package/build/cjs/ocm/components/clusterWizard/constants.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/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 +7 -5
- package/build/cjs/ocm/components/clusterWizard/disconnected/ReviewStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js +3 -0
- package/build/cjs/ocm/components/clusterWizard/wizardTransition.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/index.js +0 -1
- package/build/cjs/ocm/components/featureSupportLevels/index.js.map +1 -1
- package/build/cjs/ocm/services/ClustersService.js +3 -0
- package/build/cjs/ocm/services/ClustersService.js.map +1 -1
- package/lib/cim/components/Agent/AgentsSelectionTable.tsx +1 -1
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +91 -99
- package/lib/cim/components/ClusterDeployment/ClusterInstallationError.tsx +1 -1
- package/lib/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.tsx +4 -3
- package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +6 -6
- package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.tsx +2 -2
- package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +2 -3
- 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 +11 -11
- package/lib/cim/components/ClusterDeployment/types.ts +2 -3
- package/lib/cim/components/ClusterDeployment/wizardTransition.ts +30 -19
- 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/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/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/CimStorageMissingAlert.tsx +4 -1
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +3 -14
- package/lib/cim/hooks/index.tsx +1 -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/DownloadIso.tsx +1 -1
- package/lib/common/components/clusterDetail/ConsoleModal.tsx +1 -1
- package/lib/common/components/clusterWizard/validationsInfoUtils.ts +16 -3
- 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/docs_links.ts +5 -4
- package/lib/common/types/clusters.ts +1 -1
- package/lib/common/utils.ts +3 -0
- package/lib/ocm/components/AddHosts/types.ts +6 -3
- package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +1 -1
- package/lib/ocm/components/clusterDetail/ClusterInstallationError.tsx +1 -1
- package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +1 -1
- package/lib/ocm/components/clusterWizard/ClusterWizardContext.tsx +5 -0
- package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +9 -0
- package/lib/ocm/components/clusterWizard/NewClusterWizard.tsx +3 -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 +9 -7
- package/lib/ocm/components/clusterWizard/wizardTransition.ts +4 -0
- package/lib/ocm/components/featureSupportLevels/index.ts +0 -1
- package/lib/ocm/services/ClustersService.ts +5 -0
- package/package.json +5 -5
- 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/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
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Formik, useFormikContext } from 'formik';
|
|
3
|
+
import * as Yup from 'yup';
|
|
4
|
+
import { AlertVariant } from '@patternfly/react-core';
|
|
5
|
+
import { Form, Grid, GridItem, Content } from '@patternfly/react-core';
|
|
6
|
+
import {
|
|
7
|
+
ClusterWizardStep,
|
|
8
|
+
PullSecret,
|
|
9
|
+
UploadSSH,
|
|
10
|
+
handleApiError,
|
|
11
|
+
getApiErrorMessage,
|
|
12
|
+
isInOcm,
|
|
13
|
+
pullSecretValidationSchema,
|
|
14
|
+
sshPublicKeyValidationSchema,
|
|
15
|
+
useAlerts,
|
|
16
|
+
useTranslation,
|
|
17
|
+
} from '../../../../common';
|
|
18
|
+
import { WithErrorBoundary } from '../../../../common/components/ErrorHandling/WithErrorBoundary';
|
|
19
|
+
import { useClusterWizardContext } from '../ClusterWizardContext';
|
|
20
|
+
import ClusterWizardFooter from '../ClusterWizardFooter';
|
|
21
|
+
import ClusterWizardNavigation from '../ClusterWizardNavigation';
|
|
22
|
+
import { InfraEnvsAPI, ClustersAPI } from '../../../services/apis';
|
|
23
|
+
import { ImageType } from '@openshift-assisted/types/assisted-installer-service';
|
|
24
|
+
import usePullSecret from '../../../hooks/usePullSecret';
|
|
25
|
+
import { DISCONNECTED_OPENSHIFT_VERSION } from './BasicStep';
|
|
26
|
+
|
|
27
|
+
const DISCONNECTED_IMAGE_TYPE: ImageType = 'disconnected-iso';
|
|
28
|
+
const DISCONNECTED_CLUSTER_NAME = 'disconnected-cluster';
|
|
29
|
+
|
|
30
|
+
type OptionalConfigurationsValues = {
|
|
31
|
+
sshPublicKey: string;
|
|
32
|
+
pullSecret: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
type OptionalConfigurationsFormProps = {
|
|
36
|
+
defaultPullSecret?: string;
|
|
37
|
+
isSubmitting: boolean;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const OptionalConfigurationsForm: React.FC<OptionalConfigurationsFormProps> = ({
|
|
41
|
+
defaultPullSecret,
|
|
42
|
+
isSubmitting,
|
|
43
|
+
}) => {
|
|
44
|
+
const { moveBack } = useClusterWizardContext();
|
|
45
|
+
const { isValid, submitForm } = useFormikContext<OptionalConfigurationsValues>();
|
|
46
|
+
|
|
47
|
+
return (
|
|
48
|
+
<ClusterWizardStep
|
|
49
|
+
navigation={<ClusterWizardNavigation />}
|
|
50
|
+
footer={
|
|
51
|
+
<ClusterWizardFooter
|
|
52
|
+
onNext={() => void submitForm()}
|
|
53
|
+
onBack={moveBack}
|
|
54
|
+
isSubmitting={isSubmitting}
|
|
55
|
+
isNextDisabled={!isValid}
|
|
56
|
+
/>
|
|
57
|
+
}
|
|
58
|
+
>
|
|
59
|
+
<WithErrorBoundary title="Failed to load Optional configurations step">
|
|
60
|
+
<Grid hasGutter>
|
|
61
|
+
<GridItem>
|
|
62
|
+
<Content component="h2">Optional configurations</Content>
|
|
63
|
+
</GridItem>
|
|
64
|
+
<GridItem>
|
|
65
|
+
<Form id="wizard-cluster-optional-config__form">
|
|
66
|
+
<UploadSSH />
|
|
67
|
+
{!isInOcm && <PullSecret isOcm={false} defaultPullSecret={defaultPullSecret} />}
|
|
68
|
+
</Form>
|
|
69
|
+
</GridItem>
|
|
70
|
+
</Grid>
|
|
71
|
+
</WithErrorBoundary>
|
|
72
|
+
</ClusterWizardStep>
|
|
73
|
+
);
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
const OptionalConfigurationsStep = () => {
|
|
77
|
+
const { t } = useTranslation();
|
|
78
|
+
const {
|
|
79
|
+
moveNext,
|
|
80
|
+
disconnectedCluster,
|
|
81
|
+
setDisconnectedCluster,
|
|
82
|
+
disconnectedInfraEnv,
|
|
83
|
+
setDisconnectedInfraEnv,
|
|
84
|
+
} = useClusterWizardContext();
|
|
85
|
+
const { addAlert, clearAlerts } = useAlerts();
|
|
86
|
+
const [isSubmitting, setIsSubmitting] = React.useState(false);
|
|
87
|
+
const defaultPullSecret = usePullSecret();
|
|
88
|
+
|
|
89
|
+
const validationSchema = React.useMemo(
|
|
90
|
+
() =>
|
|
91
|
+
Yup.object({
|
|
92
|
+
sshPublicKey: sshPublicKeyValidationSchema(t),
|
|
93
|
+
pullSecret: isInOcm ? Yup.string() : pullSecretValidationSchema(t),
|
|
94
|
+
}),
|
|
95
|
+
[t],
|
|
96
|
+
);
|
|
97
|
+
|
|
98
|
+
const initialValues: OptionalConfigurationsValues = {
|
|
99
|
+
sshPublicKey: disconnectedInfraEnv?.sshAuthorizedKey ?? '',
|
|
100
|
+
pullSecret: defaultPullSecret ?? '',
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
const handleNext = React.useCallback(
|
|
104
|
+
async (values: OptionalConfigurationsValues) => {
|
|
105
|
+
clearAlerts();
|
|
106
|
+
setIsSubmitting(true);
|
|
107
|
+
try {
|
|
108
|
+
const pullSecretToUse = isInOcm ? defaultPullSecret ?? '' : values.pullSecret;
|
|
109
|
+
|
|
110
|
+
if (disconnectedCluster?.id && disconnectedInfraEnv?.id) {
|
|
111
|
+
const { data: updatedInfraEnv } = await InfraEnvsAPI.update(disconnectedInfraEnv.id, {
|
|
112
|
+
sshAuthorizedKey: values.sshPublicKey,
|
|
113
|
+
});
|
|
114
|
+
setDisconnectedInfraEnv(updatedInfraEnv);
|
|
115
|
+
} else {
|
|
116
|
+
const { data: cluster } = await ClustersAPI.registerDisconnected({
|
|
117
|
+
name: DISCONNECTED_CLUSTER_NAME,
|
|
118
|
+
openshiftVersion: DISCONNECTED_OPENSHIFT_VERSION,
|
|
119
|
+
});
|
|
120
|
+
setDisconnectedCluster(cluster);
|
|
121
|
+
|
|
122
|
+
const { data: createdInfraEnv } = await InfraEnvsAPI.register({
|
|
123
|
+
name: 'disconnected-infra-env',
|
|
124
|
+
pullSecret: pullSecretToUse,
|
|
125
|
+
clusterId: cluster.id,
|
|
126
|
+
imageType: DISCONNECTED_IMAGE_TYPE,
|
|
127
|
+
openshiftVersion: DISCONNECTED_OPENSHIFT_VERSION,
|
|
128
|
+
sshAuthorizedKey: values.sshPublicKey || undefined,
|
|
129
|
+
});
|
|
130
|
+
setDisconnectedInfraEnv(createdInfraEnv);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
moveNext();
|
|
134
|
+
} catch (error) {
|
|
135
|
+
handleApiError(error, () => {
|
|
136
|
+
addAlert({
|
|
137
|
+
title: 'Failed to save optional configurations',
|
|
138
|
+
message: getApiErrorMessage(error),
|
|
139
|
+
variant: AlertVariant.danger,
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
} finally {
|
|
143
|
+
setIsSubmitting(false);
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
[
|
|
147
|
+
clearAlerts,
|
|
148
|
+
defaultPullSecret,
|
|
149
|
+
disconnectedCluster,
|
|
150
|
+
disconnectedInfraEnv,
|
|
151
|
+
setDisconnectedCluster,
|
|
152
|
+
setDisconnectedInfraEnv,
|
|
153
|
+
addAlert,
|
|
154
|
+
moveNext,
|
|
155
|
+
],
|
|
156
|
+
);
|
|
157
|
+
|
|
158
|
+
return (
|
|
159
|
+
<Formik<OptionalConfigurationsValues>
|
|
160
|
+
initialValues={initialValues}
|
|
161
|
+
enableReinitialize
|
|
162
|
+
validationSchema={validationSchema}
|
|
163
|
+
onSubmit={(values) => void handleNext(values)}
|
|
164
|
+
>
|
|
165
|
+
<OptionalConfigurationsForm
|
|
166
|
+
defaultPullSecret={defaultPullSecret}
|
|
167
|
+
isSubmitting={isSubmitting}
|
|
168
|
+
/>
|
|
169
|
+
</Formik>
|
|
170
|
+
);
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export default OptionalConfigurationsStep;
|
|
@@ -29,12 +29,10 @@ import { saveAs } from 'file-saver';
|
|
|
29
29
|
import { useNavigate } from 'react-router';
|
|
30
30
|
|
|
31
31
|
import { getOperatorSpecs } from '../../../../common/components/operators/operatorSpecs';
|
|
32
|
-
|
|
33
|
-
const downloadUrl =
|
|
34
|
-
'https://mirror.openshift.com/pub/cgw/assisted-installer-disconnected/latest/agent-ove.x86_64.iso';
|
|
32
|
+
import { DISCONNECTED_OPENSHIFT_VERSION } from './BasicStep';
|
|
35
33
|
|
|
36
34
|
const ReviewStep = () => {
|
|
37
|
-
const { moveBack } = useClusterWizardContext();
|
|
35
|
+
const { moveBack, disconnectedInfraEnv } = useClusterWizardContext();
|
|
38
36
|
const opSpecs = getOperatorSpecs(() => undefined);
|
|
39
37
|
const navigate = useNavigate();
|
|
40
38
|
|
|
@@ -50,7 +48,7 @@ const ReviewStep = () => {
|
|
|
50
48
|
footer={
|
|
51
49
|
<ClusterWizardFooter
|
|
52
50
|
onNext={() => {
|
|
53
|
-
downloadUrl
|
|
51
|
+
saveAs(disconnectedInfraEnv?.downloadUrl ?? '');
|
|
54
52
|
void navigate('/cluster-list');
|
|
55
53
|
}}
|
|
56
54
|
onBack={moveBack}
|
|
@@ -98,11 +96,15 @@ const ReviewStep = () => {
|
|
|
98
96
|
<DescriptionList isHorizontal>
|
|
99
97
|
<DescriptionListGroup>
|
|
100
98
|
<DescriptionListTerm>OpenShift version</DescriptionListTerm>
|
|
101
|
-
<DescriptionListDescription>
|
|
99
|
+
<DescriptionListDescription>
|
|
100
|
+
{disconnectedInfraEnv?.openshiftVersion ?? DISCONNECTED_OPENSHIFT_VERSION}
|
|
101
|
+
</DescriptionListDescription>
|
|
102
102
|
</DescriptionListGroup>
|
|
103
103
|
<DescriptionListGroup>
|
|
104
104
|
<DescriptionListTerm>CPU architecture</DescriptionListTerm>
|
|
105
|
-
<DescriptionListDescription>
|
|
105
|
+
<DescriptionListDescription>
|
|
106
|
+
{disconnectedInfraEnv?.cpuArchitecture ?? 'x86_64'}
|
|
107
|
+
</DescriptionListDescription>
|
|
106
108
|
</DescriptionListGroup>
|
|
107
109
|
<DescriptionListGroup>
|
|
108
110
|
<DescriptionListTerm>ISO size</DescriptionListTerm>
|
|
@@ -34,6 +34,7 @@ export type ClusterWizardStepsType =
|
|
|
34
34
|
| 'custom-manifests'
|
|
35
35
|
| 'credentials-download'
|
|
36
36
|
| 'disconnected-basic'
|
|
37
|
+
| 'disconnected-optional-configurations'
|
|
37
38
|
| 'disconnected-review';
|
|
38
39
|
|
|
39
40
|
const wizardStepsOrder: ClusterWizardStepsType[] = [
|
|
@@ -52,6 +53,7 @@ const wizardStepsOrder: ClusterWizardStepsType[] = [
|
|
|
52
53
|
|
|
53
54
|
export const disconnectedSteps: ClusterWizardStepsType[] = [
|
|
54
55
|
'disconnected-basic',
|
|
56
|
+
'disconnected-optional-configurations',
|
|
55
57
|
'disconnected-review',
|
|
56
58
|
];
|
|
57
59
|
|
|
@@ -323,6 +325,7 @@ const credentialsValidationMap = buildEmptyValidationsMap();
|
|
|
323
325
|
|
|
324
326
|
const disconnectedReviewValidationsMap = buildEmptyValidationsMap();
|
|
325
327
|
const disconnectedBasicValidationsMap = buildEmptyValidationsMap();
|
|
328
|
+
const disconnectedOptionalConfigurationsValidationsMap = buildEmptyValidationsMap();
|
|
326
329
|
|
|
327
330
|
export const wizardStepsValidationsMap: WizardStepsValidationMap<ClusterWizardStepsType> = {
|
|
328
331
|
'cluster-details': clusterDetailsStepValidationsMap,
|
|
@@ -338,6 +341,7 @@ export const wizardStepsValidationsMap: WizardStepsValidationMap<ClusterWizardSt
|
|
|
338
341
|
review: reviewStepValidationsMap,
|
|
339
342
|
'disconnected-review': disconnectedReviewValidationsMap,
|
|
340
343
|
'disconnected-basic': disconnectedBasicValidationsMap,
|
|
344
|
+
'disconnected-optional-configurations': disconnectedOptionalConfigurationsValidationsMap,
|
|
341
345
|
};
|
|
342
346
|
|
|
343
347
|
export const allClusterWizardSoftValidationIds =
|
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
} from '../components/clusterConfiguration/manifestsConfiguration/data/dataTypes';
|
|
6
6
|
import type {
|
|
7
7
|
Cluster,
|
|
8
|
+
DisconnectedClusterCreateParams,
|
|
8
9
|
Host,
|
|
9
10
|
InfraEnvCreateParams,
|
|
10
11
|
UpdateManifestParams,
|
|
@@ -122,6 +123,10 @@ const ClustersService = {
|
|
|
122
123
|
return cluster;
|
|
123
124
|
},
|
|
124
125
|
|
|
126
|
+
registerDisconnected(params: DisconnectedClusterCreateParams) {
|
|
127
|
+
return ClustersAPI.registerDisconnected(params);
|
|
128
|
+
},
|
|
129
|
+
|
|
125
130
|
transformFormViewManifest(manifest: CustomManifestValues) {
|
|
126
131
|
return {
|
|
127
132
|
folder: manifest.folder,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@openshift-assisted/locales": "5.0.
|
|
4
|
-
"@openshift-assisted/types": "5.0.
|
|
3
|
+
"@openshift-assisted/locales": "5.0.2-cim",
|
|
4
|
+
"@openshift-assisted/types": "5.0.2-cim",
|
|
5
5
|
"@openshift-console/dynamic-plugin-sdk": "^4.22.0",
|
|
6
6
|
"@patternfly/patternfly": "6.4.0",
|
|
7
7
|
"@patternfly/react-code-editor": "6.4.1",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"fuse.js": "^6.4.6",
|
|
22
22
|
"human-date": "^1.4.0",
|
|
23
23
|
"humanize-plus": "^1.8.2",
|
|
24
|
-
"ip-address": "^10.
|
|
24
|
+
"ip-address": "^10.4.0",
|
|
25
25
|
"is-cidr": "^4.0.2",
|
|
26
26
|
"is-in-subnet": "^4",
|
|
27
27
|
"js-yaml": "^4.2.0",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"react-i18next": ">11.7.3",
|
|
100
100
|
"react-monaco-editor": "^0.55.0 || ^0.59.0",
|
|
101
101
|
"react-redux": "^8.0.5",
|
|
102
|
-
"react-router": "^7.
|
|
102
|
+
"react-router": "^7.18.1",
|
|
103
103
|
"redux": "^4.2.1",
|
|
104
104
|
"uuid": "^8.1",
|
|
105
105
|
"yup": "^1.4.0"
|
|
@@ -136,5 +136,5 @@
|
|
|
136
136
|
]
|
|
137
137
|
}
|
|
138
138
|
},
|
|
139
|
-
"version": "5.0.
|
|
139
|
+
"version": "5.0.2-cim"
|
|
140
140
|
}
|
package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { ClusterImageSetK8sResource } from '../../types';
|
|
3
|
-
export type ACMFeatureSupportLevelProvider = PropsWithChildren<{
|
|
4
|
-
clusterImages: ClusterImageSetK8sResource[];
|
|
5
|
-
isEditClusterFlow?: boolean;
|
|
6
|
-
}>;
|
|
7
|
-
export declare const ACMFeatureSupportLevelProvider: React.FC<ACMFeatureSupportLevelProvider>;
|
|
8
|
-
export default ACMFeatureSupportLevelProvider;
|
|
9
|
-
//# sourceMappingURL=ACMFeatureSupportLevelProvider.d.ts.map
|
package/build/@types/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ACMFeatureSupportLevelProvider.d.ts","sourceRoot":"","sources":["../../../../../lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAQjD,OAAO,EAAE,0BAA0B,EAAE,MAAM,aAAa,CAAC;AAQzD,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC7D,aAAa,EAAE,0BAA0B,EAAE,CAAC;IAC5C,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC,CAAC;AAmBH,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,8BAA8B,CA+FnF,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { FeatureId, OpenshiftVersionOptionType } from '../../../common/types';
|
|
2
|
-
import { TFunction } from 'i18next';
|
|
3
|
-
import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
|
|
4
|
-
export declare const getFeatureDisabledReason: (featureId: FeatureId, clusterExists: boolean, versionName: string, versionOptions: OpenshiftVersionOptionType[], isSupported: boolean, t: TFunction) => string | undefined;
|
|
5
|
-
export declare const isFeatureSupported: (supportLevel: SupportLevel | undefined) => supportLevel is "supported" | "tech-preview" | "dev-preview" | "unavailable" | undefined;
|
|
6
|
-
//# sourceMappingURL=featureStateUtils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"featureStateUtils.d.ts","sourceRoot":"","sources":["../../../../../lib/cim/components/featureSupportLevels/featureStateUtils.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAC9E,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AAmCpF,eAAO,MAAM,wBAAwB,GACnC,WAAW,SAAS,EACpB,eAAe,OAAO,EACtB,aAAa,MAAM,EACnB,gBAAgB,0BAA0B,EAAE,EAC5C,aAAa,OAAO,EACpB,GAAG,SAAS,KACX,MAAM,GAAG,SAYX,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAI,cAAc,YAAY,GAAG,SAAS,6FAExE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/cim/components/featureSupportLevels/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,8BAA8B,EAAE,MAAM,kCAAkC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
|
|
2
|
-
import { FeatureId } from '../../common';
|
|
3
|
-
type FeatureConfig = {
|
|
4
|
-
featureId: FeatureId;
|
|
5
|
-
supportLevel: SupportLevel;
|
|
6
|
-
};
|
|
7
|
-
type FeaturesConfig = {
|
|
8
|
-
openshiftVersion: string;
|
|
9
|
-
features: FeatureConfig[];
|
|
10
|
-
};
|
|
11
|
-
type FeatureSupportLevelsConfig = {
|
|
12
|
-
supportLevels: FeaturesConfig[];
|
|
13
|
-
};
|
|
14
|
-
export declare const featureSupportLevelsACM: FeatureSupportLevelsConfig;
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../lib/cim/config/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AACpF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;CAC5B,CAAC;AAEF,KAAK,cAAc,GAAG;IACpB,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,aAAa,EAAE,CAAC;CAC3B,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,aAAa,EAAE,cAAc,EAAE,CAAC;CACjC,CAAC;AAGF,eAAO,MAAM,uBAAuB,EAAE,0BA0QrC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FeatureId } from '../../types';
|
|
3
|
-
export type SupportLevelBadgeProps = {
|
|
4
|
-
featureId: FeatureId;
|
|
5
|
-
openshiftVersion: string | undefined;
|
|
6
|
-
};
|
|
7
|
-
declare const FeatureSupportLevelBadge: React.FC<SupportLevelBadgeProps>;
|
|
8
|
-
export default FeatureSupportLevelBadge;
|
|
9
|
-
//# sourceMappingURL=FeatureSupportLevelBadge.d.ts.map
|
package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureSupportLevelBadge.d.ts","sourceRoot":"","sources":["../../../../../lib/common/components/featureSupportLevels/FeatureSupportLevelBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAyB,MAAM,aAAa,CAAC;AAK/D,MAAM,MAAM,sBAAsB,GAAG;IACnC,SAAS,EAAE,SAAS,CAAC;IACrB,gBAAgB,EAAE,MAAM,GAAG,SAAS,CAAC;CACtC,CAAC;AAEF,QAAA,MAAM,wBAAwB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAsB9D,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TFunction } from 'i18next';
|
|
3
|
-
import { CpuArchitecture, FeatureId, FeatureIdToSupportLevel } from '../../types';
|
|
4
|
-
import { SupportLevel } from '@openshift-assisted/types/assisted-installer-service';
|
|
5
|
-
export type ActiveFeatureConfiguration = {
|
|
6
|
-
underlyingCpuArchitecture: CpuArchitecture;
|
|
7
|
-
hasStaticIpNetworking: boolean;
|
|
8
|
-
};
|
|
9
|
-
export type FeatureSupportLevelData = {
|
|
10
|
-
getVersionSupportLevelsMap(version: string): FeatureIdToSupportLevel | undefined;
|
|
11
|
-
getFeatureSupportLevel(version: string, featureId: FeatureId): SupportLevel | undefined;
|
|
12
|
-
isFeatureDisabled(version: string, featureId: FeatureId): boolean;
|
|
13
|
-
getFeatureDisabledReason(version: string, featureId: FeatureId, t?: TFunction): string | undefined;
|
|
14
|
-
isFeatureSupported(version: string, featureId: FeatureId): boolean;
|
|
15
|
-
activeFeatureConfiguration?: ActiveFeatureConfiguration;
|
|
16
|
-
};
|
|
17
|
-
export declare const FeatureSupportLevelContextProvider: React.FC<{
|
|
18
|
-
children: React.ReactNode;
|
|
19
|
-
value: FeatureSupportLevelData;
|
|
20
|
-
}>;
|
|
21
|
-
export declare const useFeatureSupportLevel: () => FeatureSupportLevelData;
|
|
22
|
-
//# sourceMappingURL=FeatureSupportLevelContext.d.ts.map
|
package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelContext.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureSupportLevelContext.d.ts","sourceRoot":"","sources":["../../../../../lib/common/components/featureSupportLevels/FeatureSupportLevelContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAC;AAEpF,MAAM,MAAM,0BAA0B,GAAG;IACvC,yBAAyB,EAAE,eAAe,CAAC;IAC3C,qBAAqB,EAAE,OAAO,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG;IACpC,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS,CAAC;IACjF,sBAAsB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,YAAY,GAAG,SAAS,CAAC;IACxF,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;IAClE,wBAAwB,CACtB,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,SAAS,EACpB,CAAC,CAAC,EAAE,SAAS,GACZ,MAAM,GAAG,SAAS,CAAC;IACtB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,GAAG,OAAO,CAAC;IACnE,0BAA0B,CAAC,EAAE,0BAA0B,CAAC;CACzD,CAAC;AAIF,eAAO,MAAM,kCAAkC,EAAE,KAAK,CAAC,EAAE,CAAC;IACxD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,uBAAuB,CAAC;CAChC,CAMA,CAAC;AAEF,eAAO,MAAM,sBAAsB,+BAUlC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../lib/common/components/featureSupportLevels/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjF,cAAc,8BAA8B,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ArchitectureSupportLevelMap, NewFeatureSupportLevelMap } from '../newFeatureSupportLevels/types';
|
|
2
|
-
export interface ArchitecturesSupportsLevel {
|
|
3
|
-
architectures: ArchitectureSupportLevelMap;
|
|
4
|
-
}
|
|
5
|
-
export interface FeaturesSupportsLevel {
|
|
6
|
-
features: NewFeatureSupportLevelMap;
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../lib/common/components/featureSupportLevels/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,yBAAyB,EAC1B,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,2BAA2B,CAAC;CAC5C;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,yBAAyB,CAAC;CACrC"}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ACMFeatureSupportLevelProvider = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
6
|
-
const common_1 = require("../../../common");
|
|
7
|
-
const constants_1 = require("../../config/constants");
|
|
8
|
-
const featureStateUtils_1 = require("./featureStateUtils");
|
|
9
|
-
const helpers_1 = require("../helpers");
|
|
10
|
-
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
11
|
-
const utils_1 = require("../../../common/utils");
|
|
12
|
-
const getFeatureSupportLevelsMap = () => {
|
|
13
|
-
try {
|
|
14
|
-
const featureSupportLevelsMap = {};
|
|
15
|
-
constants_1.featureSupportLevelsACM.supportLevels.forEach((feature) => {
|
|
16
|
-
const featureIdParams = {};
|
|
17
|
-
const featureProps = feature.features;
|
|
18
|
-
featureProps.forEach((ops) => {
|
|
19
|
-
featureIdParams[ops.featureId] = ops.supportLevel;
|
|
20
|
-
});
|
|
21
|
-
featureSupportLevelsMap[feature.openshiftVersion] = featureIdParams;
|
|
22
|
-
});
|
|
23
|
-
return featureSupportLevelsMap;
|
|
24
|
-
}
|
|
25
|
-
catch (err) {
|
|
26
|
-
// console.error(err);
|
|
27
|
-
return {};
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
const ACMFeatureSupportLevelProvider = ({ children, clusterImages, isEditClusterFlow = false, }) => {
|
|
31
|
-
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
32
|
-
const supportLevelData = react_1.default.useMemo(() => {
|
|
33
|
-
return getFeatureSupportLevelsMap();
|
|
34
|
-
}, []);
|
|
35
|
-
const ocpVersions = (0, helpers_1.getOCPVersions)(clusterImages);
|
|
36
|
-
const getNormalizedVersion = react_1.default.useCallback((versionName) => {
|
|
37
|
-
const clusterImage = clusterImages.find((clusterImageSet) => { var _a; return ((_a = clusterImageSet.metadata) === null || _a === void 0 ? void 0 : _a.name) === versionName; });
|
|
38
|
-
const version = (0, helpers_1.getVersionFromClusterImageSet)(clusterImage);
|
|
39
|
-
return (0, utils_1.getMajorMinorVersion)(version);
|
|
40
|
-
}, [clusterImages]);
|
|
41
|
-
const getVersionSupportLevelsMap = react_1.default.useCallback((versionName) => {
|
|
42
|
-
const normalized = getNormalizedVersion(versionName);
|
|
43
|
-
return normalized
|
|
44
|
-
? supportLevelData[normalized]
|
|
45
|
-
: {
|
|
46
|
-
/* empty FeatureIdToSupportLevel */
|
|
47
|
-
};
|
|
48
|
-
}, [supportLevelData, getNormalizedVersion]);
|
|
49
|
-
// TODO(mlibra): Following callbacks can be reused with the OCM flow, just based on providing an application-specific map
|
|
50
|
-
const getFeatureSupportLevel = react_1.default.useCallback((versionName, featureId) => {
|
|
51
|
-
const versionSupportLevelData = getVersionSupportLevelsMap(versionName);
|
|
52
|
-
return versionSupportLevelData ? versionSupportLevelData[featureId] : undefined;
|
|
53
|
-
}, [getVersionSupportLevelsMap]);
|
|
54
|
-
const isFeatureSupportedCallback = react_1.default.useCallback((versionName, featureId) => {
|
|
55
|
-
const supportLevel = getFeatureSupportLevel(versionName, featureId);
|
|
56
|
-
return (0, featureStateUtils_1.isFeatureSupported)(supportLevel);
|
|
57
|
-
}, [getFeatureSupportLevel]);
|
|
58
|
-
const getDisabledReasonCallback = react_1.default.useCallback((versionName, featureId) => {
|
|
59
|
-
const isSupported = isFeatureSupportedCallback(versionName, featureId);
|
|
60
|
-
return (0, featureStateUtils_1.getFeatureDisabledReason)(featureId, isEditClusterFlow, versionName, ocpVersions, isSupported, t);
|
|
61
|
-
}, [isFeatureSupportedCallback, t, ocpVersions, isEditClusterFlow]);
|
|
62
|
-
const isFeatureDisabled = react_1.default.useCallback((version, featureId) => !!getDisabledReasonCallback(version, featureId), [getDisabledReasonCallback]);
|
|
63
|
-
const providerValue = react_1.default.useMemo(() => {
|
|
64
|
-
return {
|
|
65
|
-
getVersionSupportLevelsMap,
|
|
66
|
-
getFeatureSupportLevel,
|
|
67
|
-
isFeatureDisabled,
|
|
68
|
-
getFeatureDisabledReason: getDisabledReasonCallback,
|
|
69
|
-
isFeatureSupported: isFeatureSupportedCallback,
|
|
70
|
-
};
|
|
71
|
-
}, [
|
|
72
|
-
getVersionSupportLevelsMap,
|
|
73
|
-
getFeatureSupportLevel,
|
|
74
|
-
isFeatureDisabled,
|
|
75
|
-
getDisabledReasonCallback,
|
|
76
|
-
isFeatureSupportedCallback,
|
|
77
|
-
]);
|
|
78
|
-
return (react_1.default.createElement(common_1.FeatureSupportLevelContextProvider, { value: providerValue }, children));
|
|
79
|
-
};
|
|
80
|
-
exports.ACMFeatureSupportLevelProvider = ACMFeatureSupportLevelProvider;
|
|
81
|
-
exports.default = exports.ACMFeatureSupportLevelProvider;
|
|
82
|
-
//# sourceMappingURL=ACMFeatureSupportLevelProvider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ACMFeatureSupportLevelProvider.js","sourceRoot":"","sources":["../../../../../lib/cim/components/featureSupportLevels/ACMFeatureSupportLevelProvider.tsx"],"names":[],"mappings":"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"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isFeatureSupported = exports.getFeatureDisabledReason = void 0;
|
|
4
|
-
const getClusterExistsReason = (t) => t('ai:This option is not editable after the draft cluster is created');
|
|
5
|
-
const getSNODisabledReason = (clusterExists, isSupported, t) => {
|
|
6
|
-
if (clusterExists) {
|
|
7
|
-
return getClusterExistsReason(t);
|
|
8
|
-
}
|
|
9
|
-
if (!isSupported) {
|
|
10
|
-
return t('ai:Single-Node OpenShift is not supported in this OpenShift version');
|
|
11
|
-
}
|
|
12
|
-
return undefined;
|
|
13
|
-
};
|
|
14
|
-
const getArmDisabledReason = (clusterExists, versionName, versionOptions, isSupported, t) => {
|
|
15
|
-
if (clusterExists) {
|
|
16
|
-
return getClusterExistsReason(t);
|
|
17
|
-
}
|
|
18
|
-
if (!isSupported) {
|
|
19
|
-
return t('ai:arm64 is not supported in this OpenShift version');
|
|
20
|
-
}
|
|
21
|
-
// TODO(jtomasek): versionOptions derived from clusterimagesets need to include cpuArchitectures array to correctly determine this
|
|
22
|
-
// if (!isArmSupportedByTheImage(versionName, versionOptions)) {
|
|
23
|
-
// return t('ai:Selected image does not support arm64');
|
|
24
|
-
// }
|
|
25
|
-
return undefined;
|
|
26
|
-
};
|
|
27
|
-
const getFeatureDisabledReason = (featureId, clusterExists, versionName, versionOptions, isSupported, t) => {
|
|
28
|
-
switch (featureId) {
|
|
29
|
-
case 'SNO': {
|
|
30
|
-
return getSNODisabledReason(clusterExists, isSupported, t);
|
|
31
|
-
}
|
|
32
|
-
case 'ARM64_ARCHITECTURE': {
|
|
33
|
-
return getArmDisabledReason(clusterExists, versionName, versionOptions, isSupported, t);
|
|
34
|
-
}
|
|
35
|
-
default: {
|
|
36
|
-
return undefined;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
};
|
|
40
|
-
exports.getFeatureDisabledReason = getFeatureDisabledReason;
|
|
41
|
-
const isFeatureSupported = (supportLevel) => {
|
|
42
|
-
return supportLevel !== 'unsupported';
|
|
43
|
-
};
|
|
44
|
-
exports.isFeatureSupported = isFeatureSupported;
|
|
45
|
-
//# sourceMappingURL=featureStateUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"featureStateUtils.js","sourceRoot":"","sources":["../../../../../lib/cim/components/featureSupportLevels/featureStateUtils.tsx"],"names":[],"mappings":";;;AAIA,MAAM,sBAAsB,GAAG,CAAC,CAAY,EAAE,EAAE,CAC9C,CAAC,CAAC,mEAAmE,CAAC,CAAC;AAEzE,MAAM,oBAAoB,GAAG,CAAC,aAAsB,EAAE,WAAoB,EAAE,CAAY,EAAE,EAAE;IAC1F,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC;IACD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,CAAC,CAAC,qEAAqE,CAAC,CAAC;IAClF,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEF,MAAM,oBAAoB,GAAG,CAC3B,aAAsB,EACtB,WAAmB,EACnB,cAA4C,EAC5C,WAAoB,EACpB,CAAY,EACZ,EAAE;IACF,IAAI,aAAa,EAAE,CAAC;QAClB,OAAO,sBAAsB,CAAC,CAAC,CAAC,CAAC;IACnC,CAAC;IACD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,CAAC,CAAC,qDAAqD,CAAC,CAAC;IAClE,CAAC;IACD,kIAAkI;IAClI,gEAAgE;IAChE,0DAA0D;IAC1D,IAAI;IACJ,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAEK,MAAM,wBAAwB,GAAG,CACtC,SAAoB,EACpB,aAAsB,EACtB,WAAmB,EACnB,cAA4C,EAC5C,WAAoB,EACpB,CAAY,EACQ,EAAE;IACtB,QAAQ,SAAS,EAAE,CAAC;QAClB,KAAK,KAAK,CAAC,CAAC,CAAC;YACX,OAAO,oBAAoB,CAAC,aAAa,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;QAC7D,CAAC;QACD,KAAK,oBAAoB,CAAC,CAAC,CAAC;YAC1B,OAAO,oBAAoB,CAAC,aAAa,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;QAC1F,CAAC;QACD,OAAO,CAAC,CAAC,CAAC;YACR,OAAO,SAAS,CAAC;QACnB,CAAC;IACH,CAAC;AACH,CAAC,CAAC;AAnBW,QAAA,wBAAwB,4BAmBnC;AAEK,MAAM,kBAAkB,GAAG,CAAC,YAAsC,EAAE,EAAE;IAC3E,OAAO,YAAY,KAAK,aAAa,CAAC;AACxC,CAAC,CAAC;AAFW,QAAA,kBAAkB,sBAE7B"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ACMFeatureSupportLevelProvider = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
var ACMFeatureSupportLevelProvider_1 = require("./ACMFeatureSupportLevelProvider");
|
|
6
|
-
Object.defineProperty(exports, "ACMFeatureSupportLevelProvider", { enumerable: true, get: function () { return tslib_1.__importDefault(ACMFeatureSupportLevelProvider_1).default; } });
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/cim/components/featureSupportLevels/index.ts"],"names":[],"mappings":";;;;AAAA,mFAA6F;AAApF,yKAAA,OAAO,OAAkC"}
|