@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
|
@@ -8,14 +8,14 @@ import {
|
|
|
8
8
|
WizardFooter,
|
|
9
9
|
} from '@patternfly/react-core';
|
|
10
10
|
import * as React from 'react';
|
|
11
|
-
import { canNextFromReviewStep } from '
|
|
11
|
+
import { canNextFromReviewStep } from '../wizardTransition';
|
|
12
12
|
import {
|
|
13
13
|
AgentClusterInstallK8sResource,
|
|
14
14
|
AgentK8sResource,
|
|
15
15
|
ClusterDeploymentK8sResource,
|
|
16
16
|
ClusterImageSetK8sResource,
|
|
17
17
|
InfraEnvK8sResource,
|
|
18
|
-
} from '
|
|
18
|
+
} from '../../../types';
|
|
19
19
|
import {
|
|
20
20
|
ClusterWizardStepHeader,
|
|
21
21
|
DetailList,
|
|
@@ -24,18 +24,25 @@ import {
|
|
|
24
24
|
ClusterValidations,
|
|
25
25
|
HostsValidations,
|
|
26
26
|
useAlerts,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
import {
|
|
30
|
-
|
|
27
|
+
getPlatforms,
|
|
28
|
+
} from '../../../../common';
|
|
29
|
+
import {
|
|
30
|
+
getSelectedVersion,
|
|
31
|
+
getAICluster,
|
|
32
|
+
getClusterDeploymentCpuArchitecture,
|
|
33
|
+
} from '../../helpers';
|
|
34
|
+
import { isAgentOfCluster } from '../helpers';
|
|
35
|
+
import { wizardStepNames } from '../constants';
|
|
31
36
|
import {
|
|
32
37
|
wizardStepsValidationsMap,
|
|
33
38
|
ClusterWizardStepsType,
|
|
34
39
|
allClusterWizardSoftValidationIds,
|
|
35
|
-
} from '
|
|
36
|
-
import { useTranslation } from '
|
|
37
|
-
import { ClusterDeploymentWizardContext } from '
|
|
38
|
-
import {
|
|
40
|
+
} from '../wizardTransition';
|
|
41
|
+
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
42
|
+
import { ClusterDeploymentWizardContext } from '../ClusterDeploymentWizardContext';
|
|
43
|
+
import { ReviewConfigMapsTable } from './ReviewConfigMapsTable';
|
|
44
|
+
import { ValidationSection } from '../components/ValidationSection';
|
|
45
|
+
import { PlatformType } from '@openshift-assisted/types/assisted-installer-service';
|
|
39
46
|
|
|
40
47
|
type ClusterDeploymentReviewStepProps = {
|
|
41
48
|
clusterDeployment: ClusterDeploymentK8sResource;
|
|
@@ -47,7 +54,7 @@ type ClusterDeploymentReviewStepProps = {
|
|
|
47
54
|
infraEnv?: InfraEnvK8sResource;
|
|
48
55
|
};
|
|
49
56
|
|
|
50
|
-
const ClusterDeploymentReviewStep = ({
|
|
57
|
+
export const ClusterDeploymentReviewStep = ({
|
|
51
58
|
agentClusterInstall,
|
|
52
59
|
agents,
|
|
53
60
|
onFinish,
|
|
@@ -77,7 +84,7 @@ const ClusterDeploymentReviewStep = ({
|
|
|
77
84
|
await onFinish();
|
|
78
85
|
} catch (err) {
|
|
79
86
|
const error = err as Error;
|
|
80
|
-
addAlert({ title: error.message || t('ai:An error
|
|
87
|
+
addAlert({ title: error.message || t('ai:An error occurred while starting installation.') });
|
|
81
88
|
} finally {
|
|
82
89
|
setSubmitting(false);
|
|
83
90
|
}
|
|
@@ -97,6 +104,10 @@ const ClusterDeploymentReviewStep = ({
|
|
|
97
104
|
useWizardFooter(footer);
|
|
98
105
|
|
|
99
106
|
const openShiftVersion = getSelectedVersion(clusterImages, agentClusterInstall);
|
|
107
|
+
const platform =
|
|
108
|
+
getPlatforms(t)[
|
|
109
|
+
(agentClusterInstall?.spec?.platformType?.toLowerCase() || 'baremetal') as PlatformType
|
|
110
|
+
];
|
|
100
111
|
|
|
101
112
|
const cluster = React.useMemo(
|
|
102
113
|
() => getAICluster({ clusterDeployment, agentClusterInstall, agents: clusterAgents }),
|
|
@@ -127,6 +138,11 @@ const ClusterDeploymentReviewStep = ({
|
|
|
127
138
|
value={cpuArchitecture}
|
|
128
139
|
testId="cpu-architecture"
|
|
129
140
|
/>
|
|
141
|
+
<DetailItem
|
|
142
|
+
title={t('ai:External partner platform')}
|
|
143
|
+
value={platform}
|
|
144
|
+
testId="platform-type"
|
|
145
|
+
/>
|
|
130
146
|
<DetailItem
|
|
131
147
|
title={t('ai:API IP')}
|
|
132
148
|
value={agentClusterInstall?.status?.apiVIP || agentClusterInstall?.spec?.apiVIP}
|
|
@@ -143,6 +159,13 @@ const ClusterDeploymentReviewStep = ({
|
|
|
143
159
|
value={<ReviewHostsInventory hosts={cluster.hosts} />}
|
|
144
160
|
/>
|
|
145
161
|
|
|
162
|
+
{!!agentClusterInstall.spec?.manifestsConfigMapRefs?.length ? (
|
|
163
|
+
<DetailItem
|
|
164
|
+
title={t('ai:Custom manifests')}
|
|
165
|
+
value={<ReviewConfigMapsTable agentClusterInstall={agentClusterInstall} />}
|
|
166
|
+
/>
|
|
167
|
+
) : undefined}
|
|
168
|
+
|
|
146
169
|
<DetailItem
|
|
147
170
|
title={t('ai:Cluster validations')}
|
|
148
171
|
value={
|
|
@@ -173,7 +196,7 @@ const ClusterDeploymentReviewStep = ({
|
|
|
173
196
|
{syncError && (
|
|
174
197
|
<GridItem>
|
|
175
198
|
<ValidationSection currentStepId={'review'} hosts={[]}>
|
|
176
|
-
<Alert variant={AlertVariant.danger} title={t('ai:An error
|
|
199
|
+
<Alert variant={AlertVariant.danger} title={t('ai:An error occurred')} isInline>
|
|
177
200
|
{syncError}
|
|
178
201
|
</Alert>
|
|
179
202
|
</ValidationSection>
|
|
@@ -182,5 +205,3 @@ const ClusterDeploymentReviewStep = ({
|
|
|
182
205
|
</Grid>
|
|
183
206
|
);
|
|
184
207
|
};
|
|
185
|
-
|
|
186
|
-
export default ClusterDeploymentReviewStep;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { useConfigMaps } from '../../../hooks';
|
|
3
|
+
import { Table, TableVariant, Tbody, Td, Tr } from '@patternfly/react-table';
|
|
4
|
+
import { genericTableRowKey, LoadingState } from '../../../../common';
|
|
5
|
+
import { AgentClusterInstallK8sResource } from '../../../types';
|
|
6
|
+
|
|
7
|
+
export const ReviewConfigMapsTable = ({
|
|
8
|
+
agentClusterInstall,
|
|
9
|
+
}: {
|
|
10
|
+
agentClusterInstall: AgentClusterInstallK8sResource;
|
|
11
|
+
}) => {
|
|
12
|
+
const [configMaps, loaded] = useConfigMaps({
|
|
13
|
+
namespace: agentClusterInstall.metadata?.namespace,
|
|
14
|
+
isList: true,
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
const customManifests = React.useMemo(() => {
|
|
18
|
+
const maps = configMaps.filter((configMap) =>
|
|
19
|
+
agentClusterInstall.spec?.manifestsConfigMapRefs
|
|
20
|
+
?.flatMap((ref) => ref.name)
|
|
21
|
+
.includes(configMap.metadata?.name || ''),
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
return maps
|
|
25
|
+
.map((map, index) => [
|
|
26
|
+
{
|
|
27
|
+
rowId: `config-map-${index}`,
|
|
28
|
+
cells: [{ title: map.metadata?.name as string, isExpanded: true, level: 1, posInset: 1 }],
|
|
29
|
+
},
|
|
30
|
+
...Object.keys(map.data || {}).map((key) => ({
|
|
31
|
+
rowId: `config-map-${index}-${key}`,
|
|
32
|
+
cells: [
|
|
33
|
+
{
|
|
34
|
+
title: (
|
|
35
|
+
<>
|
|
36
|
+
<span style={{ width: '1rem', display: 'inline-block' }} />
|
|
37
|
+
{key}
|
|
38
|
+
</>
|
|
39
|
+
),
|
|
40
|
+
posInset: 2,
|
|
41
|
+
level: 2,
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
})),
|
|
45
|
+
])
|
|
46
|
+
.flat();
|
|
47
|
+
}, [agentClusterInstall.spec?.manifestsConfigMapRefs, configMaps]);
|
|
48
|
+
|
|
49
|
+
return loaded ? (
|
|
50
|
+
<Table
|
|
51
|
+
variant={TableVariant.compact}
|
|
52
|
+
borders={false}
|
|
53
|
+
data-testid="review-custom-manifests-table"
|
|
54
|
+
>
|
|
55
|
+
<Tbody>
|
|
56
|
+
{customManifests.map((row, i) => (
|
|
57
|
+
<Tr key={genericTableRowKey(row.rowId)}>
|
|
58
|
+
{row.cells.map(({ title, ...props }, j) => (
|
|
59
|
+
<Td key={`cell-${i}-${j}`} {...props}>
|
|
60
|
+
{title}
|
|
61
|
+
</Td>
|
|
62
|
+
))}
|
|
63
|
+
</Tr>
|
|
64
|
+
))}
|
|
65
|
+
</Tbody>
|
|
66
|
+
</Table>
|
|
67
|
+
) : (
|
|
68
|
+
<LoadingState />
|
|
69
|
+
);
|
|
70
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ClusterDeploymentReviewStep';
|
|
@@ -44,6 +44,7 @@ export type ClusterDeploymentWizardStepsType =
|
|
|
44
44
|
| 'hosts-selection'
|
|
45
45
|
| 'hosts-discovery'
|
|
46
46
|
| 'networking'
|
|
47
|
+
| 'custom-manifests'
|
|
47
48
|
| 'review';
|
|
48
49
|
|
|
49
50
|
export type ClusterDeploymentDetailsProps = {
|
|
@@ -177,6 +178,7 @@ export type ClusterDeploymentHostsSelectionProps = {
|
|
|
177
178
|
onAutoSelectChange: VoidFunction;
|
|
178
179
|
onHostSelect: VoidFunction;
|
|
179
180
|
isNutanix: boolean;
|
|
181
|
+
hostsBinding?: boolean;
|
|
180
182
|
};
|
|
181
183
|
|
|
182
184
|
export type InfraEnvAgentTableProps = Pick<
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
InfraEnvK8sResource,
|
|
12
12
|
} from '../../types';
|
|
13
13
|
import { getAICluster } from '../helpers';
|
|
14
|
-
import { defaultNetworkSettings } from './ClusterDeploymentNetworkingForm';
|
|
15
14
|
import { useDeepCompareMemoize } from '../../../common/hooks';
|
|
16
15
|
import {
|
|
17
16
|
HostSubnets,
|
|
18
17
|
hostPrefixValidationSchema,
|
|
19
18
|
ipBlockValidationSchema,
|
|
20
19
|
vipArrayValidationSchema,
|
|
21
|
-
|
|
20
|
+
sshPublicKeyListValidationSchema,
|
|
22
21
|
hostSubnetValidationSchema,
|
|
23
22
|
httpProxyValidationSchema,
|
|
24
23
|
noProxyValidationSchema,
|
|
24
|
+
CLUSTER_DEFAULT_NETWORK_SETTINGS_IPV4,
|
|
25
25
|
} from '../../../common';
|
|
26
26
|
import { ClusterDeploymentNetworkingValues } from './types';
|
|
27
27
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
@@ -52,7 +52,7 @@ const getNetworkConfigurationValidationSchema = (
|
|
|
52
52
|
serviceNetworkCidr: ipBlockValidationSchema(values.clusterNetworkCidr),
|
|
53
53
|
apiVips: vipArrayValidationSchema(hostSubnets, values, initialValues.apiVips),
|
|
54
54
|
ingressVips: vipArrayValidationSchema(hostSubnets, values, initialValues.ingressVips),
|
|
55
|
-
sshPublicKey:
|
|
55
|
+
sshPublicKey: sshPublicKeyListValidationSchema,
|
|
56
56
|
hostSubnet: hostSubnetValidationSchema,
|
|
57
57
|
httpProxy: httpProxyValidationSchema({ values, pairValueName: 'httpsProxy' }),
|
|
58
58
|
httpsProxy: httpProxyValidationSchema({ values, pairValueName: 'httpProxy' }), // share the schema, httpS is currently not supported
|
|
@@ -79,7 +79,7 @@ export const useNetworkingFormik = ({
|
|
|
79
79
|
agents,
|
|
80
80
|
});
|
|
81
81
|
return {
|
|
82
|
-
...getNetworkInitialValues(cluster,
|
|
82
|
+
...getNetworkInitialValues(cluster, CLUSTER_DEFAULT_NETWORK_SETTINGS_IPV4),
|
|
83
83
|
enableProxy: false,
|
|
84
84
|
editProxy: false,
|
|
85
85
|
};
|
|
@@ -15,6 +15,7 @@ export type ClusterWizardStepsType =
|
|
|
15
15
|
| 'hosts-selection'
|
|
16
16
|
| 'hosts-discovery'
|
|
17
17
|
| 'networking'
|
|
18
|
+
| 'custom-manifests'
|
|
18
19
|
| 'review';
|
|
19
20
|
|
|
20
21
|
const clusterDetailsStepValidationsMap: WizardStepValidationMap = {
|
|
@@ -98,6 +99,7 @@ export const wizardStepsValidationsMap: WizardStepsValidationMap<ClusterWizardSt
|
|
|
98
99
|
'hosts-discovery': hostDiscoveryStepValidationsMap,
|
|
99
100
|
'hosts-selection': hostDiscoveryStepValidationsMap,
|
|
100
101
|
networking: networkingStepValidationsMap,
|
|
102
|
+
'custom-manifests': networkingStepValidationsMap,
|
|
101
103
|
review: reviewStepValidationsMap,
|
|
102
104
|
};
|
|
103
105
|
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
PullSecret,
|
|
9
9
|
} from '../../../../../common';
|
|
10
10
|
import { useTranslation } from '../../../../../common/hooks/use-translation-wrapper';
|
|
11
|
-
import { BaseDnsHelperText } from '../../../ClusterDeployment/ClusterDetailsFormFields';
|
|
11
|
+
import { BaseDnsHelperText } from '../../../ClusterDeployment/clusterDetails/ClusterDetailsFormFields';
|
|
12
12
|
import { useTemptiflySync } from '../../hooks/useTemptiflySync';
|
|
13
13
|
import { DetailsFormProps, DetailsFormValues } from './types';
|
|
14
14
|
|
|
@@ -37,20 +37,15 @@ const DetailsForm: React.FC<DetailsFormProps> = ({
|
|
|
37
37
|
[ocpVersions],
|
|
38
38
|
);
|
|
39
39
|
|
|
40
|
-
const
|
|
40
|
+
const additionalSelectOption = React.useMemo(() => {
|
|
41
41
|
if (
|
|
42
42
|
values.customOpenshiftSelect &&
|
|
43
|
-
!selectOptions.some((option) => option.value === values.customOpenshiftSelect
|
|
43
|
+
!selectOptions.some((option) => option.value === values.customOpenshiftSelect)
|
|
44
44
|
) {
|
|
45
|
-
return
|
|
46
|
-
{
|
|
47
|
-
value: values.customOpenshiftSelect.value,
|
|
48
|
-
label: values.customOpenshiftSelect.label,
|
|
49
|
-
},
|
|
50
|
-
];
|
|
45
|
+
return allVersions.find((version) => version.value === values.customOpenshiftSelect);
|
|
51
46
|
}
|
|
52
|
-
return
|
|
53
|
-
}, [selectOptions, values.customOpenshiftSelect]);
|
|
47
|
+
return undefined;
|
|
48
|
+
}, [allVersions, selectOptions, values.customOpenshiftSelect]);
|
|
54
49
|
|
|
55
50
|
return (
|
|
56
51
|
<Form>
|
|
@@ -75,7 +70,7 @@ const DetailsForm: React.FC<DetailsFormProps> = ({
|
|
|
75
70
|
versions={ocpVersions}
|
|
76
71
|
showReleasesLink={false}
|
|
77
72
|
showOpenshiftVersionModal={() => setOpenshiftVersionModalOpen(true)}
|
|
78
|
-
|
|
73
|
+
customItem={additionalSelectOption}
|
|
79
74
|
/>
|
|
80
75
|
{openshiftVersionModalOpen && (
|
|
81
76
|
<OpenShiftVersionModal
|
|
@@ -62,7 +62,7 @@ const getPatches = (values: NodePoolFormValues, nodePool: NodePoolK8sResource) =
|
|
|
62
62
|
);
|
|
63
63
|
}
|
|
64
64
|
} else {
|
|
65
|
-
if (
|
|
65
|
+
if (nodePool.spec.replicas !== undefined) {
|
|
66
66
|
patches.push({
|
|
67
67
|
op: 'replace',
|
|
68
68
|
value: values.count,
|
|
@@ -123,7 +123,7 @@ const ManageHostsModal = ({
|
|
|
123
123
|
agentLabels: labelsToFormikValue(
|
|
124
124
|
nodePool.spec.platform?.agent?.agentLabelSelector?.matchLabels || {},
|
|
125
125
|
),
|
|
126
|
-
count: nodePool.spec.replicas ||
|
|
126
|
+
count: nodePool.spec.replicas || 0,
|
|
127
127
|
useAutoscaling: !!nodePool.spec.autoScaling,
|
|
128
128
|
autoscaling: {
|
|
129
129
|
minReplicas: nodePool.spec.autoScaling?.min || 1,
|
|
@@ -22,7 +22,9 @@ import {
|
|
|
22
22
|
cpuCoresColumn,
|
|
23
23
|
discoveredAtColumn,
|
|
24
24
|
disksColumn,
|
|
25
|
+
gpusColumn,
|
|
25
26
|
memoryColumn,
|
|
27
|
+
labelsColumn,
|
|
26
28
|
} from '../../../common/components/hosts/tableUtils';
|
|
27
29
|
import {
|
|
28
30
|
DiscoveryTroubleshootingModal,
|
|
@@ -122,6 +124,9 @@ const InfraEnvAgentTable: React.FC<InfraEnvAgentTableProps> = ({
|
|
|
122
124
|
setHostnameFilter,
|
|
123
125
|
setStatusFilter,
|
|
124
126
|
statusFilter,
|
|
127
|
+
labelFilter,
|
|
128
|
+
setLabelFilter,
|
|
129
|
+
hostLabels,
|
|
125
130
|
filteredHosts: hosts,
|
|
126
131
|
sorted,
|
|
127
132
|
} = useAgentsFilter({
|
|
@@ -157,8 +162,10 @@ const InfraEnvAgentTable: React.FC<InfraEnvAgentTableProps> = ({
|
|
|
157
162
|
clusterColumn(agents, agentMachines, getClusterDeploymentLink, t),
|
|
158
163
|
discoveredAtColumn(t),
|
|
159
164
|
cpuCoresColumn(t),
|
|
165
|
+
gpusColumn(t),
|
|
160
166
|
memoryColumn(t),
|
|
161
167
|
disksColumn(t),
|
|
168
|
+
labelsColumn(t),
|
|
162
169
|
].filter(Boolean),
|
|
163
170
|
[
|
|
164
171
|
t,
|
|
@@ -219,6 +226,9 @@ const InfraEnvAgentTable: React.FC<InfraEnvAgentTableProps> = ({
|
|
|
219
226
|
hostnameFilter={hostnameFilter}
|
|
220
227
|
statusFilter={statusFilter}
|
|
221
228
|
setStatusFilter={setStatusFilter}
|
|
229
|
+
hostLabels={hostLabels}
|
|
230
|
+
labelFilter={labelFilter}
|
|
231
|
+
setLabelFilter={setLabelFilter}
|
|
222
232
|
selectedHostIDs={selectedHostIDs}
|
|
223
233
|
setHostnameFilter={setHostnameFilter}
|
|
224
234
|
{...paginationProps}
|
|
@@ -241,6 +251,7 @@ const InfraEnvAgentTable: React.FC<InfraEnvAgentTableProps> = ({
|
|
|
241
251
|
onClearFilters={() => {
|
|
242
252
|
setHostnameFilter(undefined);
|
|
243
253
|
setStatusFilter([]);
|
|
254
|
+
setLabelFilter([]);
|
|
244
255
|
}}
|
|
245
256
|
/>
|
|
246
257
|
) : (
|
|
@@ -66,11 +66,14 @@ type InfraTableToolbarProps = ReturnType<typeof usePagination> & {
|
|
|
66
66
|
setSelectedHostIDs: (items: string[]) => void;
|
|
67
67
|
massActions: React.ReactNode[];
|
|
68
68
|
hosts: Host[];
|
|
69
|
+
hostLabels: { [key in string]: number };
|
|
69
70
|
statusFilter: string[];
|
|
71
|
+
labelFilter: string[];
|
|
70
72
|
statusCount: StatusCount;
|
|
71
73
|
hostnameFilter: string | undefined;
|
|
72
74
|
setHostnameFilter: (hostname: string | undefined) => void;
|
|
73
75
|
setStatusFilter: (status: string[]) => void;
|
|
76
|
+
setLabelFilter: (label: string[]) => void;
|
|
74
77
|
selectedHostIDs: string[];
|
|
75
78
|
};
|
|
76
79
|
|
|
@@ -78,17 +81,22 @@ const InfraTableToolbar: React.FC<InfraTableToolbarProps> = ({
|
|
|
78
81
|
setSelectedHostIDs,
|
|
79
82
|
massActions,
|
|
80
83
|
hosts,
|
|
84
|
+
hostLabels,
|
|
81
85
|
statusFilter,
|
|
86
|
+
labelFilter,
|
|
82
87
|
statusCount,
|
|
83
88
|
hostnameFilter,
|
|
84
89
|
setHostnameFilter,
|
|
85
90
|
setStatusFilter,
|
|
91
|
+
setLabelFilter,
|
|
86
92
|
selectedHostIDs,
|
|
87
93
|
...paginationProps
|
|
88
94
|
}) => {
|
|
89
95
|
const { t } = useTranslation();
|
|
90
96
|
const agentStatuses = agentStatus(t);
|
|
91
97
|
const [statusFilterOpen, setStatusFilterOpen] = React.useState(false);
|
|
98
|
+
const [labelFilterOpen, setLabelFilterOpen] = React.useState(false);
|
|
99
|
+
|
|
92
100
|
const itemIDs = React.useMemo(() => hosts.map((h) => h.id), [hosts]);
|
|
93
101
|
const filterStatuses = React.useMemo(() => getStatusesForFilter(agentStatuses), [agentStatuses]);
|
|
94
102
|
const categoryLabels = getCategoryLabels(t);
|
|
@@ -106,13 +114,29 @@ const InfraTableToolbar: React.FC<InfraTableToolbarProps> = ({
|
|
|
106
114
|
}
|
|
107
115
|
};
|
|
108
116
|
|
|
117
|
+
const onLabelFilterToggle = () => setLabelFilterOpen(!labelFilterOpen);
|
|
118
|
+
const onLabelFilterSelect = (
|
|
119
|
+
e?: React.MouseEvent<Element, MouseEvent>,
|
|
120
|
+
value?: string | number,
|
|
121
|
+
) => {
|
|
122
|
+
if (!labelFilter?.includes(value as string)) {
|
|
123
|
+
const newItems = (labelFilter ? [...labelFilter, value] : [value]) as string[];
|
|
124
|
+
setLabelFilter(newItems);
|
|
125
|
+
} else {
|
|
126
|
+
setLabelFilter(labelFilter?.filter((f) => f !== value));
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
|
|
109
130
|
return (
|
|
110
131
|
<TableToolbar
|
|
111
132
|
selectedIDs={selectedHostIDs || []}
|
|
112
133
|
itemIDs={itemIDs}
|
|
113
134
|
setSelectedIDs={setSelectedHostIDs}
|
|
114
135
|
actions={massActions}
|
|
115
|
-
clearAllFilters={() =>
|
|
136
|
+
clearAllFilters={() => {
|
|
137
|
+
setStatusFilter([]);
|
|
138
|
+
setLabelFilter([]);
|
|
139
|
+
}}
|
|
116
140
|
{...paginationProps}
|
|
117
141
|
>
|
|
118
142
|
<ToolbarItem>
|
|
@@ -123,6 +147,7 @@ const InfraTableToolbar: React.FC<InfraTableToolbarProps> = ({
|
|
|
123
147
|
onClear={() => setHostnameFilter(undefined)}
|
|
124
148
|
/>
|
|
125
149
|
</ToolbarItem>
|
|
150
|
+
|
|
126
151
|
<ToolbarItem>
|
|
127
152
|
<ToolbarFilter
|
|
128
153
|
labels={statusFilter}
|
|
@@ -175,6 +200,57 @@ const InfraTableToolbar: React.FC<InfraTableToolbarProps> = ({
|
|
|
175
200
|
</Dropdown>
|
|
176
201
|
</ToolbarFilter>
|
|
177
202
|
</ToolbarItem>
|
|
203
|
+
|
|
204
|
+
<ToolbarItem>
|
|
205
|
+
<ToolbarFilter
|
|
206
|
+
labels={labelFilter}
|
|
207
|
+
deleteLabel={(_, label) => setLabelFilter(labelFilter.filter((f) => f !== label))}
|
|
208
|
+
deleteLabelGroup={() => setLabelFilter([])}
|
|
209
|
+
categoryName={'Labels'}
|
|
210
|
+
>
|
|
211
|
+
<Dropdown
|
|
212
|
+
isOpen={labelFilterOpen}
|
|
213
|
+
onSelect={onLabelFilterSelect}
|
|
214
|
+
onOpenChange={onLabelFilterToggle}
|
|
215
|
+
shouldFocusToggleOnSelect
|
|
216
|
+
toggle={(toggleRef: React.Ref<MenuToggleElement>) => (
|
|
217
|
+
<MenuToggle
|
|
218
|
+
ref={toggleRef}
|
|
219
|
+
isFullWidth
|
|
220
|
+
onClick={onLabelFilterToggle}
|
|
221
|
+
isExpanded={labelFilterOpen}
|
|
222
|
+
icon={<FilterIcon />}
|
|
223
|
+
>
|
|
224
|
+
{t('ai:Labels')}
|
|
225
|
+
</MenuToggle>
|
|
226
|
+
)}
|
|
227
|
+
>
|
|
228
|
+
<DropdownGroup label={t('ai:Labels')}>
|
|
229
|
+
{Object.keys(hostLabels).length > 0 ? (
|
|
230
|
+
Object.entries(hostLabels).map(([label, count]) => (
|
|
231
|
+
<DropdownItem
|
|
232
|
+
hasCheckbox
|
|
233
|
+
key={`host-label-${label}`}
|
|
234
|
+
value={label}
|
|
235
|
+
isSelected={labelFilter?.includes(label)}
|
|
236
|
+
>
|
|
237
|
+
<Split hasGutter>
|
|
238
|
+
<SplitItem>{label}</SplitItem>
|
|
239
|
+
<SplitItem>
|
|
240
|
+
<Badge isRead>{count || 0}</Badge>
|
|
241
|
+
</SplitItem>
|
|
242
|
+
</Split>
|
|
243
|
+
</DropdownItem>
|
|
244
|
+
))
|
|
245
|
+
) : (
|
|
246
|
+
<DropdownItem key="no-labels" isDisabled>
|
|
247
|
+
{t('ai:No labels available')}
|
|
248
|
+
</DropdownItem>
|
|
249
|
+
)}
|
|
250
|
+
</DropdownGroup>
|
|
251
|
+
</Dropdown>
|
|
252
|
+
</ToolbarFilter>
|
|
253
|
+
</ToolbarItem>
|
|
178
254
|
</TableToolbar>
|
|
179
255
|
);
|
|
180
256
|
};
|
|
@@ -4,6 +4,10 @@ import { getClusterNameOfAgent } from './agents';
|
|
|
4
4
|
export const getIsSNOCluster = (agentClusterInstall?: AgentClusterInstallK8sResource) =>
|
|
5
5
|
agentClusterInstall?.spec?.provisionRequirements?.controlPlaneAgents === 1;
|
|
6
6
|
|
|
7
|
+
export const getIsTNACluster = (agentClusterInstall?: AgentClusterInstallK8sResource) =>
|
|
8
|
+
agentClusterInstall?.spec?.provisionRequirements.arbiterAgents === 1 &&
|
|
9
|
+
agentClusterInstall.spec.provisionRequirements.controlPlaneAgents === 2;
|
|
10
|
+
|
|
7
11
|
export const getAgentClusterInstallOfAgent = (
|
|
8
12
|
agentClusterInstalls: AgentClusterInstallK8sResource[],
|
|
9
13
|
agent?: AgentK8sResource,
|
|
@@ -18,9 +18,13 @@ const AGENT_FOR_SELECTION_STATUSES: AgentStatus[] = [
|
|
|
18
18
|
export const hostToAgent = (agents: AgentK8sResource[] = [], host: Host) =>
|
|
19
19
|
agents.find((a) => a.metadata?.uid === host.id) as AgentK8sResource;
|
|
20
20
|
|
|
21
|
-
export const getAgentsForSelection = (agents: AgentK8sResource[]) =>
|
|
21
|
+
export const getAgentsForSelection = (agents: AgentK8sResource[], isSubmitting?: boolean) =>
|
|
22
22
|
agents.filter((agent) => {
|
|
23
23
|
const key = getAgentStatusKey(agent);
|
|
24
|
+
if (isSubmitting) {
|
|
25
|
+
return [...AGENT_FOR_SELECTION_STATUSES, 'specSyncErr'].includes(key as AgentStatus);
|
|
26
|
+
}
|
|
27
|
+
|
|
24
28
|
return AGENT_FOR_SELECTION_STATUSES.includes(key as AgentStatus);
|
|
25
29
|
});
|
|
26
30
|
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import cloneDeep from 'lodash-es/cloneDeep.js';
|
|
2
2
|
import { AgentK8sResource } from '../../types/k8s/agent';
|
|
3
|
-
import {
|
|
3
|
+
import {
|
|
4
|
+
Cluster,
|
|
5
|
+
Host,
|
|
6
|
+
Inventory,
|
|
7
|
+
PlatformType,
|
|
8
|
+
} from '@openshift-assisted/types/assisted-installer-service';
|
|
4
9
|
import { ClusterDeploymentK8sResource } from '../../types/k8s/cluster-deployment';
|
|
5
10
|
import { AgentClusterInstallK8sResource } from '../../types/k8s/agent-cluster-install';
|
|
6
11
|
import { getAgentStatusKey, getClusterStatus } from './status';
|
|
@@ -70,6 +75,7 @@ export const getAIHosts = (
|
|
|
70
75
|
infraEnvId: `${agent.metadata?.namespace || ''}/${
|
|
71
76
|
agent.metadata?.labels?.['infraenvs.agent-install.openshift.io'] || ''
|
|
72
77
|
}`,
|
|
78
|
+
nodeLabels: JSON.stringify(agent.metadata?.labels || {}),
|
|
73
79
|
};
|
|
74
80
|
});
|
|
75
81
|
|
|
@@ -112,6 +118,18 @@ export const getAIHosts = (
|
|
|
112
118
|
return [...hosts, ...restBmhs];
|
|
113
119
|
};
|
|
114
120
|
|
|
121
|
+
const extractVersionFromImageSetRef = (imageSetRefName?: string): string | undefined => {
|
|
122
|
+
if (!imageSetRefName) {
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
125
|
+
// Match pattern like "4.19.18" or "4.19" in strings like "img4.19.18-multi-appsub"
|
|
126
|
+
const versionMatch = imageSetRefName.match(/(\d+\.\d+)(?:\.\d+)?/);
|
|
127
|
+
if (versionMatch && versionMatch[1]) {
|
|
128
|
+
return versionMatch[1];
|
|
129
|
+
}
|
|
130
|
+
return undefined;
|
|
131
|
+
};
|
|
132
|
+
|
|
115
133
|
export const getAICluster = ({
|
|
116
134
|
clusterDeployment,
|
|
117
135
|
agentClusterInstall,
|
|
@@ -123,9 +141,13 @@ export const getAICluster = ({
|
|
|
123
141
|
agents?: AgentK8sResource[];
|
|
124
142
|
infraEnv?: InfraEnvK8sResource;
|
|
125
143
|
}): Cluster => {
|
|
144
|
+
const imageSetRefName = agentClusterInstall?.spec?.imageSetRef?.name;
|
|
145
|
+
const extractedVersion = extractVersionFromImageSetRef(imageSetRefName);
|
|
146
|
+
|
|
126
147
|
const installVersion =
|
|
127
148
|
clusterDeployment.status?.installVersion ||
|
|
128
|
-
clusterDeployment.metadata?.labels?.[OCP_VERSION_MAJOR_MINOR]
|
|
149
|
+
clusterDeployment.metadata?.labels?.[OCP_VERSION_MAJOR_MINOR] ||
|
|
150
|
+
extractedVersion;
|
|
129
151
|
const [status, statusInfo] = getClusterStatus(agentClusterInstall);
|
|
130
152
|
const aiCluster: Cluster = {
|
|
131
153
|
id: clusterDeployment.metadata?.uid || '',
|
|
@@ -174,6 +196,9 @@ export const getAICluster = ({
|
|
|
174
196
|
cpuArchitecture: getClusterDeploymentCpuArchitecture(clusterDeployment, infraEnv),
|
|
175
197
|
networkType: agentClusterInstall?.spec?.networking.networkType,
|
|
176
198
|
controlPlaneCount: agentClusterInstall?.spec?.provisionRequirements.controlPlaneAgents || 3,
|
|
199
|
+
platform: {
|
|
200
|
+
type: (agentClusterInstall?.spec?.platformType?.toLowerCase() || 'baremetal') as PlatformType,
|
|
201
|
+
},
|
|
177
202
|
};
|
|
178
203
|
/*
|
|
179
204
|
aiCluster.agentSelectorMasterLabels =
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from '../../types';
|
|
9
9
|
import { CpuArchitecture, OpenshiftVersionOptionType } from '../../../common';
|
|
10
10
|
import { OpenshiftVersion } from '@openshift-assisted/types/assisted-installer-service';
|
|
11
|
-
import {
|
|
11
|
+
import { getComparableVersionInt } from '../../../common/utils';
|
|
12
12
|
|
|
13
13
|
export const getVersionFromReleaseImage = (releaseImage = '') => {
|
|
14
14
|
const match = /.+:(\d+\.\d+(?:\.\d+)?(?:-\w+)?)/gm.exec(releaseImage);
|
|
@@ -123,5 +123,9 @@ export const getCurrentClusterVersion = (cv?: ClusterVersionK8sResource): string
|
|
|
123
123
|
|
|
124
124
|
export const getNetworkType = (
|
|
125
125
|
ocpVersion: OpenshiftVersionOptionType | undefined,
|
|
126
|
-
): 'OVNKubernetes' | 'OpenShiftSDN' =>
|
|
127
|
-
|
|
126
|
+
): 'OVNKubernetes' | 'OpenShiftSDN' => {
|
|
127
|
+
const checkVersionNum = getComparableVersionInt(ocpVersion?.version || '');
|
|
128
|
+
const toVersionNum = getComparableVersionInt('4.12');
|
|
129
|
+
|
|
130
|
+
return !checkVersionNum || checkVersionNum >= toVersionNum ? 'OVNKubernetes' : 'OpenShiftSDN';
|
|
131
|
+
};
|