@openshift-assisted/ui-lib 2.48.5 → 2.49.0
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/Agent/tableUtils.d.ts +4 -1
- package/build/@types/cim/components/Agent/tableUtils.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentWizard.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/{ACMClusterDeploymentDetailsStep.d.ts → clusterDetails/ACMClusterDeploymentDetailsStep.d.ts} +5 -5
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentDetailsForm.d.ts → clusterDetails/ClusterDeploymentDetailsForm.d.ts} +4 -4
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentDetailsStep.d.ts → clusterDetails/ClusterDeploymentDetailsStep.d.ts} +5 -5
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDetailsFormFields.d.ts → clusterDetails/ClusterDetailsFormFields.d.ts} +1 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/index.d.ts +5 -0
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/components/AdditionalNTPSourcesDialogToggle.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/components/index.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/components/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/constants.d.ts +1 -0
- package/build/@types/cim/components/ClusterDeployment/constants.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.d.ts +6 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.d.ts +10 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapForm.d.ts +12 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/ConfigMapForm.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/index.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/customManifests/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostDiscoveryTable.d.ts → hostDiscovery/ClusterDeploymentHostDiscoveryTable.d.ts} +1 -1
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostsDiscovery.d.ts → hostDiscovery/ClusterDeploymentHostsDiscovery.d.ts} +1 -1
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscovery.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.d.ts +4 -0
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/index.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostSelectionStep.d.ts → hostSelection/ClusterDeploymentHostSelectionStep.d.ts} +4 -4
- package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelection.d.ts → hostSelection/ClusterDeploymentHostsSelection.d.ts} +1 -1
- package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelection.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionAdvanced.d.ts → hostSelection/ClusterDeploymentHostsSelectionAdvanced.d.ts} +6 -6
- package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionAdvanced.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionBasic.d.ts → hostSelection/ClusterDeploymentHostsSelectionBasic.d.ts} +1 -1
- package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionBasic.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/hostSelection/index.d.ts +3 -0
- package/build/@types/cim/components/ClusterDeployment/hostSelection/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/index.d.ts +2 -2
- package/build/@types/cim/components/ClusterDeployment/index.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentHostsNetworkTable.d.ts → networking/ClusterDeploymentHostsNetworkTable.d.ts} +2 -2
- package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingForm.d.ts → networking/ClusterDeploymentNetworkingForm.d.ts} +2 -4
- package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingStep.d.ts → networking/ClusterDeploymentNetworkingStep.d.ts} +4 -4
- package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/networking/index.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/networking/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/{ClusterDeploymentReviewStep.d.ts → review/ClusterDeploymentReviewStep.d.ts} +3 -3
- package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.d.ts +6 -0
- package/build/@types/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/review/index.d.ts +2 -0
- package/build/@types/cim/components/ClusterDeployment/review/index.d.ts.map +1 -0
- package/build/@types/cim/components/ClusterDeployment/types.d.ts +2 -1
- package/build/@types/cim/components/ClusterDeployment/types.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/wizardTransition.d.ts +1 -1
- 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/types.d.ts +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraTableToolbar.d.ts +5 -0
- package/build/@types/cim/components/InfraEnv/InfraTableToolbar.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agentClusterInstall.d.ts +1 -0
- package/build/@types/cim/components/helpers/agentClusterInstall.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agents.d.ts +1 -1
- package/build/@types/cim/components/helpers/agents.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.map +1 -1
- package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationFormFields.d.ts +4 -0
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationFormFields.d.ts.map +1 -0
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts +0 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts +4 -7
- package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/types.d.ts +7 -16
- package/build/@types/cim/components/modals/CimConfiguration/types.d.ts.map +1 -1
- package/build/@types/cim/hooks/index.d.ts +3 -0
- package/build/@types/cim/hooks/index.d.ts.map +1 -0
- package/build/@types/cim/hooks/types.d.ts +4 -0
- package/build/@types/cim/hooks/types.d.ts.map +1 -0
- package/build/@types/cim/hooks/useAgentServiceConfig.d.ts +4 -0
- package/build/@types/cim/hooks/useAgentServiceConfig.d.ts.map +1 -0
- package/build/@types/cim/hooks/useConfigMaps.d.ts +4 -0
- package/build/@types/cim/hooks/useConfigMaps.d.ts.map +1 -0
- package/build/@types/cim/hooks/useK8sWatchResource.d.ts +8 -0
- package/build/@types/cim/hooks/useK8sWatchResource.d.ts.map +1 -0
- package/build/@types/cim/types/index.d.ts +1 -1
- package/build/@types/cim/types/index.d.ts.map +1 -1
- package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +3 -0
- package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
- package/build/@types/cim/types/models.d.ts +7 -0
- package/build/@types/cim/types/models.d.ts.map +1 -0
- package/build/@types/cim/utils.d.ts +2 -0
- package/build/@types/cim/utils.d.ts.map +1 -1
- package/build/@types/common/api/assisted-service/HostsAPI.d.ts +0 -1
- package/build/@types/common/api/assisted-service/HostsAPI.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/ControlPlaneNodesDropdown.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts +2 -1
- package/build/@types/common/components/clusterConfiguration/DownloadIso.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/ExternalPlatformsDropdown.d.ts +14 -0
- package/build/@types/common/components/clusterConfiguration/ExternalPlatformsDropdown.d.ts.map +1 -0
- package/build/@types/common/components/clusterConfiguration/SecurityFields.d.ts +3 -1
- package/build/@types/common/components/clusterConfiguration/SecurityFields.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/index.d.ts +1 -0
- package/build/@types/common/components/clusterConfiguration/index.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/types.d.ts +1 -2
- package/build/@types/common/components/clusterWizard/types.d.ts.map +1 -1
- package/build/@types/common/components/hosts/status.d.ts.map +1 -1
- package/build/@types/common/components/hosts/tableUtils.d.ts +2 -0
- package/build/@types/common/components/hosts/tableUtils.d.ts.map +1 -1
- package/build/@types/common/components/hosts/utils.d.ts +3 -0
- package/build/@types/common/components/hosts/utils.d.ts.map +1 -1
- package/build/@types/common/components/ui/OpenShiftSelectWithSearch.d.ts +1 -2
- package/build/@types/common/components/ui/OpenShiftSelectWithSearch.d.ts.map +1 -1
- package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts +3 -3
- package/build/@types/common/components/ui/OpenShiftVersionDropdown.d.ts.map +1 -1
- package/build/@types/common/components/ui/OpenShiftVersionModal.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/InputField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts +16 -0
- package/build/@types/common/components/ui/formik/SelectFieldWithSearch.d.ts.map +1 -0
- package/build/@types/common/components/ui/formik/index.d.ts +1 -0
- package/build/@types/common/components/ui/formik/index.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/types.d.ts +2 -2
- package/build/@types/common/components/ui/formik/types.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/config/docs_links.d.ts +1 -1
- package/build/@types/common/config/docs_links.d.ts.map +1 -1
- package/build/@types/common/utils.d.ts +1 -0
- package/build/@types/common/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/Routes.d.ts +6 -4
- package/build/@types/ocm/components/Routes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.d.ts +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/disconnected/BasicStep.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts +1 -1
- package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts.map +1 -1
- package/build/@types/ocm/services/HostsService.d.ts +0 -1
- package/build/@types/ocm/services/HostsService.d.ts.map +1 -1
- package/build/cjs/cim/components/Agent/AgentStatus.js +2 -2
- package/build/cjs/cim/components/Agent/AgentStatus.js.map +1 -1
- package/build/cjs/cim/components/Agent/tableUtils.js +31 -12
- package/build/cjs/cim/components/Agent/tableUtils.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js +12 -9
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentWizard.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ScaleUpForm.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/ScaleUpForm.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/{ACMClusterDeploymentDetailsStep.js → clusterDetails/ACMClusterDeploymentDetailsStep.js} +6 -5
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ACMClusterDeploymentDetailsStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentDetailsForm.js → clusterDetails/ClusterDeploymentDetailsForm.js} +8 -8
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentDetailsStep.js → clusterDetails/ClusterDeploymentDetailsStep.js} +8 -8
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDetailsFormFields.js → clusterDetails/ClusterDetailsFormFields.js} +20 -25
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/index.js +8 -0
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{AdditionalNTPSourcesDialogToggle.js → components/AdditionalNTPSourcesDialogToggle.js} +1 -1
- package/build/cjs/cim/components/ClusterDeployment/components/AdditionalNTPSourcesDialogToggle.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/components/index.js +5 -0
- package/build/cjs/cim/components/ClusterDeployment/components/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/constants.js +1 -0
- package/build/cjs/cim/components/ClusterDeployment/constants.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js +71 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.js +64 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ConfigMapForm.js +134 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/ConfigMapForm.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/index.js +5 -0
- package/build/cjs/cim/components/ClusterDeployment/customManifests/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostDiscoveryTable.js → hostDiscovery/ClusterDeploymentHostDiscoveryTable.js} +20 -13
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsDiscovery.js → hostDiscovery/ClusterDeploymentHostsDiscovery.js} +6 -6
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscovery.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsDiscoveryStep.js → hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js} +10 -9
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostsDiscoveryStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/index.js +5 -0
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostSelectionStep.js → hostSelection/ClusterDeploymentHostSelectionStep.js} +15 -14
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelection.js → hostSelection/ClusterDeploymentHostsSelection.js} +23 -14
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelection.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionAdvanced.js → hostSelection/ClusterDeploymentHostsSelectionAdvanced.js} +7 -6
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionAdvanced.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionBasic.js → hostSelection/ClusterDeploymentHostsSelectionBasic.js} +7 -7
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostsSelectionBasic.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/index.js +6 -0
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/index.js +4 -4
- package/build/cjs/cim/components/ClusterDeployment/index.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentHostsNetworkTable.js → networking/ClusterDeploymentHostsNetworkTable.js} +10 -10
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingForm.js → networking/ClusterDeploymentNetworkingForm.js} +7 -10
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingStep.js → networking/ClusterDeploymentNetworkingStep.js} +10 -10
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/networking/index.js +5 -0
- package/build/cjs/cim/components/ClusterDeployment/networking/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/{ClusterDeploymentReviewStep.js → review/ClusterDeploymentReviewStep.js} +21 -16
- package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.js +51 -0
- package/build/cjs/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/review/index.js +5 -0
- package/build/cjs/cim/components/ClusterDeployment/review/index.js.map +1 -0
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +2 -3
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js +1 -0
- package/build/cjs/cim/components/ClusterDeployment/wizardTransition.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js +7 -12
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js +2 -2
- package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +5 -2
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js +25 -3
- package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js.map +1 -1
- package/build/cjs/cim/components/helpers/agentClusterInstall.js +7 -1
- package/build/cjs/cim/components/helpers/agentClusterInstall.js.map +1 -1
- package/build/cjs/cim/components/helpers/agents.js +4 -1
- package/build/cjs/cim/components/helpers/agents.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +43 -25
- package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
- package/build/cjs/cim/components/helpers/versions.js +5 -1
- package/build/cjs/cim/components/helpers/versions.js.map +1 -1
- package/build/cjs/cim/components/modals/AddHostModal.js +10 -5
- package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js +91 -0
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js.map +1 -0
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +77 -121
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/persist.js +44 -95
- package/build/cjs/cim/components/modals/CimConfiguration/persist.js.map +1 -1
- package/build/cjs/cim/components/modals/EditProxyModal.js +1 -1
- package/build/cjs/cim/components/modals/EditProxyModal.js.map +1 -1
- package/build/cjs/cim/components/modals/EditSSHKeyModal.js +1 -1
- package/build/cjs/cim/components/modals/EditSSHKeyModal.js.map +1 -1
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js +3 -3
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js.map +1 -1
- package/build/cjs/cim/hooks/index.js +6 -0
- package/build/cjs/cim/hooks/index.js.map +1 -0
- package/build/cjs/cim/hooks/types.js +3 -0
- package/build/cjs/cim/hooks/types.js.map +1 -0
- package/build/cjs/cim/hooks/useAgentServiceConfig.js +13 -0
- package/build/cjs/cim/hooks/useAgentServiceConfig.js.map +1 -0
- package/build/cjs/cim/hooks/useConfigMaps.js +12 -0
- package/build/cjs/cim/hooks/useConfigMaps.js.map +1 -0
- package/build/cjs/cim/hooks/useK8sWatchResource.js +12 -0
- package/build/cjs/cim/hooks/useK8sWatchResource.js.map +1 -0
- package/build/cjs/cim/types/index.js +1 -1
- package/build/cjs/cim/types/index.js.map +1 -1
- package/build/cjs/cim/types/models.js +54 -0
- package/build/cjs/cim/types/models.js.map +1 -0
- package/build/cjs/cim/utils.js +12 -1
- package/build/cjs/cim/utils.js.map +1 -1
- package/build/cjs/common/api/assisted-service/HostsAPI.js +0 -3
- package/build/cjs/common/api/assisted-service/HostsAPI.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js +10 -1
- package/build/cjs/common/components/clusterConfiguration/ControlPlaneNodesDropdown.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js +2 -2
- package/build/cjs/common/components/clusterConfiguration/DownloadIso.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js +49 -0
- package/build/cjs/common/components/clusterConfiguration/ExternalPlatformsDropdown.js.map +1 -0
- package/build/cjs/common/components/clusterConfiguration/SecurityFields.js +7 -5
- package/build/cjs/common/components/clusterConfiguration/SecurityFields.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/index.js +1 -0
- package/build/cjs/common/components/clusterConfiguration/index.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +7 -7
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
- package/build/cjs/common/components/hosts/status.js +1 -2
- package/build/cjs/common/components/hosts/status.js.map +1 -1
- package/build/cjs/common/components/hosts/tableUtils.js +41 -1
- package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
- package/build/cjs/common/components/hosts/utils.js +5 -1
- package/build/cjs/common/components/hosts/utils.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftSelectWithSearch.js +20 -139
- package/build/cjs/common/components/ui/OpenShiftSelectWithSearch.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js +10 -15
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftVersionModal.js +8 -12
- package/build/cjs/common/components/ui/OpenShiftVersionModal.js.map +1 -1
- package/build/cjs/common/components/ui/formik/InputField.js +4 -5
- package/build/cjs/common/components/ui/formik/InputField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js +153 -0
- package/build/cjs/common/components/ui/formik/SelectFieldWithSearch.js.map +1 -0
- package/build/cjs/common/components/ui/formik/index.js +3 -1
- package/build/cjs/common/components/ui/formik/index.js.map +1 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js +4 -8
- package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
- package/build/cjs/common/config/constants.js +0 -3
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/config/docs_links.js +9 -3
- package/build/cjs/common/config/docs_links.js.map +1 -1
- package/build/cjs/common/utils.js +4 -3
- package/build/cjs/common/utils.js.map +1 -1
- package/build/cjs/ocm/components/Routes.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +2 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js +10 -15
- package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js +2 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/BasicStep.js.map +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +14 -4
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
- package/build/cjs/ocm/services/HostsService.js +0 -6
- package/build/cjs/ocm/services/HostsService.js.map +1 -1
- package/lib/cim/components/Agent/AgentStatus.tsx +1 -1
- package/lib/cim/components/Agent/tableUtils.tsx +43 -13
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentWizard.tsx +15 -5
- package/lib/cim/components/ClusterDeployment/ScaleUpForm.tsx +1 -1
- package/lib/cim/components/ClusterDeployment/{ACMClusterDeploymentDetailsStep.tsx → clusterDetails/ACMClusterDeploymentDetailsStep.tsx} +6 -8
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentDetailsForm.tsx → clusterDetails/ClusterDeploymentDetailsForm.tsx} +17 -11
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentDetailsStep.tsx → clusterDetails/ClusterDeploymentDetailsStep.tsx} +9 -10
- package/lib/cim/components/ClusterDeployment/{ClusterDetailsFormFields.tsx → clusterDetails/ClusterDetailsFormFields.tsx} +22 -24
- package/lib/cim/components/ClusterDeployment/clusterDetails/index.tsx +4 -0
- package/lib/cim/components/ClusterDeployment/{AdditionalNTPSourcesDialogToggle.tsx → components/AdditionalNTPSourcesDialogToggle.tsx} +1 -1
- package/lib/cim/components/ClusterDeployment/components/index.tsx +1 -0
- package/lib/cim/components/ClusterDeployment/constants.ts +1 -0
- package/lib/cim/components/ClusterDeployment/customManifests/ClusterDeploymentCustomManifestsStep.tsx +128 -0
- package/lib/cim/components/ClusterDeployment/customManifests/ConfigMapDetail.tsx +191 -0
- package/lib/cim/components/ClusterDeployment/customManifests/ConfigMapForm.tsx +247 -0
- package/lib/cim/components/ClusterDeployment/customManifests/index.tsx +1 -0
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostDiscoveryTable.tsx → hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx} +23 -14
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsDiscovery.tsx → hostDiscovery/ClusterDeploymentHostsDiscovery.tsx} +8 -8
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsDiscoveryStep.tsx → hostDiscovery/ClusterDeploymentHostsDiscoveryStep.tsx} +10 -11
- package/lib/cim/components/ClusterDeployment/hostDiscovery/index.tsx +1 -0
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostSelectionStep.tsx → hostSelection/ClusterDeploymentHostSelectionStep.tsx} +17 -16
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelection.tsx → hostSelection/ClusterDeploymentHostsSelection.tsx} +33 -17
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionAdvanced.tsx → hostSelection/ClusterDeploymentHostsSelectionAdvanced.tsx} +10 -12
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsSelectionBasic.tsx → hostSelection/ClusterDeploymentHostsSelectionBasic.tsx} +9 -9
- package/lib/cim/components/ClusterDeployment/hostSelection/index.tsx +2 -0
- package/lib/cim/components/ClusterDeployment/index.ts +2 -2
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentHostsNetworkTable.tsx → networking/ClusterDeploymentHostsNetworkTable.tsx} +12 -12
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingForm.tsx → networking/ClusterDeploymentNetworkingForm.tsx} +9 -13
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentNetworkingStep.tsx → networking/ClusterDeploymentNetworkingStep.tsx} +11 -13
- package/lib/cim/components/ClusterDeployment/networking/index.tsx +1 -0
- package/lib/cim/components/ClusterDeployment/{ClusterDeploymentReviewStep.tsx → review/ClusterDeploymentReviewStep.tsx} +36 -15
- package/lib/cim/components/ClusterDeployment/review/ReviewConfigMapsTable.tsx +70 -0
- package/lib/cim/components/ClusterDeployment/review/index.tsx +1 -0
- package/lib/cim/components/ClusterDeployment/types.ts +2 -0
- package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +4 -4
- package/lib/cim/components/ClusterDeployment/wizardTransition.ts +2 -0
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsForm.tsx +7 -12
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/types.ts +1 -1
- package/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx +2 -2
- package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +11 -0
- package/lib/cim/components/InfraEnv/InfraTableToolbar.tsx +77 -1
- package/lib/cim/components/helpers/agentClusterInstall.ts +4 -0
- package/lib/cim/components/helpers/agents.ts +5 -1
- package/lib/cim/components/helpers/toAssisted.ts +27 -2
- package/lib/cim/components/helpers/versions.ts +7 -3
- package/lib/cim/components/modals/AddHostModal.tsx +13 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationFormFields.tsx +259 -0
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +170 -193
- package/lib/cim/components/modals/CimConfiguration/persist.ts +62 -125
- package/lib/cim/components/modals/CimConfiguration/types.ts +7 -22
- package/lib/cim/components/modals/EditProxyModal.tsx +1 -1
- package/lib/cim/components/modals/EditSSHKeyModal.tsx +1 -1
- package/lib/cim/components/modals/MassApproveAgentModal.tsx +2 -2
- package/lib/cim/hooks/index.tsx +2 -0
- package/lib/cim/hooks/types.tsx +8 -0
- package/lib/cim/hooks/useAgentServiceConfig.tsx +15 -0
- package/lib/cim/hooks/useConfigMaps.tsx +14 -0
- package/lib/cim/hooks/useK8sWatchResource.tsx +27 -0
- package/lib/cim/types/index.ts +1 -1
- package/lib/cim/types/k8s/agent-cluster-install.ts +1 -0
- package/lib/cim/types/models.tsx +56 -0
- package/lib/cim/utils.ts +12 -0
- package/lib/common/api/assisted-service/HostsAPI.ts +0 -5
- package/lib/common/components/clusterConfiguration/ControlPlaneNodesDropdown.tsx +10 -1
- package/lib/common/components/clusterConfiguration/DownloadIso.tsx +3 -1
- package/lib/common/components/clusterConfiguration/ExternalPlatformsDropdown.tsx +88 -0
- package/lib/common/components/clusterConfiguration/SecurityFields.tsx +13 -6
- package/lib/common/components/clusterConfiguration/index.ts +1 -0
- package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +7 -7
- package/lib/common/components/clusterWizard/types.ts +1 -2
- package/lib/common/components/hosts/status.tsx +1 -2
- package/lib/common/components/hosts/tableUtils.tsx +48 -0
- package/lib/common/components/hosts/utils.ts +4 -0
- package/lib/common/components/ui/OpenShiftSelectWithSearch.tsx +38 -239
- package/lib/common/components/ui/OpenShiftVersionDropdown.tsx +14 -23
- package/lib/common/components/ui/OpenShiftVersionModal.tsx +12 -16
- package/lib/common/components/ui/formik/InputField.tsx +16 -12
- package/lib/common/components/ui/formik/SelectFieldWithSearch.tsx +278 -0
- package/lib/common/components/ui/formik/index.tsx +1 -0
- package/lib/common/components/ui/formik/types.ts +2 -2
- package/lib/common/components/ui/formik/validationSchemas.ts +7 -9
- package/lib/common/config/constants.ts +0 -3
- package/lib/common/config/docs_links.ts +9 -6
- package/lib/common/utils.ts +1 -1
- package/lib/ocm/components/Routes.tsx +9 -7
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +17 -16
- package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.tsx +13 -18
- package/lib/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +2 -2
- package/lib/ocm/components/clusterWizard/disconnected/BasicStep.tsx +4 -2
- package/lib/ocm/components/clusterWizard/disconnected/ReviewStep.tsx +1 -1
- package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +2 -2
- package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +23 -4
- package/lib/ocm/services/HostsService.ts +0 -8
- package/package.json +5 -5
- package/build/@types/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/AdditionalNTPSourcesDialogToggle.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.d.ts +0 -5
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsSelectionAdvanced.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsSelectionBasic.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.d.ts.map +0 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDetailsFormFields.d.ts.map +0 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationForm.d.ts +0 -5
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationForm.d.ts.map +0 -1
- package/build/@types/cim/types/resources.d.ts +0 -45
- package/build/@types/cim/types/resources.d.ts.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ACMClusterDeploymentDetailsStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/AdditionalNTPSourcesDialogToggle.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsForm.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostSelectionStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscovery.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsDiscoveryStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelection.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelectionAdvanced.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsSelectionBasic.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingForm.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentNetworkingStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentReviewStep.js.map +0 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDetailsFormFields.js.map +0 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationForm.css +0 -23
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationForm.js +0 -85
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationForm.js.map +0 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.css +0 -3
- package/build/cjs/cim/types/resources.js +0 -10
- package/build/cjs/cim/types/resources.js.map +0 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationForm.css +0 -23
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationForm.tsx +0 -290
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.css +0 -3
- package/lib/cim/types/resources.ts +0 -50
- /package/build/@types/cim/components/ClusterDeployment/{AdditionalNTPSourcesDialogToggle.d.ts → components/AdditionalNTPSourcesDialogToggle.d.ts} +0 -0
|
@@ -21,7 +21,7 @@ import ExternalLink from './ExternalLink';
|
|
|
21
21
|
import { OCP_RELEASES_PAGE } from '../../config';
|
|
22
22
|
import { ClusterDetailsValues, ItemDropdown } from '../clusterWizard';
|
|
23
23
|
|
|
24
|
-
export type HelperTextType = (value: string |
|
|
24
|
+
export type HelperTextType = (value: string | null, inModal?: boolean) => JSX.Element | null;
|
|
25
25
|
|
|
26
26
|
type OpenShiftVersionDropdownProps = {
|
|
27
27
|
name: string;
|
|
@@ -30,7 +30,7 @@ type OpenShiftVersionDropdownProps = {
|
|
|
30
30
|
getHelperText?: HelperTextType;
|
|
31
31
|
showReleasesLink: boolean;
|
|
32
32
|
showOpenshiftVersionModal: () => void;
|
|
33
|
-
|
|
33
|
+
customItem?: OpenshiftVersionOptionType;
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
const getParsedVersions = (items: ItemDropdown) => {
|
|
@@ -49,7 +49,7 @@ export const OpenShiftVersionDropdown = ({
|
|
|
49
49
|
getHelperText,
|
|
50
50
|
showReleasesLink,
|
|
51
51
|
showOpenshiftVersionModal,
|
|
52
|
-
|
|
52
|
+
customItem,
|
|
53
53
|
}: OpenShiftVersionDropdownProps) => {
|
|
54
54
|
const [field, , { setValue }] = useField<string>(name);
|
|
55
55
|
const [isOpen, setOpen] = React.useState(false);
|
|
@@ -61,9 +61,13 @@ export const OpenShiftVersionDropdown = ({
|
|
|
61
61
|
const [current, setCurrent] = React.useState<string>();
|
|
62
62
|
|
|
63
63
|
React.useEffect(() => {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
let defaultVersion = versions.find((item) => item.default);
|
|
65
|
+
if (customOpenshiftSelect && customItem) {
|
|
66
|
+
defaultVersion = customItem;
|
|
67
|
+
} else if (customOpenshiftSelect) {
|
|
68
|
+
defaultVersion = versions.find((item) => item.value === customOpenshiftSelect);
|
|
69
|
+
}
|
|
70
|
+
|
|
67
71
|
setCurrent(defaultVersion?.label || '');
|
|
68
72
|
setValue(defaultVersion?.value || '');
|
|
69
73
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
@@ -85,30 +89,17 @@ export const OpenShiftVersionDropdown = ({
|
|
|
85
89
|
return items;
|
|
86
90
|
});
|
|
87
91
|
|
|
88
|
-
const parsedVersionsForCustomItems = getParsedVersions(customItems);
|
|
89
|
-
let lastCustomY: string | undefined = '';
|
|
90
|
-
const customDropdownItems = parsedVersionsForCustomItems.parsedVersions.map(({ y, versions }) => {
|
|
91
|
-
const customItems = versions.map(({ value, label }) => (
|
|
92
|
-
<DropdownItem key={value} id={value} value={value}>
|
|
93
|
-
{label}
|
|
94
|
-
</DropdownItem>
|
|
95
|
-
));
|
|
96
|
-
if (lastCustomY !== null && y !== lastCustomY) {
|
|
97
|
-
customItems.push(<Divider key={`separator-${y || ''}`} />);
|
|
98
|
-
}
|
|
99
|
-
lastCustomY = y;
|
|
100
|
-
return customItems;
|
|
101
|
-
});
|
|
102
|
-
|
|
103
92
|
const dropdownGroup = [
|
|
104
93
|
dropdownItems.length && (
|
|
105
94
|
<DropdownGroup label="Latest releases" key="latest-releases">
|
|
106
95
|
{dropdownItems}
|
|
107
96
|
</DropdownGroup>
|
|
108
97
|
),
|
|
109
|
-
|
|
98
|
+
customItem && (
|
|
110
99
|
<DropdownGroup label="Custom releases" key="custom-releases">
|
|
111
|
-
{
|
|
100
|
+
<DropdownItem key={customItem.value} id={customItem.value} value={customItem.value}>
|
|
101
|
+
{customItem.label}
|
|
102
|
+
</DropdownItem>
|
|
112
103
|
</DropdownGroup>
|
|
113
104
|
),
|
|
114
105
|
<DropdownGroup key="all-available-versions">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
4
|
ButtonVariant,
|
|
@@ -27,21 +27,17 @@ export const OpenShiftVersionModal = ({
|
|
|
27
27
|
getHelperText,
|
|
28
28
|
}: OpenShiftVersionModalProps) => {
|
|
29
29
|
const { setFieldValue } = useFormikContext<ClusterDetailsValues>();
|
|
30
|
-
const onClose = () => setOpenshiftVersionModalOpen(false);
|
|
31
|
-
const [customOpenshiftSelect, setCustomOpenshiftSelect] = useState<OpenshiftVersionOptionType>(); // Cambiar el tipo según lo que esperes aquí
|
|
32
30
|
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
onClose();
|
|
31
|
+
const onCancel = () => {
|
|
32
|
+
setFieldValue('customOpenshiftSelect', null);
|
|
33
|
+
setOpenshiftVersionModalOpen(false);
|
|
38
34
|
};
|
|
39
35
|
|
|
40
36
|
return (
|
|
41
37
|
<Modal
|
|
42
38
|
id="available-openshift-versions-modal"
|
|
43
39
|
isOpen
|
|
44
|
-
onClose={
|
|
40
|
+
onClose={() => setOpenshiftVersionModalOpen(false)}
|
|
45
41
|
variant={ModalVariant.small}
|
|
46
42
|
>
|
|
47
43
|
<ModalHeader title="Available OpenShift Versions" />
|
|
@@ -52,18 +48,18 @@ export const OpenShiftVersionModal = ({
|
|
|
52
48
|
label={'OpenShift version'}
|
|
53
49
|
isRequired
|
|
54
50
|
>
|
|
55
|
-
<OpenShiftSelectWithSearch
|
|
56
|
-
versions={allVersions}
|
|
57
|
-
getHelperText={getHelperText}
|
|
58
|
-
setCustomOpenshiftSelect={setCustomOpenshiftSelect}
|
|
59
|
-
/>
|
|
51
|
+
<OpenShiftSelectWithSearch versions={allVersions} getHelperText={getHelperText} />
|
|
60
52
|
</FormGroup>
|
|
61
53
|
</ModalBody>
|
|
62
54
|
<ModalFooter>
|
|
63
|
-
<Button
|
|
55
|
+
<Button
|
|
56
|
+
key="select-custom-ocp"
|
|
57
|
+
variant={ButtonVariant.primary}
|
|
58
|
+
onClick={() => setOpenshiftVersionModalOpen(false)}
|
|
59
|
+
>
|
|
64
60
|
Select
|
|
65
61
|
</Button>
|
|
66
|
-
<Button key="close-custom-ocp" variant={ButtonVariant.link} onClick={
|
|
62
|
+
<Button key="close-custom-ocp" variant={ButtonVariant.link} onClick={onCancel}>
|
|
67
63
|
Cancel
|
|
68
64
|
</Button>
|
|
69
65
|
</ModalFooter>
|
|
@@ -32,6 +32,7 @@ const InputField: React.FC<
|
|
|
32
32
|
description,
|
|
33
33
|
labelInfo,
|
|
34
34
|
showErrorMessage = true,
|
|
35
|
+
type = 'text',
|
|
35
36
|
...props
|
|
36
37
|
},
|
|
37
38
|
ref: React.Ref<HTMLInputElement>,
|
|
@@ -80,6 +81,7 @@ const InputField: React.FC<
|
|
|
80
81
|
onChange && onChange(event);
|
|
81
82
|
}
|
|
82
83
|
}}
|
|
84
|
+
type={type}
|
|
83
85
|
/>
|
|
84
86
|
</SplitItem>
|
|
85
87
|
<SplitItem>{children}</SplitItem>
|
|
@@ -87,18 +89,20 @@ const InputField: React.FC<
|
|
|
87
89
|
{((showErrorMessage && !isValid) || helperText) && (
|
|
88
90
|
<FormHelperText>
|
|
89
91
|
<HelperText>
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
{
|
|
101
|
-
|
|
92
|
+
{showErrorMessage && !isValid && (
|
|
93
|
+
<HelperTextItem
|
|
94
|
+
icon={<ExclamationCircleIcon />}
|
|
95
|
+
variant={'error'}
|
|
96
|
+
id={`${fieldId}-helper-error`}
|
|
97
|
+
>
|
|
98
|
+
{errorMessage}
|
|
99
|
+
</HelperTextItem>
|
|
100
|
+
)}
|
|
101
|
+
{helperText && (
|
|
102
|
+
<HelperTextItem variant={'default'} id={`${fieldId}-helper`}>
|
|
103
|
+
{helperText}
|
|
104
|
+
</HelperTextItem>
|
|
105
|
+
)}
|
|
102
106
|
</HelperText>
|
|
103
107
|
</FormHelperText>
|
|
104
108
|
)}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import {
|
|
3
|
+
Select,
|
|
4
|
+
SelectOption,
|
|
5
|
+
SelectList,
|
|
6
|
+
SelectOptionProps,
|
|
7
|
+
MenuToggle,
|
|
8
|
+
MenuToggleElement,
|
|
9
|
+
TextInputGroup,
|
|
10
|
+
TextInputGroupMain,
|
|
11
|
+
TextInputGroupUtilities,
|
|
12
|
+
Button,
|
|
13
|
+
FormGroup,
|
|
14
|
+
Bullseye,
|
|
15
|
+
Spinner,
|
|
16
|
+
FormHelperText,
|
|
17
|
+
HelperText,
|
|
18
|
+
HelperTextItem,
|
|
19
|
+
Divider,
|
|
20
|
+
} from '@patternfly/react-core';
|
|
21
|
+
import TimesIcon from '@patternfly/react-icons/dist/esm/icons/times-icon';
|
|
22
|
+
import { useField } from 'formik';
|
|
23
|
+
import { isEqual } from 'lodash-es';
|
|
24
|
+
import { FieldProps } from './types';
|
|
25
|
+
|
|
26
|
+
const NO_RESULTS = 'no_results';
|
|
27
|
+
|
|
28
|
+
const createItemId = (val: string) => `select-multi-typeahead-${val.replace(' ', '-')}`;
|
|
29
|
+
|
|
30
|
+
const SelectFieldWithSearch = ({
|
|
31
|
+
name,
|
|
32
|
+
label,
|
|
33
|
+
isRequired,
|
|
34
|
+
selectOptions,
|
|
35
|
+
filterValue,
|
|
36
|
+
setFilterValue,
|
|
37
|
+
isMultiSelect = false,
|
|
38
|
+
isLoading = false,
|
|
39
|
+
placeholder,
|
|
40
|
+
helperText,
|
|
41
|
+
}: {
|
|
42
|
+
selectOptions: (SelectOptionProps & { showDivider?: boolean })[];
|
|
43
|
+
filterValue: string;
|
|
44
|
+
setFilterValue: (value: string) => void;
|
|
45
|
+
isMultiSelect?: boolean;
|
|
46
|
+
isLoading?: boolean;
|
|
47
|
+
placeholder?: string;
|
|
48
|
+
helperText?: React.ReactNode;
|
|
49
|
+
} & FieldProps) => {
|
|
50
|
+
const [isOpen, setIsOpen] = React.useState(false);
|
|
51
|
+
const [{ value }, , { setValue }] = useField<unknown | unknown[]>(name);
|
|
52
|
+
|
|
53
|
+
const [focusedItemIndex, setFocusedItemIndex] = React.useState<number | null>(null);
|
|
54
|
+
const [activeItemId, setActiveItemId] = React.useState<string | null>(null);
|
|
55
|
+
const textInputRef = React.useRef<HTMLInputElement>();
|
|
56
|
+
|
|
57
|
+
const setActiveAndFocusedItem = (itemIndex: number) => {
|
|
58
|
+
setFocusedItemIndex(itemIndex);
|
|
59
|
+
const focusedItem = selectOptions[itemIndex];
|
|
60
|
+
setActiveItemId(createItemId(focusedItem.value as string));
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
const resetActiveAndFocusedItem = () => {
|
|
64
|
+
setFocusedItemIndex(null);
|
|
65
|
+
setActiveItemId(null);
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
const closeMenu = () => {
|
|
69
|
+
setIsOpen(false);
|
|
70
|
+
resetActiveAndFocusedItem();
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const onInputClick = () => {
|
|
74
|
+
if (!isOpen) {
|
|
75
|
+
setIsOpen(true);
|
|
76
|
+
} else if (!filterValue) {
|
|
77
|
+
closeMenu();
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const handleMenuArrowKeys = (key: string) => {
|
|
82
|
+
let indexToFocus = 0;
|
|
83
|
+
|
|
84
|
+
if (!isOpen) {
|
|
85
|
+
setIsOpen(true);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (selectOptions.every((option) => option.isDisabled)) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (key === 'ArrowUp') {
|
|
93
|
+
// When no index is set or at the first index, focus to the last, otherwise decrement focus index
|
|
94
|
+
if (focusedItemIndex === null || focusedItemIndex === 0) {
|
|
95
|
+
indexToFocus = selectOptions.length - 1;
|
|
96
|
+
} else {
|
|
97
|
+
indexToFocus = focusedItemIndex - 1;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
// Skip disabled options
|
|
101
|
+
while (selectOptions[indexToFocus].isDisabled) {
|
|
102
|
+
indexToFocus--;
|
|
103
|
+
if (indexToFocus === -1) {
|
|
104
|
+
indexToFocus = selectOptions.length - 1;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (key === 'ArrowDown') {
|
|
110
|
+
// When no index is set or at the last index, focus to the first, otherwise increment focus index
|
|
111
|
+
if (focusedItemIndex === null || focusedItemIndex === selectOptions.length - 1) {
|
|
112
|
+
indexToFocus = 0;
|
|
113
|
+
} else {
|
|
114
|
+
indexToFocus = focusedItemIndex + 1;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Skip disabled options
|
|
118
|
+
while (selectOptions[indexToFocus].isDisabled) {
|
|
119
|
+
indexToFocus++;
|
|
120
|
+
if (indexToFocus === selectOptions.length) {
|
|
121
|
+
indexToFocus = 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
setActiveAndFocusedItem(indexToFocus);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
const onInputKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {
|
|
130
|
+
const focusedItem = focusedItemIndex !== null ? selectOptions[focusedItemIndex] : null;
|
|
131
|
+
|
|
132
|
+
switch (event.key) {
|
|
133
|
+
case 'Enter':
|
|
134
|
+
if (
|
|
135
|
+
isOpen &&
|
|
136
|
+
focusedItem &&
|
|
137
|
+
focusedItem.value !== NO_RESULTS &&
|
|
138
|
+
!focusedItem.isAriaDisabled
|
|
139
|
+
) {
|
|
140
|
+
onSelect(focusedItem.value as string);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (!isOpen) {
|
|
144
|
+
setIsOpen(true);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
break;
|
|
148
|
+
case 'ArrowUp':
|
|
149
|
+
case 'ArrowDown':
|
|
150
|
+
event.preventDefault();
|
|
151
|
+
handleMenuArrowKeys(event.key);
|
|
152
|
+
break;
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const onToggleClick = () => {
|
|
157
|
+
setIsOpen(!isOpen);
|
|
158
|
+
textInputRef?.current?.focus();
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
const onTextInputChange = (_event: React.FormEvent<HTMLInputElement>, value: string) => {
|
|
162
|
+
setFilterValue(value);
|
|
163
|
+
resetActiveAndFocusedItem();
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const onSelect = React.useCallback(
|
|
167
|
+
(val) => {
|
|
168
|
+
if (val && val !== NO_RESULTS) {
|
|
169
|
+
if (isMultiSelect && Array.isArray(value)) {
|
|
170
|
+
setValue(
|
|
171
|
+
value.some((v) => isEqual(v, val))
|
|
172
|
+
? value.filter((v) => !isEqual(v, val))
|
|
173
|
+
: [...(value as unknown[]), val],
|
|
174
|
+
);
|
|
175
|
+
} else {
|
|
176
|
+
setValue(val);
|
|
177
|
+
setFilterValue(selectOptions.find((option) => option.value === val)?.children as string);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
textInputRef.current?.focus();
|
|
182
|
+
},
|
|
183
|
+
[isMultiSelect, setValue, setFilterValue, selectOptions, value],
|
|
184
|
+
);
|
|
185
|
+
|
|
186
|
+
const onClearButtonClick = () => {
|
|
187
|
+
setFilterValue('');
|
|
188
|
+
resetActiveAndFocusedItem();
|
|
189
|
+
textInputRef?.current?.focus();
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
const toggle = (toggleRef: React.Ref<MenuToggleElement>) => (
|
|
193
|
+
<MenuToggle
|
|
194
|
+
variant="typeahead"
|
|
195
|
+
aria-label="Multi typeahead checkbox menu toggle"
|
|
196
|
+
onClick={onToggleClick}
|
|
197
|
+
innerRef={toggleRef}
|
|
198
|
+
isExpanded={isOpen}
|
|
199
|
+
isFullWidth
|
|
200
|
+
>
|
|
201
|
+
<TextInputGroup isPlain>
|
|
202
|
+
<TextInputGroupMain
|
|
203
|
+
isExpanded={isOpen}
|
|
204
|
+
value={filterValue}
|
|
205
|
+
placeholder={placeholder}
|
|
206
|
+
onClick={onInputClick}
|
|
207
|
+
onChange={onTextInputChange}
|
|
208
|
+
onKeyDown={onInputKeyDown}
|
|
209
|
+
innerRef={textInputRef}
|
|
210
|
+
autoComplete="off"
|
|
211
|
+
role="combobox"
|
|
212
|
+
id="typeahead-select-input"
|
|
213
|
+
aria-controls="typeahead-select-listbox"
|
|
214
|
+
{...(activeItemId && { 'aria-activedescendant': activeItemId })}
|
|
215
|
+
/>
|
|
216
|
+
<TextInputGroupUtilities {...(!filterValue ? { style: { display: 'none' } } : {})}>
|
|
217
|
+
<Button variant="plain" onClick={onClearButtonClick} aria-label="Clear input value">
|
|
218
|
+
<TimesIcon aria-hidden />
|
|
219
|
+
</Button>
|
|
220
|
+
</TextInputGroupUtilities>
|
|
221
|
+
</TextInputGroup>
|
|
222
|
+
</MenuToggle>
|
|
223
|
+
);
|
|
224
|
+
|
|
225
|
+
return (
|
|
226
|
+
<FormGroup label={label} isRequired={isRequired}>
|
|
227
|
+
<Select
|
|
228
|
+
role="menu"
|
|
229
|
+
id="typeahead-select"
|
|
230
|
+
isOpen={isOpen}
|
|
231
|
+
selected={value}
|
|
232
|
+
onSelect={(_event, selection) => onSelect(selection as string)}
|
|
233
|
+
onOpenChange={(isOpen) => {
|
|
234
|
+
!isOpen && closeMenu();
|
|
235
|
+
}}
|
|
236
|
+
toggle={toggle}
|
|
237
|
+
isScrollable
|
|
238
|
+
>
|
|
239
|
+
<SelectList isAriaMultiselectable id="select-typeahead-listbox">
|
|
240
|
+
{isLoading ? (
|
|
241
|
+
<SelectOption key={'loader'}>
|
|
242
|
+
<Bullseye>
|
|
243
|
+
<Spinner size="lg" />
|
|
244
|
+
</Bullseye>
|
|
245
|
+
</SelectOption>
|
|
246
|
+
) : (
|
|
247
|
+
selectOptions.map((option, index) => (
|
|
248
|
+
<>
|
|
249
|
+
{option.showDivider && <Divider component="li" key={`divider-${index}`} />}
|
|
250
|
+
<SelectOption
|
|
251
|
+
hasCheckbox={isMultiSelect && !option.isAriaDisabled}
|
|
252
|
+
isSelected={
|
|
253
|
+
isMultiSelect && Array.isArray(value)
|
|
254
|
+
? value.some((v) => isEqual(v, option.value))
|
|
255
|
+
: value === option.value
|
|
256
|
+
}
|
|
257
|
+
key={`option-${index}`}
|
|
258
|
+
isFocused={focusedItemIndex === index}
|
|
259
|
+
ref={null}
|
|
260
|
+
{...option}
|
|
261
|
+
/>
|
|
262
|
+
</>
|
|
263
|
+
))
|
|
264
|
+
)}
|
|
265
|
+
</SelectList>
|
|
266
|
+
</Select>
|
|
267
|
+
{helperText && (
|
|
268
|
+
<FormHelperText>
|
|
269
|
+
<HelperText>
|
|
270
|
+
<HelperTextItem>{helperText}</HelperTextItem>
|
|
271
|
+
</HelperText>
|
|
272
|
+
</FormHelperText>
|
|
273
|
+
)}
|
|
274
|
+
</FormGroup>
|
|
275
|
+
);
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
export default SelectFieldWithSearch;
|
|
@@ -17,6 +17,7 @@ export { default as RemovableField } from './RemovableField';
|
|
|
17
17
|
export { default as AddButton } from './AddButton';
|
|
18
18
|
export { default as PencilEditField } from './PencilEditField';
|
|
19
19
|
export { default as AlertFormikError } from './AlertFormikError';
|
|
20
|
+
export { default as SelectFieldWithSearch } from './SelectFieldWithSearch';
|
|
20
21
|
|
|
21
22
|
export * from './utils';
|
|
22
23
|
export * from './PullSecretField';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
|
-
TextInputTypes,
|
|
4
3
|
FormSelectOptionProps,
|
|
5
4
|
TooltipProps,
|
|
6
5
|
RadioProps,
|
|
7
6
|
FormSelectProps,
|
|
8
7
|
DropEvent,
|
|
8
|
+
TextInputProps,
|
|
9
9
|
} from '@patternfly/react-core';
|
|
10
10
|
import { DropdownItemProps } from '@patternfly/react-core';
|
|
11
11
|
import { FieldValidator, FieldHelperProps } from 'formik';
|
|
@@ -64,7 +64,7 @@ export interface SwitchFieldProps extends FieldProps {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export interface InputFieldProps extends FieldProps {
|
|
67
|
-
type?:
|
|
67
|
+
type?: TextInputProps['type'];
|
|
68
68
|
placeholder?: string;
|
|
69
69
|
noDefaultOnChange?: boolean;
|
|
70
70
|
onChange?: (event: React.FormEvent<HTMLInputElement>) => void;
|
|
@@ -58,7 +58,7 @@ export const nameValidationSchema = (
|
|
|
58
58
|
) => {
|
|
59
59
|
const clusterNameValidationMessagesList = clusterNameValidationMessages(t);
|
|
60
60
|
return Yup.string()
|
|
61
|
-
.required('Required')
|
|
61
|
+
.required(t('ai:Required field'))
|
|
62
62
|
.matches(CLUSTER_NAME_VALID_CHARS_REGEX, {
|
|
63
63
|
message: clusterNameValidationMessagesList.INVALID_VALUE,
|
|
64
64
|
excludeEmptyString: true,
|
|
@@ -123,14 +123,12 @@ export const sshPublicKeyListValidationSchema = Yup.string()
|
|
|
123
123
|
if (!value) {
|
|
124
124
|
return true;
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
// .find((line: string) => !line.match(SSH_PUBLIC_KEY_REGEX)) === undefined
|
|
133
|
-
// );
|
|
126
|
+
|
|
127
|
+
return (
|
|
128
|
+
trimSshPublicKey(value)
|
|
129
|
+
.split('\n')
|
|
130
|
+
.find((line: string) => !line.match(SSH_PUBLIC_KEY_REGEX)) === undefined
|
|
131
|
+
);
|
|
134
132
|
},
|
|
135
133
|
)
|
|
136
134
|
.test('ssh-public-keys-unique', 'SSH public keys must be unique.', (value?: string) => {
|
|
@@ -354,9 +354,6 @@ export const singleClusterOperators = [
|
|
|
354
354
|
OPERATOR_NAME_NODE_MAINTENANCE,
|
|
355
355
|
OPERATOR_NAME_FENCE_AGENTS_REMEDIATION,
|
|
356
356
|
OPERATOR_NAME_KUBE_DESCHEDULER,
|
|
357
|
-
OPERATOR_NAME_CLUSTER_OBSERVABILITY,
|
|
358
|
-
OPERATOR_NAME_LOKI,
|
|
359
|
-
OPERATOR_NAME_OPENSHIFT_LOGGING,
|
|
360
357
|
];
|
|
361
358
|
|
|
362
359
|
export const singleClusterBundles = ['virtualization'];
|
|
@@ -47,12 +47,11 @@ export const getEncryptingDiskDuringInstallationDocsLink = (ocpVersion?: string)
|
|
|
47
47
|
|
|
48
48
|
//Networking page
|
|
49
49
|
export const getOpenShiftNetworkingDocsLink = (ocpVersion?: string) => {
|
|
50
|
-
const
|
|
50
|
+
const validOcpVersion = getDocsOpenshiftVersion(ocpVersion);
|
|
51
|
+
const variant = isMajorMinorVersionEqualOrGreater(validOcpVersion, '4.18')
|
|
51
52
|
? 'user-provisioned-infrastructure'
|
|
52
53
|
: 'installing-bare-metal';
|
|
53
|
-
return `https://docs.redhat.com/en/documentation/openshift_container_platform/${
|
|
54
|
-
ocpVersion,
|
|
55
|
-
)}/html/installing_on_bare_metal/${variant}#installation-network-user-infra_installing-bare-metal`;
|
|
54
|
+
return `https://docs.redhat.com/en/documentation/openshift_container_platform/${validOcpVersion}/html/installing_on_bare_metal/${variant}#installation-network-user-infra_installing-bare-metal`;
|
|
56
55
|
};
|
|
57
56
|
|
|
58
57
|
export const SSH_GENERATION_DOC_LINK = 'https://www.redhat.com/sysadmin/configure-ssh-keygen';
|
|
@@ -148,8 +147,12 @@ export const FEEDBACK_FORM_LINK =
|
|
|
148
147
|
export const CHANGE_ISO_PASSWORD_FILE_LINK =
|
|
149
148
|
'https://raw.githubusercontent.com/openshift/assisted-service/master/docs/change-iso-password.sh';
|
|
150
149
|
|
|
151
|
-
export const getCiscoIntersightLink = (downloadIsoUrl: string) =>
|
|
152
|
-
|
|
150
|
+
export const getCiscoIntersightLink = (downloadIsoUrl: string, ciscoUrl?: string) => {
|
|
151
|
+
if (ciscoUrl) {
|
|
152
|
+
return `${ciscoUrl}?_workflow_Version=1&IsoUrl=${downloadIsoUrl}`;
|
|
153
|
+
}
|
|
154
|
+
return `https://www.intersight.com/an/workflow/workflow-definitions/execute/AddServersFromISO?_workflow_Version=1&IsoUrl=${downloadIsoUrl}`;
|
|
155
|
+
};
|
|
153
156
|
|
|
154
157
|
export const MTV_LINK =
|
|
155
158
|
'https://docs.redhat.com/en/documentation/migration_toolkit_for_virtualization/2.7/';
|
package/lib/common/utils.ts
CHANGED
|
@@ -113,7 +113,7 @@ export const getMajorMinorVersion = (version = '') => {
|
|
|
113
113
|
};
|
|
114
114
|
|
|
115
115
|
// Converts an Openshift version to a comparable integer
|
|
116
|
-
const getComparableVersionInt = (version: string): number => {
|
|
116
|
+
export const getComparableVersionInt = (version: string): number => {
|
|
117
117
|
const majorMinorParts = version.split('.').slice(0, 2).map(Number);
|
|
118
118
|
if (majorMinorParts.length < 2 || majorMinorParts.some(isNaN)) {
|
|
119
119
|
// If the version doesn't have the required format, returning 0 makes it be considered
|
|
@@ -15,19 +15,21 @@ import { storeDay1 } from '../store';
|
|
|
15
15
|
import { useFeatureDetection } from '../hooks/use-feature-detection';
|
|
16
16
|
import './Routes.css';
|
|
17
17
|
|
|
18
|
+
type UILibRoutesProps = {
|
|
19
|
+
allEnabledFeatures: FeatureListType;
|
|
20
|
+
children?: React.ReactNode;
|
|
21
|
+
history?: HistoryRouterProps['history'];
|
|
22
|
+
basename?: string;
|
|
23
|
+
additionalComponents?: React.ReactNode;
|
|
24
|
+
};
|
|
25
|
+
|
|
18
26
|
export const UILibRoutes = ({
|
|
19
27
|
allEnabledFeatures,
|
|
20
28
|
children,
|
|
21
29
|
history,
|
|
22
30
|
basename,
|
|
23
31
|
additionalComponents,
|
|
24
|
-
}: {
|
|
25
|
-
allEnabledFeatures: FeatureListType;
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
history?: HistoryRouterProps['history'];
|
|
28
|
-
basename?: string;
|
|
29
|
-
additionalComponents?: React.ReactNode;
|
|
30
|
-
}) => {
|
|
32
|
+
}: UILibRoutesProps) => {
|
|
31
33
|
useFeatureDetection(allEnabledFeatures);
|
|
32
34
|
|
|
33
35
|
const routes = (
|
|
@@ -189,22 +189,23 @@ export const OcmClusterDetailsFormFields = ({
|
|
|
189
189
|
|
|
190
190
|
{!isPullSecretSet && <PullSecret isOcm={isOcm} defaultPullSecret={defaultPullSecret} />}
|
|
191
191
|
|
|
192
|
-
{
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
192
|
+
{!isSingleClusterFeatureEnabled &&
|
|
193
|
+
(clusterExists ? (
|
|
194
|
+
<StaticTextField
|
|
195
|
+
name="platform"
|
|
196
|
+
label="Integrate with external partner platforms"
|
|
197
|
+
isRequired
|
|
198
|
+
>
|
|
199
|
+
{ExternalPlatformLabels[values.platform]}
|
|
200
|
+
</StaticTextField>
|
|
201
|
+
) : (
|
|
202
|
+
<ExternalPlatformDropdown
|
|
203
|
+
onChange={handleExternalPartnerIntegrationsChange}
|
|
204
|
+
cpuArchitecture={values.cpuArchitecture as SupportedCpuArchitecture}
|
|
205
|
+
featureSupportLevelData={featureSupportLevelData}
|
|
206
|
+
isSNO={values.controlPlaneCount === 1}
|
|
207
|
+
/>
|
|
208
|
+
))}
|
|
208
209
|
|
|
209
210
|
{clusterExists ? (
|
|
210
211
|
<StaticTextField name="controlPlaneCount" label={<ControlPlaneNodesLabel />}>
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
AlertFormikError,
|
|
24
24
|
httpProxyValidationSchema,
|
|
25
25
|
noProxyValidationSchema,
|
|
26
|
-
|
|
26
|
+
sshPublicKeyValidationSchema,
|
|
27
27
|
} from '../../../common/components/ui';
|
|
28
28
|
import {
|
|
29
29
|
DiscoveryImageType,
|
|
@@ -56,7 +56,7 @@ export type OcmDiscoveryImageFormValues = OcmImageCreateParams &
|
|
|
56
56
|
|
|
57
57
|
const validationSchema = Yup.lazy((values: OcmDiscoveryImageFormValues) =>
|
|
58
58
|
Yup.object<OcmDiscoveryImageFormValues>().shape({
|
|
59
|
-
sshPublicKey:
|
|
59
|
+
sshPublicKey: sshPublicKeyValidationSchema,
|
|
60
60
|
httpProxy: httpProxyValidationSchema({ values, pairValueName: 'httpsProxy' }),
|
|
61
61
|
httpsProxy: httpProxyValidationSchema({ values, pairValueName: 'httpProxy' }), // share the schema, httpS is currently not supported
|
|
62
62
|
noProxy: noProxyValidationSchema,
|