@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
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
FormGroup,
|
|
4
|
-
Tooltip,
|
|
5
4
|
Dropdown,
|
|
6
5
|
DropdownItem,
|
|
7
6
|
MenuToggle,
|
|
@@ -63,22 +62,21 @@ const ControlPlaneNodesDropdown = ({
|
|
|
63
62
|
}
|
|
64
63
|
}, [allowHighlyAvailable, selectedValue, setValue]);
|
|
65
64
|
|
|
65
|
+
const disabledReason = t('ai:This option is not available with the selected OpenShift version');
|
|
66
66
|
const dropdownItems = options.map(({ value, label }) => {
|
|
67
67
|
const isEnabled = isItemEnabled(value, allowHighlyAvailable, allowTNA);
|
|
68
68
|
|
|
69
|
-
const disabledReason = t('ai:This option is not available with the selected OpenShift version');
|
|
70
69
|
return (
|
|
71
70
|
<DropdownItem
|
|
72
71
|
key={value}
|
|
73
72
|
id={value.toString()}
|
|
74
|
-
isAriaDisabled={!
|
|
75
|
-
|
|
73
|
+
isAriaDisabled={!isEnabled}
|
|
74
|
+
disabled={!isEnabled}
|
|
76
75
|
selected={selectedValue === value}
|
|
77
76
|
value={value}
|
|
77
|
+
tooltipProps={{ hidden: isEnabled, content: disabledReason, position: 'top' }}
|
|
78
78
|
>
|
|
79
|
-
|
|
80
|
-
<div>{label}</div>
|
|
81
|
-
</Tooltip>
|
|
79
|
+
{label}
|
|
82
80
|
</DropdownItem>
|
|
83
81
|
);
|
|
84
82
|
});
|
|
@@ -46,7 +46,9 @@ export const StaticIPInfo = ({ docVersion }: { docVersion?: string }) => {
|
|
|
46
46
|
icon={<ExternalLinkAltIcon />}
|
|
47
47
|
iconPosition="right"
|
|
48
48
|
isInline
|
|
49
|
-
onClick={() =>
|
|
49
|
+
onClick={() =>
|
|
50
|
+
window.open(getOCPStaticIPDocLink(docVersion), '_blank', 'noopener,noreferrer')
|
|
51
|
+
}
|
|
50
52
|
>
|
|
51
53
|
{t('ai:View documentation')}
|
|
52
54
|
</Button>
|
|
@@ -45,7 +45,7 @@ const DownloadIso = ({
|
|
|
45
45
|
|
|
46
46
|
const openCiscoIntersightHostsLink = (downloadUrl: string) => {
|
|
47
47
|
updateTagsForCiscoIntersight ? updateTagsForCiscoIntersight() : '';
|
|
48
|
-
window.open(getCiscoIntersightLink(downloadUrl, ciscoUrl), '_blank', 'noopener');
|
|
48
|
+
window.open(getCiscoIntersightLink(downloadUrl, ciscoUrl), '_blank', 'noopener,noreferrer');
|
|
49
49
|
};
|
|
50
50
|
|
|
51
51
|
return (
|
|
@@ -138,7 +138,7 @@ export const ConsoleModal: React.FC<ConsoleModalProps> = ({
|
|
|
138
138
|
type="submit"
|
|
139
139
|
key="launch"
|
|
140
140
|
variant={ButtonVariant.primary}
|
|
141
|
-
onClick={() => window.open(consoleUrl, '_blank', 'noopener')}
|
|
141
|
+
onClick={() => window.open(consoleUrl, '_blank', 'noopener,noreferrer')}
|
|
142
142
|
isDisabled={!consoleUrl}
|
|
143
143
|
>
|
|
144
144
|
{t('ai:Launch OpenShift Console')}
|
|
@@ -63,13 +63,26 @@ export const findValidationFixStep = <ClusterWizardStepsType extends string>(
|
|
|
63
63
|
wizardStepsValidationsMap: WizardStepsValidationMap<ClusterWizardStepsType>,
|
|
64
64
|
): ClusterWizardStepsType | undefined => {
|
|
65
65
|
const keys = lodashKeys(wizardStepsValidationsMap) as ClusterWizardStepsType[];
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
|
|
67
|
+
// find the step based on the validationId first
|
|
68
|
+
const validationStep = keys.find((key) => {
|
|
68
69
|
const { cluster: clusterValidationMap, host: hostValidationMap } =
|
|
69
70
|
wizardStepsValidationsMap[key];
|
|
70
71
|
return (
|
|
71
72
|
clusterValidationMap.validationIds.includes(validationId as ClusterValidationId) ||
|
|
72
|
-
hostValidationMap.validationIds.includes(validationId as HostValidationId)
|
|
73
|
+
hostValidationMap.validationIds.includes(validationId as HostValidationId)
|
|
74
|
+
);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
if (validationStep) {
|
|
78
|
+
return validationStep;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
// find the step based on the cluster/host validation group as a backup
|
|
82
|
+
return keys.find((key) => {
|
|
83
|
+
const { cluster: clusterValidationMap, host: hostValidationMap } =
|
|
84
|
+
wizardStepsValidationsMap[key];
|
|
85
|
+
return (
|
|
73
86
|
(clusterGroup && clusterValidationMap.groups.includes(clusterGroup)) ||
|
|
74
87
|
(hostGroup && hostValidationMap.groups.includes(hostGroup))
|
|
75
88
|
);
|
|
@@ -53,11 +53,8 @@ import {
|
|
|
53
53
|
NODE_HEALTHCHECK_LINK,
|
|
54
54
|
NODE_MAINTENANCE_LINK,
|
|
55
55
|
ODF_LINK,
|
|
56
|
-
ODF_REQUIREMENTS_LINK,
|
|
57
56
|
OPENSHIFT_AI_LINK,
|
|
58
|
-
OPENSHIFT_AI_REQUIREMENTS_LINK,
|
|
59
57
|
OSC_LINK,
|
|
60
|
-
OSC_REQUIREMENTS_LINK,
|
|
61
58
|
PIPELINES_OPERATOR_LINK,
|
|
62
59
|
SERVERLESS_OPERATOR_LINK,
|
|
63
60
|
SERVICE_MESH_OPERATOR_LINK,
|
|
@@ -183,11 +180,6 @@ export const getOperatorSpecs = (
|
|
|
183
180
|
title: 'OpenShift Data Foundation',
|
|
184
181
|
featureId: 'ODF',
|
|
185
182
|
descriptionText: DESCRIPTION_ODF,
|
|
186
|
-
Requirements: () => (
|
|
187
|
-
<ExternalLink href={ODF_REQUIREMENTS_LINK}>
|
|
188
|
-
Learn more about the requirements for OpenShift Data Foundation
|
|
189
|
-
</ExternalLink>
|
|
190
|
-
),
|
|
191
183
|
Description: ({ searchTerm }) => (
|
|
192
184
|
<>
|
|
193
185
|
<HighlightedText text={DESCRIPTION_ODF} searchTerm={searchTerm} />{' '}
|
|
@@ -246,11 +238,6 @@ export const getOperatorSpecs = (
|
|
|
246
238
|
title: 'OpenShift sandboxed containers',
|
|
247
239
|
featureId: 'OSC',
|
|
248
240
|
descriptionText: DESCRIPTION_OSC,
|
|
249
|
-
Requirements: () => (
|
|
250
|
-
<ExternalLink href={OSC_REQUIREMENTS_LINK}>
|
|
251
|
-
Learn more about the requirements for OpenShift sandboxed containers
|
|
252
|
-
</ExternalLink>
|
|
253
|
-
),
|
|
254
241
|
Description: ({ searchTerm }) => (
|
|
255
242
|
<>
|
|
256
243
|
<HighlightedText text={DESCRIPTION_OSC} searchTerm={searchTerm} />{' '}
|
|
@@ -266,9 +253,6 @@ export const getOperatorSpecs = (
|
|
|
266
253
|
title: 'OpenShift AI',
|
|
267
254
|
featureId: 'OPENSHIFT_AI',
|
|
268
255
|
descriptionText: DESCRIPTION_OPENSHIFT_AI,
|
|
269
|
-
Requirements: () => (
|
|
270
|
-
<ExternalLink href={OPENSHIFT_AI_REQUIREMENTS_LINK}>Learn more</ExternalLink>
|
|
271
|
-
),
|
|
272
256
|
Description: ({ searchTerm }) => (
|
|
273
257
|
<>
|
|
274
258
|
<HighlightedText text={DESCRIPTION_OPENSHIFT_AI} searchTerm={searchTerm} />{' '}
|
|
@@ -65,7 +65,10 @@ const GetPullSecretHelperText: React.FC<{ isOcm: boolean }> = ({ isOcm }) => {
|
|
|
65
65
|
);
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
const PullSecretField: React.FC<{ isOcm: boolean }> = ({
|
|
68
|
+
const PullSecretField: React.FC<{ isOcm: boolean; isRequired?: boolean }> = ({
|
|
69
|
+
isOcm,
|
|
70
|
+
isRequired = true,
|
|
71
|
+
}) => {
|
|
69
72
|
const { t } = useTranslation();
|
|
70
73
|
return (
|
|
71
74
|
<TextAreaField
|
|
@@ -75,7 +78,7 @@ const PullSecretField: React.FC<{ isOcm: boolean }> = ({ isOcm }) => {
|
|
|
75
78
|
getErrorText={(error) => error}
|
|
76
79
|
helperText={<GetPullSecretHelperText isOcm={isOcm} />}
|
|
77
80
|
rows={10}
|
|
78
|
-
isRequired
|
|
81
|
+
isRequired={isRequired}
|
|
79
82
|
/>
|
|
80
83
|
);
|
|
81
84
|
};
|
|
@@ -38,6 +38,7 @@ const SelectFieldWithSearch = ({
|
|
|
38
38
|
isLoading = false,
|
|
39
39
|
placeholder,
|
|
40
40
|
helperText,
|
|
41
|
+
onClear,
|
|
41
42
|
}: {
|
|
42
43
|
selectOptions: (SelectOptionProps & { showDivider?: boolean })[];
|
|
43
44
|
filterValue: string;
|
|
@@ -46,6 +47,7 @@ const SelectFieldWithSearch = ({
|
|
|
46
47
|
isLoading?: boolean;
|
|
47
48
|
placeholder?: string;
|
|
48
49
|
helperText?: React.ReactNode;
|
|
50
|
+
onClear?: VoidFunction;
|
|
49
51
|
} & FieldProps) => {
|
|
50
52
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
51
53
|
const [{ value }, , { setValue }] = useField<unknown | unknown[]>(name);
|
|
@@ -185,6 +187,7 @@ const SelectFieldWithSearch = ({
|
|
|
185
187
|
|
|
186
188
|
const onClearButtonClick = () => {
|
|
187
189
|
setFilterValue('');
|
|
190
|
+
onClear?.();
|
|
188
191
|
resetActiveAndFocusedItem();
|
|
189
192
|
textInputRef?.current?.focus();
|
|
190
193
|
};
|
|
@@ -118,7 +118,7 @@ export const getMceDocsLink = (ocpVersion?: string) =>
|
|
|
118
118
|
export const getLvmsDocsLink = (ocpVersion?: string) =>
|
|
119
119
|
`https://docs.redhat.com/en/documentation/openshift_container_platform/${getDocsOpenshiftVersion(
|
|
120
120
|
ocpVersion,
|
|
121
|
-
)}/html/storage/
|
|
121
|
+
)}/html-single/storage/index#persistent-storage-using-lvms`;
|
|
122
122
|
|
|
123
123
|
export const NODE_HEALTHCHECK_LINK =
|
|
124
124
|
'https://docs.redhat.com/en/documentation/workload_availability_for_red_hat_openshift/latest/html/remediation_fencing_and_maintenance/node-health-check-operator';
|
|
@@ -150,10 +150,11 @@ export const CHANGE_ISO_PASSWORD_FILE_LINK =
|
|
|
150
150
|
'https://raw.githubusercontent.com/openshift/assisted-service/master/docs/change-iso-password.sh';
|
|
151
151
|
|
|
152
152
|
export const getCiscoIntersightLink = (downloadIsoUrl: string, ciscoUrl?: string) => {
|
|
153
|
+
const isoUrl = encodeURIComponent(downloadIsoUrl);
|
|
153
154
|
if (ciscoUrl) {
|
|
154
|
-
return `${ciscoUrl}?_workflow_Version=1&IsoUrl=${
|
|
155
|
+
return `${ciscoUrl}?_workflow_Version=1&IsoUrl=${isoUrl}`;
|
|
155
156
|
}
|
|
156
|
-
return `https://www.intersight.com/an/workflow/workflow-definitions/execute/AddServersFromISO?_workflow_Version=1&IsoUrl=${
|
|
157
|
+
return `https://www.intersight.com/an/workflow/workflow-definitions/execute/AddServersFromISO?_workflow_Version=1&IsoUrl=${isoUrl}`;
|
|
157
158
|
};
|
|
158
159
|
|
|
159
160
|
export const MTV_LINK =
|
|
@@ -228,7 +229,7 @@ export const getClusterObservabilityLink = (ocpVersion?: string) =>
|
|
|
228
229
|
export const getLokiLink = (ocpVersion?: string) =>
|
|
229
230
|
`https://docs.redhat.com/en/documentation/openshift_container_platform/${getDocsOpenshiftVersion(
|
|
230
231
|
ocpVersion,
|
|
231
|
-
)}/html/network_observability/network-observability-
|
|
232
|
+
)}/html/network_observability/installing-network-observability-operators#network-observability-loki-installation_network_observability`;
|
|
232
233
|
|
|
233
234
|
export const getOpenShiftLoggingLink = (ocpVersion?: string) =>
|
|
234
235
|
`https://docs.redhat.com/en/documentation/openshift_container_platform/${getDocsOpenshiftVersion(
|
|
@@ -73,4 +73,4 @@ export const SupportedPlatformIntegrations: SupportedPlatformType[] = [
|
|
|
73
73
|
];
|
|
74
74
|
export const NonPlatformIntegrations: PlatformType[] = ['baremetal', 'none'];
|
|
75
75
|
|
|
76
|
-
export type DiscoveryImageType = ImageType | 'discovery-image-ipxe';
|
|
76
|
+
export type DiscoveryImageType = Exclude<ImageType, 'disconnected-iso'> | 'discovery-image-ipxe';
|
package/lib/common/utils.ts
CHANGED
|
@@ -90,6 +90,9 @@ export const stringToJSON = <T>(jsonString: string | undefined): T | undefined =
|
|
|
90
90
|
export const downloadFile = (fileUrl?: string, dataBlob?: Blob, fileName?: string) => {
|
|
91
91
|
const link = document.createElement('a');
|
|
92
92
|
if (fileUrl && fileUrl !== '') {
|
|
93
|
+
if (!/^(https?|blob):/i.test(fileUrl)) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
93
96
|
link.setAttribute('href', fileUrl);
|
|
94
97
|
}
|
|
95
98
|
if (dataBlob) {
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
NewFeatureSupportLevelMap,
|
|
3
|
+
OcmCpuArchitecture,
|
|
4
|
+
SupportedCpuArchitecture,
|
|
5
|
+
} from '../../../common';
|
|
2
6
|
import { HostsNetworkConfigurationType } from '../../services';
|
|
3
|
-
import { FeaturesSupportsLevel } from '../../../common/components/featureSupportLevels/types';
|
|
4
7
|
import { Cluster } from '@openshift-assisted/types/assisted-installer-service';
|
|
5
8
|
|
|
6
9
|
/* The type is reverse engineered.
|
|
@@ -50,7 +53,7 @@ export type OcmClusterType = {
|
|
|
50
53
|
};
|
|
51
54
|
|
|
52
55
|
aiCluster?: Cluster;
|
|
53
|
-
aiSupportLevels?:
|
|
56
|
+
aiSupportLevels?: { features: NewFeatureSupportLevelMap };
|
|
54
57
|
};
|
|
55
58
|
|
|
56
59
|
export type Day2ClusterDetailValues = {
|
|
@@ -106,7 +106,7 @@ export const OcmDiscoveryImageConfigForm = ({
|
|
|
106
106
|
httpsProxy: httpsProxy || '',
|
|
107
107
|
noProxy: noProxy || '',
|
|
108
108
|
enableProxy: !!(httpProxy || httpsProxy || noProxy),
|
|
109
|
-
imageType: imageTypeValue as
|
|
109
|
+
imageType: imageTypeValue as DiscoveryImageType,
|
|
110
110
|
enableCertificate: enableCertificate || false,
|
|
111
111
|
trustBundle: trustBundle || '',
|
|
112
112
|
};
|
|
@@ -155,7 +155,7 @@ export const OcmDiscoveryImageConfigForm = ({
|
|
|
155
155
|
<Form>
|
|
156
156
|
<DiscoveryImageTypeDropdown
|
|
157
157
|
name="imageType"
|
|
158
|
-
defaultValue={discoveryImageTypes[imageTypeValue]}
|
|
158
|
+
defaultValue={discoveryImageTypes[imageTypeValue as DiscoveryImageType]}
|
|
159
159
|
onChange={updateDiscoveryButtonAndAlertText}
|
|
160
160
|
selectedCpuArchitecture={selectedCpuArchitecture}
|
|
161
161
|
isDisabled={isOracleCloudInfrastructure}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Yup from 'yup';
|
|
2
2
|
import { TFunction } from 'i18next';
|
|
3
|
-
import { CustomManifestValues
|
|
3
|
+
import { CustomManifestValues } from '../data/dataTypes';
|
|
4
4
|
import {
|
|
5
5
|
getMaxFileSizeMessage,
|
|
6
6
|
validateFileSize,
|
|
@@ -62,7 +62,7 @@ const INCORRECT_FILENAME =
|
|
|
62
62
|
const UNIQUE_FOLDER_FILENAME = 'Ensure unique file names to avoid conflicts and errors.';
|
|
63
63
|
|
|
64
64
|
export const getFormViewManifestsValidationSchema = (t: TFunction) =>
|
|
65
|
-
Yup.object
|
|
65
|
+
Yup.object({
|
|
66
66
|
manifests: Yup.array<CustomManifestValues>()
|
|
67
67
|
.of(
|
|
68
68
|
Yup.object({
|
package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx
CHANGED
|
@@ -155,7 +155,7 @@ export const ExternalPlatformDropdown = ({
|
|
|
155
155
|
|
|
156
156
|
const handleClick = (event: MouseEvent<HTMLButtonElement>, href: string): void => {
|
|
157
157
|
event.stopPropagation(); // Stop event propagation here
|
|
158
|
-
window.open(href, '_blank');
|
|
158
|
+
window.open(href, '_blank', 'noopener,noreferrer');
|
|
159
159
|
};
|
|
160
160
|
|
|
161
161
|
const { getFeatureSupportLevel, getFeatureDisabledReason } = useNewFeatureSupportLevel();
|
|
@@ -42,7 +42,7 @@ const ClusterInstallationError: React.FC<ClusterInstallationErrorProps> = ({
|
|
|
42
42
|
Download Installation Logs
|
|
43
43
|
</AlertActionLink>
|
|
44
44
|
<AlertActionLink
|
|
45
|
-
onClick={() => window.open(getReportIssueLink(), '_blank')}
|
|
45
|
+
onClick={() => window.open(getReportIssueLink(), '_blank', 'noopener,noreferrer')}
|
|
46
46
|
id={getID('button-report-bug')}
|
|
47
47
|
>
|
|
48
48
|
Report a bug
|
|
@@ -157,7 +157,7 @@ export const HostsInstallationFailed = ({
|
|
|
157
157
|
Download installation logs
|
|
158
158
|
</AlertActionLink>
|
|
159
159
|
<AlertActionLink
|
|
160
|
-
onClick={() => window.open(getReportIssueLink(), '_blank')}
|
|
160
|
+
onClick={() => window.open(getReportIssueLink(), '_blank', 'noopener,noreferrer')}
|
|
161
161
|
id={getID('button-report-bug')}
|
|
162
162
|
>
|
|
163
163
|
Report a bug
|
|
@@ -3,6 +3,7 @@ import { HostsNetworkConfigurationType } from '../../services';
|
|
|
3
3
|
import { StaticIpView } from '../clusterConfiguration/staticIp/data/dataTypes';
|
|
4
4
|
import { ClusterWizardStepsType } from './wizardTransition';
|
|
5
5
|
import { UISettingsValues } from '../../../common';
|
|
6
|
+
import { Cluster, InfraEnv } from '@openshift-assisted/types/assisted-installer-service';
|
|
6
7
|
|
|
7
8
|
export type ClusterWizardContextType = {
|
|
8
9
|
currentStepId: ClusterWizardStepsType;
|
|
@@ -18,6 +19,10 @@ export type ClusterWizardContextType = {
|
|
|
18
19
|
uiSettings?: UISettingsValues;
|
|
19
20
|
installDisconnected: boolean;
|
|
20
21
|
setInstallDisconnected: (enabled: boolean) => void;
|
|
22
|
+
disconnectedCluster?: Cluster;
|
|
23
|
+
setDisconnectedCluster: (cluster: Cluster | undefined) => void;
|
|
24
|
+
disconnectedInfraEnv?: InfraEnv;
|
|
25
|
+
setDisconnectedInfraEnv: (infraEnv: InfraEnv | undefined) => void;
|
|
21
26
|
};
|
|
22
27
|
|
|
23
28
|
export const ClusterWizardContext = React.createContext<ClusterWizardContextType | null>(null);
|
|
@@ -88,6 +88,8 @@ const ClusterWizardContextProvider = ({
|
|
|
88
88
|
const [connectedWizardStepIds, setWizardStepIds] = React.useState<ClusterWizardStepsType[]>();
|
|
89
89
|
const [wizardPerPage, setWizardPerPage] = React.useState(10);
|
|
90
90
|
const [installDisconnected, setInstallDisconnected] = React.useState(false);
|
|
91
|
+
const [disconnectedCluster, setDisconnectedCluster] = React.useState<Cluster | undefined>();
|
|
92
|
+
const [disconnectedInfraEnv, setDisconnectedInfraEnv] = React.useState<InfraEnv | undefined>();
|
|
91
93
|
const location = useLocation();
|
|
92
94
|
const locationState = location.state as ClusterWizardFlowStateType | undefined;
|
|
93
95
|
const {
|
|
@@ -228,6 +230,10 @@ const ClusterWizardContextProvider = ({
|
|
|
228
230
|
connectedWizardStepIds?.length && onSetCurrentStepId(connectedWizardStepIds[0]);
|
|
229
231
|
}
|
|
230
232
|
},
|
|
233
|
+
disconnectedCluster,
|
|
234
|
+
setDisconnectedCluster,
|
|
235
|
+
disconnectedInfraEnv,
|
|
236
|
+
setDisconnectedInfraEnv,
|
|
231
237
|
};
|
|
232
238
|
}, [
|
|
233
239
|
wizardStepIds,
|
|
@@ -240,6 +246,9 @@ const ClusterWizardContextProvider = ({
|
|
|
240
246
|
updateUISettings,
|
|
241
247
|
installDisconnected,
|
|
242
248
|
connectedWizardStepIds,
|
|
249
|
+
disconnectedCluster,
|
|
250
|
+
disconnectedInfraEnv,
|
|
251
|
+
setDisconnectedInfraEnv,
|
|
243
252
|
]);
|
|
244
253
|
|
|
245
254
|
if (!contextValue) {
|
|
@@ -4,6 +4,7 @@ import ClusterDetails from './ClusterDetails';
|
|
|
4
4
|
import { useClusterWizardContext } from './ClusterWizardContext';
|
|
5
5
|
import ReviewStep from './disconnected/ReviewStep';
|
|
6
6
|
import BasicStep from './disconnected/BasicStep';
|
|
7
|
+
import OptionalConfigurationsStep from './disconnected/OptionalConfigurationsStep';
|
|
7
8
|
import { ClusterWizardStepsType } from './wizardTransition';
|
|
8
9
|
import { useInfraEnv } from '../../hooks';
|
|
9
10
|
import { CpuArchitecture } from '../../../common/types';
|
|
@@ -13,6 +14,8 @@ const getCurrentStep = (currentStepId: ClusterWizardStepsType, infraEnv?: InfraE
|
|
|
13
14
|
switch (currentStepId) {
|
|
14
15
|
case 'disconnected-review':
|
|
15
16
|
return <ReviewStep />;
|
|
17
|
+
case 'disconnected-optional-configurations':
|
|
18
|
+
return <OptionalConfigurationsStep />;
|
|
16
19
|
case 'disconnected-basic':
|
|
17
20
|
return <BasicStep />;
|
|
18
21
|
default:
|
|
@@ -14,6 +14,7 @@ export const wizardStepNames: { [key in ClusterWizardStepsType]: string } = {
|
|
|
14
14
|
'credentials-download': 'Download credentials',
|
|
15
15
|
'disconnected-review': 'Review and download ISO',
|
|
16
16
|
'disconnected-basic': 'Basic information',
|
|
17
|
+
'disconnected-optional-configurations': 'Optional configurations',
|
|
17
18
|
};
|
|
18
19
|
|
|
19
20
|
export const defaultWizardSteps: ClusterWizardStepsType[] = [
|
|
@@ -1,68 +1,47 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
ClusterWizardStep,
|
|
4
|
-
TechnologyPreview,
|
|
5
|
-
ExternalLink,
|
|
6
|
-
OCP_RELEASES_PAGE,
|
|
7
|
-
StaticTextField,
|
|
8
|
-
useTranslation,
|
|
9
|
-
} from '../../../../common';
|
|
2
|
+
import { ClusterWizardStep, TechnologyPreview, StaticTextField } from '../../../../common';
|
|
10
3
|
import { Flex, Grid, GridItem, Form, Content } from '@patternfly/react-core';
|
|
11
|
-
import OcmOpenShiftVersion from '../../clusterConfiguration/OcmOpenShiftVersion';
|
|
12
4
|
import { useClusterWizardContext } from '../ClusterWizardContext';
|
|
13
5
|
import ClusterWizardFooter from '../ClusterWizardFooter';
|
|
14
6
|
import ClusterWizardNavigation from '../ClusterWizardNavigation';
|
|
15
7
|
import { WithErrorBoundary } from '../../../../common/components/ErrorHandling/WithErrorBoundary';
|
|
16
8
|
import InstallDisconnectedSwitch from './InstallDisconnectedSwitch';
|
|
17
|
-
|
|
9
|
+
|
|
10
|
+
export const DISCONNECTED_OPENSHIFT_VERSION = '4.21';
|
|
18
11
|
|
|
19
12
|
const BasicStep = () => {
|
|
20
|
-
const { t } = useTranslation();
|
|
21
13
|
const { moveNext } = useClusterWizardContext();
|
|
22
14
|
|
|
23
15
|
return (
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
// nothing to do
|
|
28
|
-
}}
|
|
16
|
+
<ClusterWizardStep
|
|
17
|
+
navigation={<ClusterWizardNavigation />}
|
|
18
|
+
footer={<ClusterWizardFooter onNext={moveNext} />}
|
|
29
19
|
>
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<
|
|
36
|
-
<
|
|
37
|
-
<
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
</
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
</ExternalLink>
|
|
56
|
-
</OcmOpenShiftVersion>
|
|
57
|
-
<StaticTextField name="cpuArchitecture" label="CPU architecture" isRequired>
|
|
58
|
-
x86_64
|
|
59
|
-
</StaticTextField>
|
|
60
|
-
</Form>
|
|
61
|
-
</GridItem>
|
|
62
|
-
</Grid>
|
|
63
|
-
</WithErrorBoundary>
|
|
64
|
-
</ClusterWizardStep>
|
|
65
|
-
</Formik>
|
|
20
|
+
<WithErrorBoundary title="Failed to load Basic step">
|
|
21
|
+
<Grid hasGutter>
|
|
22
|
+
<GridItem>
|
|
23
|
+
<Content component="h2">Basic information</Content>
|
|
24
|
+
</GridItem>
|
|
25
|
+
<GridItem>
|
|
26
|
+
<Flex alignItems={{ default: 'alignItemsCenter' }} gap={{ default: 'gapSm' }}>
|
|
27
|
+
<TechnologyPreview />
|
|
28
|
+
<InstallDisconnectedSwitch />
|
|
29
|
+
<span>I'm installing on a disconnected/air-gapped/secured environment</span>
|
|
30
|
+
</Flex>
|
|
31
|
+
</GridItem>
|
|
32
|
+
<GridItem>
|
|
33
|
+
<Form id="wizard-cluster-basic-info__form">
|
|
34
|
+
<StaticTextField name="openshiftVersion" label="OpenShift version">
|
|
35
|
+
{DISCONNECTED_OPENSHIFT_VERSION}
|
|
36
|
+
</StaticTextField>
|
|
37
|
+
<StaticTextField name="cpuArchitecture" label="CPU architecture">
|
|
38
|
+
x86_64
|
|
39
|
+
</StaticTextField>
|
|
40
|
+
</Form>
|
|
41
|
+
</GridItem>
|
|
42
|
+
</Grid>
|
|
43
|
+
</WithErrorBoundary>
|
|
44
|
+
</ClusterWizardStep>
|
|
66
45
|
);
|
|
67
46
|
};
|
|
68
47
|
|