@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
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import * as Yup from 'yup';
|
|
3
|
+
import {
|
|
4
|
+
Alert,
|
|
5
|
+
AlertVariant,
|
|
6
|
+
Button,
|
|
7
|
+
ButtonVariant,
|
|
8
|
+
StackItem,
|
|
9
|
+
Stack,
|
|
10
|
+
Content,
|
|
11
|
+
} from '@patternfly/react-core';
|
|
3
12
|
import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
|
|
13
|
+
import { Formik, FormikHelpers } from 'formik';
|
|
14
|
+
import parseUrl from 'parse-url';
|
|
4
15
|
|
|
5
16
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
6
17
|
import { getStorageSizeGiB } from '../../helpers';
|
|
7
18
|
import { AlertPayload } from '../../../../common';
|
|
8
19
|
|
|
9
|
-
import { CimConfigurationModalProps,
|
|
10
|
-
import {
|
|
11
|
-
import { isIngressController, onEnableCIM } from './persist';
|
|
20
|
+
import { CimConfigurationModalProps, CimConfigurationValues } from './types';
|
|
21
|
+
import { onEnableCIM } from './persist';
|
|
12
22
|
import { CimConfigDisconnectedAlert } from './CimConfigDisconnectedAlert';
|
|
13
23
|
import { MIN_DB_VOL_SIZE, MIN_FS_VOL_SIZE, MIN_IMG_VOL_SIZE } from './constants';
|
|
14
24
|
import { isCIMConfigProgressing } from './utils';
|
|
15
25
|
import { resetCimConfigProgressAlertSuccessStatus } from './CimConfigProgressAlert';
|
|
16
|
-
|
|
17
|
-
import './CimConfigurationModal.css';
|
|
26
|
+
import { CimConfigurationFormFields } from './CimConfigurationFormFields';
|
|
18
27
|
|
|
19
28
|
export const CimConfigurationModal: React.FC<CimConfigurationModalProps> = ({
|
|
20
29
|
isOpen,
|
|
@@ -24,136 +33,41 @@ export const CimConfigurationModal: React.FC<CimConfigurationModalProps> = ({
|
|
|
24
33
|
docDisconnectedUrl,
|
|
25
34
|
docConfigUrl,
|
|
26
35
|
docConfigAwsUrl,
|
|
27
|
-
|
|
28
|
-
getResource,
|
|
29
|
-
listResources,
|
|
30
|
-
patchResource,
|
|
31
|
-
createResource,
|
|
32
36
|
}) => {
|
|
33
37
|
const { t } = useTranslation();
|
|
34
38
|
const [error, setError] = React.useState<AlertPayload>();
|
|
35
|
-
const [isSaving, setSaving] = React.useState(false);
|
|
36
|
-
|
|
37
|
-
const [dbVolSize, _setDbVolSize] = React.useState<number>(() =>
|
|
38
|
-
getStorageSizeGiB(10, agentServiceConfig?.spec?.databaseStorage?.resources?.requests?.storage),
|
|
39
|
-
);
|
|
40
|
-
const [dbVolSizeValidation, setDbVolSizeValidation] = React.useState<string>();
|
|
41
|
-
|
|
42
|
-
const [fsVolSize, _setFsVolSize] = React.useState<number>(() =>
|
|
43
|
-
getStorageSizeGiB(
|
|
44
|
-
100,
|
|
45
|
-
agentServiceConfig?.spec?.filesystemStorage?.resources?.requests?.storage,
|
|
46
|
-
),
|
|
47
|
-
);
|
|
48
|
-
const [fsVolSizeValidation, setFsVolSizeValidation] = React.useState<string>();
|
|
49
39
|
|
|
50
|
-
const [imgVolSize, _setImgVolSize] = React.useState<number>(() =>
|
|
51
|
-
getStorageSizeGiB(50, agentServiceConfig?.spec?.imageStorage?.resources?.requests?.storage),
|
|
52
|
-
);
|
|
53
|
-
const [imgVolSizeValidation, setImgVolSizeValidation] = React.useState<string>();
|
|
54
|
-
|
|
55
|
-
const [configureLoadBalancer, setConfigureLoadBalancer] = React.useState<boolean>(
|
|
56
|
-
platform === 'AWS',
|
|
57
|
-
);
|
|
58
40
|
const [configureLoadBalancerInitial, setConfigureLoadBalancerInitial] = React.useState(true);
|
|
59
|
-
|
|
60
|
-
const setDbVolSize = (v: number): void => {
|
|
61
|
-
if (v < MIN_DB_VOL_SIZE) {
|
|
62
|
-
setDbVolSizeValidation(t('ai:Minimal value is 1Gi'));
|
|
63
|
-
} else {
|
|
64
|
-
setDbVolSizeValidation(undefined);
|
|
65
|
-
}
|
|
66
|
-
_setDbVolSize(v);
|
|
67
|
-
};
|
|
68
|
-
const setFsVolSize = (v: number): void => {
|
|
69
|
-
if (v < MIN_FS_VOL_SIZE) {
|
|
70
|
-
setFsVolSizeValidation(t('ai:Minimal value is 1Gi'));
|
|
71
|
-
} else {
|
|
72
|
-
setFsVolSizeValidation(undefined);
|
|
73
|
-
}
|
|
74
|
-
_setFsVolSize(v);
|
|
75
|
-
};
|
|
76
|
-
const setImgVolSize = (v: number): void => {
|
|
77
|
-
if (v < MIN_IMG_VOL_SIZE) {
|
|
78
|
-
setImgVolSizeValidation(t('ai:Minimal value is 10Gi'));
|
|
79
|
-
} else {
|
|
80
|
-
setImgVolSizeValidation(undefined);
|
|
81
|
-
}
|
|
82
|
-
_setImgVolSize(v);
|
|
83
|
-
};
|
|
84
|
-
|
|
85
41
|
const isEdit = !!agentServiceConfig;
|
|
86
42
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
setDbVolSize,
|
|
112
|
-
fsVolSize,
|
|
113
|
-
fsVolSizeValidation,
|
|
114
|
-
setFsVolSize,
|
|
115
|
-
imgVolSize,
|
|
116
|
-
imgVolSizeValidation,
|
|
117
|
-
setImgVolSize,
|
|
118
|
-
|
|
119
|
-
configureLoadBalancer,
|
|
120
|
-
configureLoadBalancerInitial,
|
|
121
|
-
setConfigureLoadBalancer,
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
const onConfigure = () => {
|
|
125
|
-
const doItAsync = async (): Promise<void> => {
|
|
126
|
-
setSaving(true);
|
|
127
|
-
setError(undefined);
|
|
128
|
-
resetCimConfigProgressAlertSuccessStatus();
|
|
129
|
-
|
|
130
|
-
if (
|
|
131
|
-
await onEnableCIM({
|
|
132
|
-
t,
|
|
133
|
-
setError,
|
|
134
|
-
getResource,
|
|
135
|
-
listResources,
|
|
136
|
-
patchResource,
|
|
137
|
-
createResource,
|
|
138
|
-
agentServiceConfig,
|
|
139
|
-
|
|
140
|
-
platform,
|
|
141
|
-
dbVolSizeGiB: dbVolSize,
|
|
142
|
-
fsVolSizeGiB: fsVolSize,
|
|
143
|
-
imgVolSizeGiB: imgVolSize,
|
|
144
|
-
configureLoadBalancer,
|
|
145
|
-
})
|
|
146
|
-
) {
|
|
147
|
-
// successfuly persisted
|
|
148
|
-
onClose();
|
|
149
|
-
}
|
|
150
|
-
|
|
43
|
+
const onConfigure = async (
|
|
44
|
+
values: CimConfigurationValues,
|
|
45
|
+
helpers: FormikHelpers<CimConfigurationValues>,
|
|
46
|
+
) => {
|
|
47
|
+
setError(undefined);
|
|
48
|
+
helpers.setSubmitting(true);
|
|
49
|
+
resetCimConfigProgressAlertSuccessStatus();
|
|
50
|
+
|
|
51
|
+
if (
|
|
52
|
+
await onEnableCIM({
|
|
53
|
+
t,
|
|
54
|
+
setError,
|
|
55
|
+
agentServiceConfig,
|
|
56
|
+
platform,
|
|
57
|
+
dbVolSizeGiB: values.dbVolSize,
|
|
58
|
+
fsVolSizeGiB: values.fsVolSize,
|
|
59
|
+
imgVolSizeGiB: values.imgVolSize,
|
|
60
|
+
configureLoadBalancer: values.configureLoadBalancer,
|
|
61
|
+
ciscoIntersightURL: values.addCiscoIntersightUrl ? values.ciscoIntersightURL : undefined,
|
|
62
|
+
})
|
|
63
|
+
) {
|
|
64
|
+
// successfully persisted
|
|
65
|
+
onClose();
|
|
66
|
+
} else {
|
|
151
67
|
// keep modal open and show error
|
|
152
|
-
setConfigureLoadBalancerInitial(configureLoadBalancer);
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
void doItAsync();
|
|
68
|
+
setConfigureLoadBalancerInitial(values.configureLoadBalancer);
|
|
69
|
+
helpers.setSubmitting(false);
|
|
70
|
+
}
|
|
157
71
|
};
|
|
158
72
|
|
|
159
73
|
const isError = !!error?.title; // this is a communication error only (not the one from agentServiceConfig)
|
|
@@ -161,75 +75,138 @@ export const CimConfigurationModal: React.FC<CimConfigurationModalProps> = ({
|
|
|
161
75
|
const isConfigure =
|
|
162
76
|
!isEdit || !configureLoadBalancerInitial; /* The only possible change for the Edit flow */
|
|
163
77
|
|
|
164
|
-
const isConfigureDisabled = !!(
|
|
165
|
-
isSaving ||
|
|
166
|
-
dbVolSizeValidation ||
|
|
167
|
-
fsVolSizeValidation ||
|
|
168
|
-
imgVolSizeValidation ||
|
|
169
|
-
(isEdit && configureLoadBalancerInitial === configureLoadBalancer)
|
|
170
|
-
);
|
|
171
|
-
|
|
172
78
|
const isInProgressPeriod = isCIMConfigProgressing({ agentServiceConfig });
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
]
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
79
|
+
|
|
80
|
+
const initialValues: CimConfigurationValues = {
|
|
81
|
+
dbVolSize: getStorageSizeGiB(
|
|
82
|
+
10,
|
|
83
|
+
agentServiceConfig?.spec?.databaseStorage?.resources?.requests?.storage,
|
|
84
|
+
),
|
|
85
|
+
fsVolSize: getStorageSizeGiB(
|
|
86
|
+
100,
|
|
87
|
+
agentServiceConfig?.spec?.filesystemStorage?.resources?.requests?.storage,
|
|
88
|
+
),
|
|
89
|
+
imgVolSize: getStorageSizeGiB(
|
|
90
|
+
50,
|
|
91
|
+
agentServiceConfig?.spec?.imageStorage?.resources?.requests?.storage,
|
|
92
|
+
),
|
|
93
|
+
configureLoadBalancer: platform === 'AWS',
|
|
94
|
+
addCiscoIntersightUrl: !!agentServiceConfig?.metadata?.annotations?.['ciscoIntersightURL'],
|
|
95
|
+
ciscoIntersightURL: agentServiceConfig?.metadata?.annotations?.['ciscoIntersightURL'] || '',
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const validationSchema = Yup.object<CimConfigurationValues>({
|
|
99
|
+
dbVolSize: Yup.number().min(MIN_DB_VOL_SIZE, t('ai:Minimal value is 1Gi')).required(),
|
|
100
|
+
fsVolSize: Yup.number().min(MIN_FS_VOL_SIZE, t('ai:Minimal value is 1Gi')).required(),
|
|
101
|
+
imgVolSize: Yup.number().min(MIN_IMG_VOL_SIZE, t('ai:Minimal value is 10Gi')).required(),
|
|
102
|
+
configureLoadBalancer: Yup.boolean(),
|
|
103
|
+
ciscoIntersightURL: Yup.string().when('addCiscoIntersightUrl', {
|
|
104
|
+
is: true,
|
|
105
|
+
then: (schema) =>
|
|
106
|
+
schema
|
|
107
|
+
.required(t('ai:Cisco Intersight URL is required'))
|
|
108
|
+
.test(
|
|
109
|
+
'url-valid',
|
|
110
|
+
t('ai:Cisco Intersight URL must be a valid URL starting with "http://" or "https://"'),
|
|
111
|
+
(val) => {
|
|
112
|
+
try {
|
|
113
|
+
const url = parseUrl(val);
|
|
114
|
+
return url.protocol === 'http' || url.protocol === 'https';
|
|
115
|
+
} catch (error) {
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
),
|
|
120
|
+
}),
|
|
121
|
+
});
|
|
197
122
|
|
|
198
123
|
return (
|
|
199
|
-
<
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
onClose={onClose}
|
|
204
|
-
actions={actions}
|
|
205
|
-
variant={ModalVariant.medium}
|
|
206
|
-
id="cim-config-modal"
|
|
207
|
-
className="cim-config-modal"
|
|
124
|
+
<Formik
|
|
125
|
+
initialValues={initialValues}
|
|
126
|
+
validationSchema={validationSchema}
|
|
127
|
+
onSubmit={onConfigure}
|
|
208
128
|
>
|
|
209
|
-
{
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
{
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
129
|
+
{({ values, handleSubmit, isValid, isSubmitting }) => (
|
|
130
|
+
<Modal
|
|
131
|
+
aria-label={t('ai:Configure host inventory settings')}
|
|
132
|
+
title={t('ai:Configure host inventory settings')}
|
|
133
|
+
isOpen={isOpen}
|
|
134
|
+
onClose={onClose}
|
|
135
|
+
actions={
|
|
136
|
+
isConfigure
|
|
137
|
+
? [
|
|
138
|
+
<Button
|
|
139
|
+
key="configure"
|
|
140
|
+
variant={ButtonVariant.primary}
|
|
141
|
+
isDisabled={
|
|
142
|
+
!!(
|
|
143
|
+
isSubmitting ||
|
|
144
|
+
!isValid ||
|
|
145
|
+
(isEdit && configureLoadBalancerInitial === values.configureLoadBalancer)
|
|
146
|
+
)
|
|
147
|
+
}
|
|
148
|
+
onClick={() => void handleSubmit()}
|
|
149
|
+
>
|
|
150
|
+
{t('ai:Configure')}
|
|
151
|
+
</Button>,
|
|
152
|
+
<Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
|
|
153
|
+
{t('ai:Cancel')}
|
|
154
|
+
</Button>,
|
|
155
|
+
]
|
|
156
|
+
: [
|
|
157
|
+
<Button key="close" variant={ButtonVariant.primary} onClick={onClose}>
|
|
158
|
+
{t('ai:Close')}
|
|
159
|
+
</Button>,
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
variant={ModalVariant.medium}
|
|
163
|
+
id="cim-config-modal"
|
|
164
|
+
>
|
|
165
|
+
<Stack hasGutter>
|
|
166
|
+
<StackItem>
|
|
167
|
+
<Content>
|
|
168
|
+
{t(
|
|
169
|
+
'ai:Configuring the host inventory settings will enable the Central Infrastructure Management.',
|
|
170
|
+
)}
|
|
171
|
+
</Content>
|
|
172
|
+
</StackItem>
|
|
173
|
+
|
|
174
|
+
{isError && (
|
|
175
|
+
<StackItem>
|
|
176
|
+
<Alert title={error.title} variant={error.variant || AlertVariant.danger} isInline>
|
|
177
|
+
{error.message}
|
|
178
|
+
</Alert>
|
|
179
|
+
</StackItem>
|
|
180
|
+
)}
|
|
181
|
+
|
|
182
|
+
<StackItem>
|
|
183
|
+
<CimConfigDisconnectedAlert docDisconnectedUrl={docDisconnectedUrl} />
|
|
184
|
+
</StackItem>
|
|
185
|
+
|
|
186
|
+
<StackItem>
|
|
187
|
+
<CimConfigurationFormFields
|
|
188
|
+
isEdit={isEdit}
|
|
189
|
+
platform={platform}
|
|
190
|
+
isInProgressPeriod={isInProgressPeriod}
|
|
191
|
+
docConfigUrl={docConfigUrl}
|
|
192
|
+
docConfigAwsUrl={docConfigAwsUrl}
|
|
193
|
+
configureLoadBalancerInitial={configureLoadBalancerInitial}
|
|
194
|
+
setConfigureLoadBalancerInitial={setConfigureLoadBalancerInitial}
|
|
195
|
+
/>
|
|
196
|
+
</StackItem>
|
|
197
|
+
|
|
198
|
+
{isConfigure && (
|
|
199
|
+
<StackItem>
|
|
200
|
+
<Alert
|
|
201
|
+
variant={AlertVariant.warning}
|
|
202
|
+
title={t('ai:Storage sizes cannot be changed once you configure.')}
|
|
203
|
+
isInline
|
|
204
|
+
/>
|
|
205
|
+
</StackItem>
|
|
206
|
+
)}
|
|
207
|
+
</Stack>
|
|
208
|
+
</Modal>
|
|
232
209
|
)}
|
|
233
|
-
</
|
|
210
|
+
</Formik>
|
|
234
211
|
);
|
|
235
212
|
};
|