@openshift-assisted/ui-lib 2.9.14-cim → 2.10.0-cim
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/@types/cim/components/Agent/AgentStatus.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/AgentTable.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/AgentsSelectionTable.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/BMCForm.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/tableUtils.d.ts +11 -6
- package/build/@types/cim/components/Agent/tableUtils.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +2 -2
- package/build/@types/cim/components/Hypershift/DetailsPage/ClusterInstallationProgress.d.ts +2 -6
- package/build/@types/cim/components/Hypershift/DetailsPage/ClusterInstallationProgress.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/ConditionsTable.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/HostedClusterProgress.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/NodePoolsProgress.d.ts +2 -6
- package/build/@types/cim/components/Hypershift/DetailsPage/NodePoolsProgress.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/NodePoolsTable.d.ts +2 -6
- package/build/@types/cim/components/Hypershift/DetailsPage/NodePoolsTable.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/types.d.ts +2 -8
- package/build/@types/cim/components/Hypershift/HostedClusterWizard/HostsStep/types.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/forms/NodePoolAgentsForm.d.ts +3 -1
- package/build/@types/cim/components/Hypershift/forms/NodePoolAgentsForm.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/modals/AddNodePoolModal.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/modals/ManageHostsModal.d.ts +1 -1
- package/build/@types/cim/components/Hypershift/modals/ManageHostsModal.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/modals/NodePoolForm.d.ts +0 -8
- package/build/@types/cim/components/Hypershift/modals/NodePoolForm.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/types.d.ts +19 -1
- package/build/@types/cim/components/Hypershift/types.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/utils/status.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvAgentTable.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraTableToolbar.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agentStatus.d.ts +3 -2
- package/build/@types/cim/components/helpers/agentStatus.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agents.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/clusterDeployment.d.ts +2 -2
- package/build/@types/cim/components/helpers/status.d.ts +5 -2
- package/build/@types/cim/components/helpers/status.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/toAssisted.d.ts.map +1 -1
- package/build/@types/cim/components/modals/AddBmcHostYamlForm.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationForm.d.ts.map +1 -1
- package/build/@types/cim/components/modals/MassApproveAgentModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/MassDeleteAgentModal.d.ts.map +1 -1
- package/build/@types/common/api/assisted-service/NewFeatureSupportLevelsAPI.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/OpenShiftVersionSelect.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/KubeconfigDownload.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/OperatorsProgressItem.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ProgressBarTexts.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
- package/build/@types/common/components/featureSupportLevels/FeatureSupportLevelBadge.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostRowDetail.d.ts +1 -2
- package/build/@types/common/components/hosts/HostRowDetail.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostStatus.d.ts.map +1 -1
- package/build/@types/common/components/hosts/status.d.ts +2 -1
- package/build/@types/common/components/hosts/status.d.ts.map +1 -1
- package/build/@types/common/components/hosts/tableUtils.d.ts +1 -1
- package/build/@types/common/components/hosts/tableUtils.d.ts.map +1 -1
- package/build/@types/common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge.d.ts.map +1 -1
- package/build/@types/common/components/storage/StorageDetail.d.ts.map +1 -1
- package/build/@types/common/components/ui/BorderedIcon/BorderedIcon.d.ts +3 -2
- package/build/@types/common/components/ui/BorderedIcon/BorderedIcon.d.ts.map +1 -1
- package/build/@types/common/components/ui/ClusterEventsToolbar.d.ts.map +1 -1
- package/build/@types/common/components/ui/DeveloperPreview.d.ts +5 -0
- package/build/@types/common/components/ui/DeveloperPreview.d.ts.map +1 -0
- package/build/@types/common/components/ui/EventsList.d.ts.map +1 -1
- package/build/@types/common/components/ui/PreviewBadge.d.ts +8 -7
- package/build/@types/common/components/ui/PreviewBadge.d.ts.map +1 -1
- package/build/@types/common/components/ui/PrismCode.d.ts.map +1 -1
- package/build/@types/common/components/ui/TechnologyPreview.d.ts +5 -0
- package/build/@types/common/components/ui/TechnologyPreview.d.ts.map +1 -0
- package/build/@types/common/components/ui/formik/RichInputField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +1 -1
- package/build/@types/common/components/ui/index.d.ts +2 -0
- package/build/@types/common/components/ui/index.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +1 -1
- package/build/@types/common/types/clusters.d.ts +4 -2
- package/build/@types/common/types/clusters.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/AddHosts/day2Wizard/Day2ClusterDetails.d.ts.map +1 -1
- package/build/@types/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.d.ts.map +1 -1
- package/build/@types/ocm/components/Routes.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/CpuArchitectureDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/DiscoveryImageForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/HostInventory.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/OcmOperatorProgressItem.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/LvmCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/operators/OdfCheckbox.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts +3 -2
- package/build/@types/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerDetailCard.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ClusterDetail.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/HostInventoryExpandable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/utils.d.ts +1 -1
- package/build/@types/ocm/components/clusterDetail/utils.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/ClusterWizardContextProvider.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/OperatorsStep.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/AssistedInstallerHeader.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClusterStatus.d.ts.map +1 -1
- package/build/@types/ocm/components/clusters/ClustersListToolbar.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts +2 -0
- package/build/@types/ocm/components/featureSupportLevels/featureStateUtils.d.ts.map +1 -1
- package/build/@types/ocm/components/fetching/fetchEvents.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/HardwareStatus.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/HostsDiscoveryTable.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/NetworkingStatus.d.ts.map +1 -1
- package/build/@types/ocm/components/ui/OcmFormFields.d.ts +1 -1
- package/build/@types/ocm/components/utils.d.ts +5 -0
- package/build/@types/ocm/components/utils.d.ts.map +1 -0
- package/build/@types/ocm/hooks/use-feature.d.ts +3 -0
- package/build/@types/ocm/hooks/use-feature.d.ts.map +1 -0
- package/build/@types/ocm/index.d.ts +1 -2
- package/build/@types/ocm/index.d.ts.map +1 -1
- package/build/@types/ocm/services/ClusterDetailsService.d.ts.map +1 -1
- package/build/@types/ocm/services/ClustersService.d.ts.map +1 -1
- package/build/@types/ocm/services/Day2ClusterService.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/current-cluster/slice.d.ts +1 -2
- package/build/@types/ocm/store/slices/current-cluster/slice.d.ts.map +1 -1
- package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts +3 -2
- package/build/@types/ocm/store/slices/feature-flags/selectors.d.ts.map +1 -1
- package/build/cjs/cim/components/Agent/AgentStatus.js +4 -3
- package/build/cjs/cim/components/Agent/AgentStatus.js.map +1 -1
- package/build/cjs/cim/components/Agent/AgentTable.js +6 -3
- package/build/cjs/cim/components/Agent/AgentTable.js.map +1 -1
- package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +4 -0
- package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
- package/build/cjs/cim/components/Agent/BMCForm.js +4 -3
- package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js +2 -2
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js.map +1 -1
- package/build/cjs/cim/components/Agent/tableUtils.js +35 -37
- package/build/cjs/cim/components/Agent/tableUtils.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js +6 -3
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js +19 -2
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.js +20 -5
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/ClusterInstallationProgress.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js +10 -6
- package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js +5 -3
- package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js +3 -3
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js +2 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.js +9 -4
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js +13 -3
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.js +32 -10
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/forms/NodePoolAgentsForm.js +16 -5
- package/build/cjs/cim/components/Hypershift/forms/NodePoolAgentsForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js +5 -0
- package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js +50 -10
- package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js +1 -1
- package/build/cjs/cim/components/Hypershift/modals/NodePoolForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/utils/status.js +14 -8
- package/build/cjs/cim/components/Hypershift/utils/status.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +6 -4
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +20 -7
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +2 -2
- package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js +8 -5
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js +19 -12
- package/build/cjs/cim/components/InfraEnv/InfraTableToolbar.js.map +1 -1
- package/build/cjs/cim/components/helpers/agentStatus.js +22 -19
- package/build/cjs/cim/components/helpers/agentStatus.js.map +1 -1
- package/build/cjs/cim/components/helpers/agents.js +2 -2
- package/build/cjs/cim/components/helpers/agents.js.map +1 -1
- package/build/cjs/cim/components/helpers/status.js +40 -22
- package/build/cjs/cim/components/helpers/status.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +10 -4
- package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
- package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js +4 -3
- package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigDisconnectedAlert.js +2 -2
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigDisconnectedAlert.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigProgressAlert.js +2 -2
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigProgressAlert.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationForm.js +9 -8
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationForm.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js +2 -2
- package/build/cjs/cim/components/modals/CimConfiguration/CimStorageMissingAlert.js.map +1 -1
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js +8 -5
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js.map +1 -1
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +41 -34
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
- package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js +1 -5
- package/build/cjs/common/api/assisted-service/NewFeatureSupportLevelsAPI.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +2 -2
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +2 -2
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js +3 -3
- package/build/cjs/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js +8 -5
- package/build/cjs/common/components/clusterConfiguration/OpenShiftVersionSelect.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ClusterCredentials.js +2 -2
- package/build/cjs/common/components/clusterDetail/ClusterCredentials.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ConsoleModal.js +2 -2
- package/build/cjs/common/components/clusterDetail/ConsoleModal.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js +9 -6
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/KubeconfigDownload.js +5 -4
- package/build/cjs/common/components/clusterDetail/KubeconfigDownload.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js +10 -6
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js +6 -4
- package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js +9 -5
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.js +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +4 -4
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
- package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js +3 -2
- package/build/cjs/common/components/featureSupportLevels/FeatureSupportLevelBadge.js.map +1 -1
- package/build/cjs/common/components/hosts/DiskRole.js +2 -2
- package/build/cjs/common/components/hosts/DiskRole.js.map +1 -1
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js +8 -5
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js.map +1 -1
- package/build/cjs/common/components/hosts/HostRowDetail.js +16 -16
- package/build/cjs/common/components/hosts/HostRowDetail.js.map +1 -1
- package/build/cjs/common/components/hosts/HostStatus.js +4 -3
- package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
- package/build/cjs/common/components/hosts/HostValidationGroups.js +8 -5
- package/build/cjs/common/components/hosts/HostValidationGroups.js.map +1 -1
- package/build/cjs/common/components/hosts/Hostname.js +4 -4
- package/build/cjs/common/components/hosts/Hostname.js.map +1 -1
- package/build/cjs/common/components/hosts/HostsTable.js +2 -2
- package/build/cjs/common/components/hosts/HostsTable.js.map +1 -1
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +2 -2
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
- package/build/cjs/common/components/hosts/OcpConsoleNodesSectionLink.js +2 -2
- package/build/cjs/common/components/hosts/OcpConsoleNodesSectionLink.js.map +1 -1
- package/build/cjs/common/components/hosts/TableToolbar.js +3 -3
- package/build/cjs/common/components/hosts/TableToolbar.js.map +1 -1
- package/build/cjs/common/components/hosts/VMRebootConfigurationInfo.js +2 -2
- package/build/cjs/common/components/hosts/VMRebootConfigurationInfo.js.map +1 -1
- package/build/cjs/common/components/hosts/status.js +96 -83
- package/build/cjs/common/components/hosts/status.js.map +1 -1
- package/build/cjs/common/components/hosts/tableUtils.js +3 -3
- package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
- package/build/cjs/common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge.js +3 -2
- package/build/cjs/common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge.js.map +1 -1
- package/build/cjs/common/components/storage/DisksTable.js +11 -11
- package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
- package/build/cjs/common/components/storage/StorageDetail.js +3 -1
- package/build/cjs/common/components/storage/StorageDetail.js.map +1 -1
- package/build/cjs/common/components/storage/StorageUtils.js +2 -2
- package/build/cjs/common/components/storage/StorageUtils.js.map +1 -1
- package/build/cjs/common/components/ui/BorderedIcon/BorderedIcon.js +10 -10
- package/build/cjs/common/components/ui/BorderedIcon/BorderedIcon.js.map +1 -1
- package/build/cjs/common/components/ui/ClusterEventsToolbar.js +4 -3
- package/build/cjs/common/components/ui/ClusterEventsToolbar.js.map +1 -1
- package/build/cjs/common/components/ui/DeveloperPreview.js +14 -0
- package/build/cjs/common/components/ui/DeveloperPreview.js.map +1 -0
- package/build/cjs/common/components/ui/EventsList.js +8 -5
- package/build/cjs/common/components/ui/EventsList.js.map +1 -1
- package/build/cjs/common/components/ui/ExternalLink.js +2 -2
- package/build/cjs/common/components/ui/ExternalLink.js.map +1 -1
- package/build/cjs/common/components/ui/NoPermissionsError.js +3 -3
- package/build/cjs/common/components/ui/NoPermissionsError.js.map +1 -1
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js +2 -2
- package/build/cjs/common/components/ui/OpenShiftVersionDropdown.js.map +1 -1
- package/build/cjs/common/components/ui/PopoverIcon.js +2 -2
- package/build/cjs/common/components/ui/PopoverIcon.js.map +1 -1
- package/build/cjs/common/components/ui/PreviewBadge.js +6 -17
- package/build/cjs/common/components/ui/PreviewBadge.js.map +1 -1
- package/build/cjs/common/components/ui/PrismCode.js +6 -4
- package/build/cjs/common/components/ui/PrismCode.js.map +1 -1
- package/build/cjs/common/components/ui/SimpleDropdown.js +2 -2
- package/build/cjs/common/components/ui/SimpleDropdown.js.map +1 -1
- package/build/cjs/common/components/ui/TechnologyPreview.js +15 -0
- package/build/cjs/common/components/ui/TechnologyPreview.js.map +1 -0
- package/build/cjs/common/components/ui/ViewClusterEventsButton.js +2 -2
- package/build/cjs/common/components/ui/ViewClusterEventsButton.js.map +1 -1
- package/build/cjs/common/components/ui/WizardNavItem.js +3 -3
- package/build/cjs/common/components/ui/WizardNavItem.js.map +1 -1
- package/build/cjs/common/components/ui/eventsModal.js +3 -3
- package/build/cjs/common/components/ui/eventsModal.js.map +1 -1
- package/build/cjs/common/components/ui/formik/AddButton.js +2 -2
- package/build/cjs/common/components/ui/formik/AddButton.js.map +1 -1
- package/build/cjs/common/components/ui/formik/AdditionalNTPSourcesField.js +1 -1
- package/build/cjs/common/components/ui/formik/AdditionalNTPSourcesField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/PencilEditField.js +2 -2
- package/build/cjs/common/components/ui/formik/PencilEditField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/PullSecretField.js +3 -3
- package/build/cjs/common/components/ui/formik/PullSecretField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RemovableField.js +2 -2
- package/build/cjs/common/components/ui/formik/RemovableField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RichInputField.js +8 -4
- package/build/cjs/common/components/ui/formik/RichInputField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js +11 -4
- package/build/cjs/common/components/ui/formik/validationSchemas.js.map +1 -1
- package/build/cjs/common/components/ui/index.js +2 -0
- package/build/cjs/common/components/ui/index.js.map +1 -1
- package/build/cjs/common/components/ui/uiState/EmptyState.js +2 -2
- package/build/cjs/common/components/ui/uiState/EmptyState.js.map +1 -1
- package/build/cjs/common/components/ui/uiState/ErrorState.js +3 -3
- package/build/cjs/common/components/ui/uiState/ErrorState.js.map +1 -1
- package/build/cjs/common/config/constants.js +1 -1
- package/build/cjs/common/types/clusters.js +5 -1
- package/build/cjs/common/types/clusters.js.map +1 -1
- package/build/cjs/common/utils.js +19 -1
- package/build/cjs/common/utils.js.map +1 -1
- package/build/cjs/ocm/components/AddHosts/AddHosts.js +1 -1
- package/build/cjs/ocm/components/AddHosts/AddHosts.js.map +1 -1
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js +4 -3
- package/build/cjs/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.js.map +1 -1
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.js +3 -4
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.js.map +1 -1
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js +1 -1
- package/build/cjs/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.js.map +1 -1
- package/build/cjs/ocm/components/Routes.js +7 -9
- package/build/cjs/ocm/components/Routes.js.map +1 -1
- package/build/cjs/ocm/components/SentryErrorMonitorContextProvider.js +1 -1
- package/build/cjs/ocm/components/SentryErrorMonitorContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/CpuArchitectureDropdown.js +10 -8
- package/build/cjs/ocm/components/clusterConfiguration/CpuArchitectureDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js +4 -3
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js +2 -1
- package/build/cjs/ocm/components/clusterConfiguration/HostInventory.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +4 -4
- package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.js +6 -5
- 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 +9 -6
- package/build/cjs/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js +10 -6
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CollapsedManifest.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CollapsedManifest.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifest.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifest.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js +3 -3
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.js +3 -3
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +9 -5
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +1 -7
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/CnvCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js +3 -0
- package/build/cjs/ocm/components/clusterConfiguration/operators/LvmCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/operators/MceCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js +15 -5
- package/build/cjs/ocm/components/clusterConfiguration/operators/OdfCheckbox.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js +23 -12
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js +3 -3
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/constants.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/constants.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js +4 -2
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js +13 -7
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewStep.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.js +2 -2
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js +11 -10
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerDetailCard.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js +6 -5
- package/build/cjs/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js +1 -1
- package/build/cjs/ocm/components/clusterDetail/CancelInstallationModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js +3 -2
- package/build/cjs/ocm/components/clusterDetail/ClusterDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js +3 -3
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailStatusMessages.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js +2 -2
- package/build/cjs/ocm/components/clusterDetail/ClusterDetailsButtonGroup.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js +2 -2
- package/build/cjs/ocm/components/clusterDetail/ClusterInstallationError.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js +3 -1
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +2 -2
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js +5 -5
- package/build/cjs/ocm/components/clusterDetail/ProgressBarAlerts.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +4 -4
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/utils.js +5 -5
- package/build/cjs/ocm/components/clusterDetail/utils.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetails.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterDetailsForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js +2 -1
- package/build/cjs/ocm/components/clusterWizard/ClusterWizardContextProvider.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js +1 -1
- package/build/cjs/ocm/components/clusterWizard/HostDiscovery.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js +1 -1
- package/build/cjs/ocm/components/clusterWizard/Operators.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js +7 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsStep.js.map +1 -1
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js +2 -2
- package/build/cjs/ocm/components/clusters/AssistedInstallerHeader.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterBreadcrumbs.js +1 -1
- package/build/cjs/ocm/components/clusters/ClusterBreadcrumbs.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClusterStatus.js +15 -8
- package/build/cjs/ocm/components/clusters/ClusterStatus.js.map +1 -1
- package/build/cjs/ocm/components/clusters/Clusters.js +3 -3
- package/build/cjs/ocm/components/clusters/Clusters.js.map +1 -1
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js +4 -3
- package/build/cjs/ocm/components/clusters/ClustersListToolbar.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +6 -5
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js +17 -1
- package/build/cjs/ocm/components/featureSupportLevels/featureStateUtils.js.map +1 -1
- package/build/cjs/ocm/components/fetching/fetchEvents.js +1 -1
- package/build/cjs/ocm/components/fetching/fetchEvents.js.map +1 -1
- package/build/cjs/ocm/components/hosts/HardwareStatus.js +3 -1
- package/build/cjs/ocm/components/hosts/HardwareStatus.js.map +1 -1
- package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +1 -1
- package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
- package/build/cjs/ocm/components/hosts/HostsTableEmptyState.js +2 -2
- package/build/cjs/ocm/components/hosts/HostsTableEmptyState.js.map +1 -1
- package/build/cjs/ocm/components/hosts/NetworkingStatus.js +3 -1
- package/build/cjs/ocm/components/hosts/NetworkingStatus.js.map +1 -1
- package/build/cjs/ocm/components/hosts/use-hosts-table.js +1 -1
- package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
- package/build/cjs/ocm/components/hosts/utils.js +1 -1
- package/build/cjs/ocm/components/hosts/utils.js.map +1 -1
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js +2 -2
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js.map +1 -1
- package/build/cjs/ocm/components/utils.js +18 -0
- package/build/cjs/ocm/components/utils.js.map +1 -0
- package/build/cjs/ocm/hooks/use-feature.js +10 -0
- package/build/cjs/ocm/hooks/use-feature.js.map +1 -0
- package/build/cjs/ocm/hooks/useClusterCustomManifests.js +1 -1
- package/build/cjs/ocm/hooks/useClusterCustomManifests.js.map +1 -1
- package/build/cjs/ocm/hooks/useClusterPreflightRequirements.js +1 -1
- package/build/cjs/ocm/hooks/useClusterPreflightRequirements.js.map +1 -1
- package/build/cjs/ocm/hooks/useManagedDomains.js +1 -1
- package/build/cjs/ocm/hooks/useManagedDomains.js.map +1 -1
- package/build/cjs/ocm/hooks/useOpenshiftVersions.js +1 -1
- package/build/cjs/ocm/hooks/useOpenshiftVersions.js.map +1 -1
- package/build/cjs/ocm/hooks/usePullSecret.js +1 -1
- package/build/cjs/ocm/hooks/usePullSecret.js.map +1 -1
- package/build/cjs/ocm/hooks/useSupportLevelsAPI.js +1 -1
- package/build/cjs/ocm/hooks/useSupportLevelsAPI.js.map +1 -1
- package/build/cjs/ocm/hooks/useUsedClusterNames.js +1 -1
- package/build/cjs/ocm/hooks/useUsedClusterNames.js.map +1 -1
- package/build/cjs/ocm/index.js +1 -2
- package/build/cjs/ocm/index.js.map +1 -1
- package/build/cjs/ocm/services/ClusterDetailsService.js +19 -7
- package/build/cjs/ocm/services/ClusterDetailsService.js.map +1 -1
- package/build/cjs/ocm/services/ClustersService.js +2 -2
- package/build/cjs/ocm/services/ClustersService.js.map +1 -1
- package/build/cjs/ocm/services/Day2ClusterService.js +11 -1
- package/build/cjs/ocm/services/Day2ClusterService.js.map +1 -1
- package/build/cjs/ocm/store/slices/feature-flags/selectors.js +2 -1
- package/build/cjs/ocm/store/slices/feature-flags/selectors.js.map +1 -1
- package/lib/cim/components/Agent/AgentStatus.tsx +4 -3
- package/lib/cim/components/Agent/AgentTable.tsx +5 -2
- package/lib/cim/components/Agent/AgentsSelectionTable.tsx +4 -0
- package/lib/cim/components/Agent/BMCForm.tsx +2 -1
- package/lib/cim/components/Agent/MinimalHWRequirements.tsx +1 -1
- package/lib/cim/components/Agent/tableUtils.tsx +70 -36
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentCreateProgress.tsx +1 -1
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.tsx +5 -2
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostDiscoveryTable.tsx +21 -2
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentHostsNetworkTable.tsx +19 -4
- package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +2 -2
- package/lib/cim/components/Hypershift/DetailsPage/ClusterInstallationProgress.tsx +7 -6
- package/lib/cim/components/Hypershift/DetailsPage/ConditionsTable.tsx +6 -10
- package/lib/cim/components/Hypershift/DetailsPage/HostedClusterProgress.tsx +4 -5
- package/lib/cim/components/Hypershift/DetailsPage/NodePoolsProgress.tsx +9 -8
- package/lib/cim/components/Hypershift/DetailsPage/NodePoolsTable.tsx +8 -7
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.tsx +8 -3
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.tsx +13 -3
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/NodePoolForm.tsx +36 -8
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/types.ts +2 -8
- package/lib/cim/components/Hypershift/forms/NodePoolAgentsForm.tsx +58 -19
- package/lib/cim/components/Hypershift/modals/AddNodePoolModal.tsx +7 -2
- package/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx +64 -12
- package/lib/cim/components/Hypershift/modals/NodePoolForm.tsx +8 -10
- package/lib/cim/components/Hypershift/types.ts +21 -1
- package/lib/cim/components/Hypershift/utils/status.tsx +9 -7
- package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +3 -1
- package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +20 -7
- package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +1 -1
- package/lib/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.tsx +7 -4
- package/lib/cim/components/InfraEnv/InfraTableToolbar.tsx +22 -12
- package/lib/cim/components/helpers/agentStatus.tsx +20 -18
- package/lib/cim/components/helpers/agents.ts +3 -4
- package/lib/cim/components/helpers/status.ts +44 -24
- package/lib/cim/components/helpers/toAssisted.ts +11 -5
- package/lib/cim/components/modals/AddBmcHostYamlForm.tsx +2 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigDisconnectedAlert.tsx +1 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigProgressAlert.tsx +1 -1
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationForm.tsx +2 -1
- package/lib/cim/components/modals/CimConfiguration/CimStorageMissingAlert.tsx +1 -1
- package/lib/cim/components/modals/MassApproveAgentModal.tsx +13 -5
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +64 -57
- package/lib/common/api/assisted-service/NewFeatureSupportLevelsAPI.ts +1 -0
- package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +1 -1
- package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +1 -1
- package/lib/common/components/clusterConfiguration/DiskEncryptionFields/DiskEncryptionMode.tsx +1 -1
- package/lib/common/components/clusterConfiguration/OpenShiftVersionSelect.tsx +5 -9
- package/lib/common/components/clusterDetail/ClusterCredentials.tsx +1 -1
- package/lib/common/components/clusterDetail/ConsoleModal.tsx +1 -1
- package/lib/common/components/clusterDetail/FinalizingProgress.tsx +4 -6
- package/lib/common/components/clusterDetail/KubeconfigDownload.tsx +16 -6
- package/lib/common/components/clusterDetail/OperatorsProgressItem.tsx +6 -10
- package/lib/common/components/clusterDetail/ProgressBarTexts.tsx +3 -1
- package/lib/common/components/clusterWizard/ReviewValidations.tsx +6 -10
- package/lib/common/components/clusterWizard/networkingSteps/ManagedNetworkingControlGroup.tsx +3 -3
- package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +6 -6
- package/lib/common/components/featureSupportLevels/FeatureSupportLevelBadge.tsx +2 -1
- package/lib/common/components/hosts/DiskRole.tsx +1 -1
- package/lib/common/components/hosts/HostPropertyValidationPopover.tsx +5 -5
- package/lib/common/components/hosts/HostRowDetail.tsx +25 -26
- package/lib/common/components/hosts/HostStatus.tsx +4 -2
- package/lib/common/components/hosts/HostValidationGroups.tsx +5 -5
- package/lib/common/components/hosts/Hostname.tsx +2 -2
- package/lib/common/components/hosts/HostsTable.tsx +1 -1
- package/lib/common/components/hosts/MassChangeHostnameModal.tsx +1 -1
- package/lib/common/components/hosts/OcpConsoleNodesSectionLink.tsx +1 -1
- package/lib/common/components/hosts/TableToolbar.tsx +2 -2
- package/lib/common/components/hosts/VMRebootConfigurationInfo.tsx +1 -1
- package/lib/common/components/hosts/status.tsx +241 -230
- package/lib/common/components/hosts/tableUtils.tsx +3 -3
- package/lib/common/components/newFeatureSupportLevels/NewFeatureSupportLevelBadge.tsx +2 -1
- package/lib/common/components/storage/DisksTable.tsx +9 -9
- package/lib/common/components/storage/StorageDetail.tsx +4 -1
- package/lib/common/components/storage/StorageUtils.tsx +1 -1
- package/lib/common/components/ui/BorderedIcon/BorderedIcon.tsx +2 -1
- package/lib/common/components/ui/ClusterEventsToolbar.tsx +2 -1
- package/lib/common/components/ui/DeveloperPreview.tsx +19 -0
- package/lib/common/components/ui/EventsList.tsx +4 -6
- package/lib/common/components/ui/ExternalLink.tsx +1 -1
- package/lib/common/components/ui/NoPermissionsError.tsx +2 -2
- package/lib/common/components/ui/OpenShiftVersionDropdown.tsx +1 -1
- package/lib/common/components/ui/PopoverIcon.tsx +1 -1
- package/lib/common/components/ui/PreviewBadge.tsx +8 -42
- package/lib/common/components/ui/PrismCode.tsx +3 -5
- package/lib/common/components/ui/SimpleDropdown.tsx +1 -1
- package/lib/common/components/ui/TechnologyPreview.tsx +25 -0
- package/lib/common/components/ui/ViewClusterEventsButton.tsx +1 -1
- package/lib/common/components/ui/WizardNavItem.tsx +2 -2
- package/lib/common/components/ui/eventsModal.tsx +2 -2
- package/lib/common/components/ui/formik/AddButton.tsx +1 -1
- package/lib/common/components/ui/formik/AdditionalNTPSourcesField.tsx +1 -1
- package/lib/common/components/ui/formik/PencilEditField.tsx +1 -1
- package/lib/common/components/ui/formik/PullSecretField.tsx +1 -1
- package/lib/common/components/ui/formik/RemovableField.tsx +1 -1
- package/lib/common/components/ui/formik/RichInputField.tsx +5 -7
- package/lib/common/components/ui/formik/validationSchemas.ts +12 -6
- package/lib/common/components/ui/index.ts +2 -0
- package/lib/common/components/ui/uiState/EmptyState.tsx +1 -1
- package/lib/common/components/ui/uiState/ErrorState.tsx +2 -2
- package/lib/common/config/constants.ts +1 -1
- package/lib/common/types/clusters.ts +8 -4
- package/lib/common/utils.ts +18 -0
- package/lib/ocm/components/AddHosts/AddHosts.tsx +1 -1
- package/lib/ocm/components/AddHosts/day2Wizard/Day2ClusterDetails.tsx +3 -4
- package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTab.tsx +5 -7
- package/lib/ocm/components/HostsClusterDetailTab/HostsClusterDetailTabContent.tsx +1 -1
- package/lib/ocm/components/Routes.tsx +8 -11
- package/lib/ocm/components/SentryErrorMonitorContextProvider.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/CpuArchitectureDropdown.tsx +13 -9
- package/lib/ocm/components/clusterConfiguration/DiscoveryImageForm.tsx +3 -2
- package/lib/ocm/components/clusterConfiguration/DiscoveryImageTypeDropdown.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/HostInventory.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +5 -5
- package/lib/ocm/components/clusterConfiguration/OcmClusterDetailsFormFields.tsx +4 -4
- package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/OcmOpenShiftVersionSelect.tsx +6 -10
- package/lib/ocm/components/clusterConfiguration/OcmOperatorProgressItem.tsx +6 -10
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CollapsedManifest.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifest.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifestsArray.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/FolderDropdown.tsx +7 -2
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +10 -3
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +1 -9
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/CnvCheckbox.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/LvmCheckbox.tsx +7 -1
- package/lib/ocm/components/clusterConfiguration/operators/MceCheckbox.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/operators/OdfCheckbox.tsx +22 -4
- package/lib/ocm/components/clusterConfiguration/platformIntegration/ExternalPlatformDropdown.tsx +38 -18
- package/lib/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/platformIntegration/constants.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/review/ReviewNetworkingTable.tsx +4 -2
- package/lib/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.tsx +8 -12
- package/lib/ocm/components/clusterConfiguration/review/ReviewStep.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/CollapsedHost.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpForm.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/StaticIpHostsArray.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/MacIpMapping.tsx +1 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlViewFields.tsx +1 -1
- package/lib/ocm/components/clusterDetail/AssistedInstallerDetailCard.tsx +25 -26
- package/lib/ocm/components/clusterDetail/AssistedInstallerExtraDetailCard.tsx +16 -21
- package/lib/ocm/components/clusterDetail/CancelInstallationModal.tsx +1 -1
- package/lib/ocm/components/clusterDetail/ClusterDetail.tsx +3 -9
- package/lib/ocm/components/clusterDetail/ClusterDetailStatusMessages.tsx +2 -2
- package/lib/ocm/components/clusterDetail/ClusterDetailsButtonGroup.tsx +2 -2
- package/lib/ocm/components/clusterDetail/ClusterInstallationError.tsx +2 -2
- package/lib/ocm/components/clusterDetail/HostInventoryExpandable.tsx +3 -1
- package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +1 -1
- package/lib/ocm/components/clusterDetail/ProgressBarAlerts.tsx +5 -5
- package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +3 -3
- package/lib/ocm/components/clusterDetail/utils.tsx +6 -5
- package/lib/ocm/components/clusterWizard/ClusterDetails.tsx +1 -1
- package/lib/ocm/components/clusterWizard/ClusterDetailsForm.tsx +1 -1
- package/lib/ocm/components/clusterWizard/ClusterWizardContextProvider.tsx +2 -5
- package/lib/ocm/components/clusterWizard/HostDiscovery.tsx +1 -1
- package/lib/ocm/components/clusterWizard/Operators.tsx +1 -1
- package/lib/ocm/components/clusterWizard/OperatorsStep.tsx +17 -2
- package/lib/ocm/components/clusters/AssistedInstallerHeader.tsx +8 -6
- package/lib/ocm/components/clusters/ClusterBreadcrumbs.tsx +1 -1
- package/lib/ocm/components/clusters/ClusterStatus.tsx +9 -13
- package/lib/ocm/components/clusters/Clusters.tsx +2 -2
- package/lib/ocm/components/clusters/ClustersListToolbar.tsx +2 -1
- package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +3 -2
- package/lib/ocm/components/featureSupportLevels/featureStateUtils.ts +16 -0
- package/lib/ocm/components/fetching/fetchEvents.ts +15 -3
- package/lib/ocm/components/hosts/HardwareStatus.tsx +3 -1
- package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +0 -1
- package/lib/ocm/components/hosts/HostsTableEmptyState.tsx +1 -1
- package/lib/ocm/components/hosts/NetworkingStatus.tsx +3 -1
- package/lib/ocm/components/hosts/use-hosts-table.tsx +1 -1
- package/lib/ocm/components/hosts/utils.ts +1 -1
- package/lib/ocm/components/ui/InfoLinkWithModal.tsx +1 -1
- package/lib/ocm/components/utils.ts +19 -0
- package/lib/ocm/hooks/_use-feature-detection.test.tsx +7 -15
- package/lib/ocm/hooks/use-feature.ts +7 -0
- package/lib/ocm/hooks/useClusterCustomManifests.ts +1 -1
- package/lib/ocm/hooks/useClusterPreflightRequirements.ts +1 -1
- package/lib/ocm/hooks/useManagedDomains.ts +1 -1
- package/lib/ocm/hooks/useOpenshiftVersions.tsx +1 -1
- package/lib/ocm/hooks/usePullSecret.ts +1 -1
- package/lib/ocm/hooks/useSupportLevelsAPI.ts +1 -1
- package/lib/ocm/hooks/useUsedClusterNames.ts +1 -1
- package/lib/ocm/index.ts +1 -2
- package/lib/ocm/services/ClusterDetailsService.ts +20 -4
- package/lib/ocm/services/ClustersService.ts +10 -4
- package/lib/ocm/services/Day2ClusterService.ts +20 -2
- package/lib/ocm/store/slices/feature-flags/selectors.ts +6 -6
- package/package.json +14 -6
- package/build/@types/ocm/api/index.d.ts +0 -2
- package/build/@types/ocm/api/index.d.ts.map +0 -1
- package/build/cjs/ocm/api/index.js +0 -5
- package/build/cjs/ocm/api/index.js.map +0 -1
- package/lib/ocm/api/index.ts +0 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ExclamationTriangleIcon } from '@patternfly/react-icons';
|
|
3
|
-
import { global_warning_color_100 as warningColor } from '@patternfly/react-tokens';
|
|
2
|
+
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
3
|
+
import { global_warning_color_100 as warningColor } from '@patternfly/react-tokens/dist/js/global_warning_color_100';
|
|
4
4
|
import { getAgentStatus, getBMHStatus } from '../helpers';
|
|
5
5
|
import { AgentK8sResource, BareMetalHostK8sResource } from '../../types';
|
|
6
6
|
import { AGENT_BMH_NAME_LABEL_KEY } from '../common';
|
|
7
7
|
import { Tooltip } from '@patternfly/react-core';
|
|
8
8
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
9
|
+
import { agentStatus, bmhStatus } from '../helpers/agentStatus';
|
|
9
10
|
|
|
10
11
|
export type InfraEnvHostsTabAgentsWarning = {
|
|
11
12
|
infraAgents: AgentK8sResource[];
|
|
@@ -26,9 +27,11 @@ const InfraEnvHostsTabAgentsWarning: React.FC<InfraEnvHostsTabAgentsWarning> = (
|
|
|
26
27
|
const bmhsWithoutAgents = infraBMHs.filter((bmh) =>
|
|
27
28
|
agentsBMHNames.includes(bmh.metadata?.name || ''),
|
|
28
29
|
);
|
|
30
|
+
const agentStatuses = agentStatus(t);
|
|
31
|
+
const bmhStatuses = bmhStatus(t);
|
|
29
32
|
|
|
30
|
-
const agentStates = infraAgents.map((agent) => getAgentStatus(agent, true).status);
|
|
31
|
-
const bmhStates = bmhsWithoutAgents.map((bmh) => getBMHStatus(bmh).state);
|
|
33
|
+
const agentStates = infraAgents.map((agent) => getAgentStatus(agent, agentStatuses, true).status);
|
|
34
|
+
const bmhStates = bmhsWithoutAgents.map((bmh) => getBMHStatus(bmh, bmhStatuses).state);
|
|
32
35
|
|
|
33
36
|
const hostStates = [...agentStates, ...bmhStates];
|
|
34
37
|
|
|
@@ -12,17 +12,18 @@ import {
|
|
|
12
12
|
ToolbarFilter,
|
|
13
13
|
ToolbarItem,
|
|
14
14
|
} from '@patternfly/react-core';
|
|
15
|
-
import { FilterIcon } from '@patternfly/react-icons';
|
|
15
|
+
import { FilterIcon } from '@patternfly/react-icons/dist/js/icons/filter-icon';
|
|
16
16
|
import * as React from 'react';
|
|
17
|
-
import { HostStatus } from '../../../common/components/hosts/types';
|
|
17
|
+
import { HostStatus, HostStatusDef } from '../../../common/components/hosts/types';
|
|
18
18
|
import { agentStatus } from '../helpers/agentStatus';
|
|
19
19
|
import { TableToolbar } from '../../../common';
|
|
20
20
|
import { usePagination } from '../../../common/components/hosts/usePagination';
|
|
21
21
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
22
22
|
import { StatusCount } from '../Agent/tableUtils';
|
|
23
23
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
24
|
+
import { TFunction } from 'i18next';
|
|
24
25
|
|
|
25
|
-
const
|
|
26
|
+
const getStatusesForFilter = (statuses: HostStatus<string>) => {
|
|
26
27
|
const filterStatuses: {
|
|
27
28
|
[category: string]: {
|
|
28
29
|
[label: string]: string[];
|
|
@@ -34,19 +35,19 @@ const getStatusesForFiler = (statuses: HostStatus<string>) => {
|
|
|
34
35
|
);
|
|
35
36
|
|
|
36
37
|
sortedStatuses.forEach((status) => {
|
|
37
|
-
const { category,
|
|
38
|
+
const { category, key } = statuses[status];
|
|
38
39
|
if (filterStatuses[category]) {
|
|
39
|
-
if (filterStatuses[category][
|
|
40
|
-
filterStatuses[category][
|
|
40
|
+
if (filterStatuses[category][key]) {
|
|
41
|
+
filterStatuses[category][key].push(status);
|
|
41
42
|
} else {
|
|
42
43
|
filterStatuses[category] = {
|
|
43
44
|
...filterStatuses[category],
|
|
44
|
-
[
|
|
45
|
+
[key]: [status],
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
48
|
} else {
|
|
48
49
|
filterStatuses[category] = {
|
|
49
|
-
[
|
|
50
|
+
[key]: [status],
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
53
|
});
|
|
@@ -54,6 +55,12 @@ const getStatusesForFiler = (statuses: HostStatus<string>) => {
|
|
|
54
55
|
return filterStatuses;
|
|
55
56
|
};
|
|
56
57
|
|
|
58
|
+
const getCategoryLabels = (t: TFunction): { [k in HostStatusDef['category']]: string } => ({
|
|
59
|
+
'Installation related': t('ai:Installation related'),
|
|
60
|
+
'Discovery related': t('ai:Discovery related'),
|
|
61
|
+
'Bare Metal Host related': t('ai:Bare Metal Host related'),
|
|
62
|
+
});
|
|
63
|
+
|
|
57
64
|
type InfraTableToolbarProps = ReturnType<typeof usePagination> & {
|
|
58
65
|
setSelectedHostIDs: (items: string[]) => void;
|
|
59
66
|
massActions: React.ReactNode[];
|
|
@@ -78,10 +85,13 @@ const InfraTableToolbar: React.FC<InfraTableToolbarProps> = ({
|
|
|
78
85
|
selectedHostIDs,
|
|
79
86
|
...paginationProps
|
|
80
87
|
}) => {
|
|
81
|
-
const [statusFilterOpen, setStatusFilterOpen] = React.useState(false);
|
|
82
|
-
const filterStatuses = React.useMemo(() => getStatusesForFiler(agentStatus), []);
|
|
83
88
|
const { t } = useTranslation();
|
|
89
|
+
const agentStatuses = agentStatus(t);
|
|
90
|
+
const [statusFilterOpen, setStatusFilterOpen] = React.useState(false);
|
|
84
91
|
const itemIDs = React.useMemo(() => hosts.map((h) => h.id), [hosts]);
|
|
92
|
+
const filterStatuses = React.useMemo(() => getStatusesForFilter(agentStatuses), [agentStatuses]);
|
|
93
|
+
const categoryLabels = getCategoryLabels(t);
|
|
94
|
+
|
|
85
95
|
return (
|
|
86
96
|
<TableToolbar
|
|
87
97
|
selectedIDs={selectedHostIDs || []}
|
|
@@ -104,7 +114,7 @@ const InfraTableToolbar: React.FC<InfraTableToolbarProps> = ({
|
|
|
104
114
|
<ToolbarItem>
|
|
105
115
|
<ToolbarFilter
|
|
106
116
|
chips={statusFilter}
|
|
107
|
-
deleteChip={(
|
|
117
|
+
deleteChip={(_, chip) => setStatusFilter(statusFilter?.filter((f) => f !== chip))}
|
|
108
118
|
deleteChipGroup={() => setStatusFilter([])}
|
|
109
119
|
categoryName="Status"
|
|
110
120
|
>
|
|
@@ -130,7 +140,7 @@ const InfraTableToolbar: React.FC<InfraTableToolbarProps> = ({
|
|
|
130
140
|
<Grid key="statuses" hasGutter className="table-toolbar__dropdown">
|
|
131
141
|
{Object.keys(filterStatuses).map((category) => (
|
|
132
142
|
<GridItem key={category} span={4}>
|
|
133
|
-
<SelectGroup label={category}>
|
|
143
|
+
<SelectGroup label={categoryLabels[category as HostStatusDef['category']]}>
|
|
134
144
|
{Object.keys(filterStatuses[category]).map((label) => (
|
|
135
145
|
<SelectOption
|
|
136
146
|
key={label}
|
|
@@ -1,62 +1,64 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { ConnectedIcon
|
|
3
|
-
import {
|
|
2
|
+
import { ConnectedIcon } from '@patternfly/react-icons/dist/js/icons/connected-icon';
|
|
3
|
+
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
4
|
+
import { global_danger_color_100 as dangerColor } from '@patternfly/react-tokens/dist/js/global_danger_color_100';
|
|
4
5
|
import { hostStatus } from '../../../common';
|
|
5
6
|
import { HostStatus } from '../../../common/components/hosts/types';
|
|
7
|
+
import { TFunction } from 'i18next';
|
|
6
8
|
|
|
7
|
-
export const bmhStatus: HostStatus<string>
|
|
9
|
+
export const bmhStatus = (t: TFunction): HostStatus<string> => ({
|
|
8
10
|
'bmh-error': {
|
|
9
11
|
key: 'bmh-error',
|
|
10
|
-
title: 'Error',
|
|
12
|
+
title: t('ai:Error'),
|
|
11
13
|
category: 'Bare Metal Host related',
|
|
12
14
|
},
|
|
13
15
|
registering: {
|
|
14
16
|
key: 'registering',
|
|
15
|
-
title: 'Registering',
|
|
17
|
+
title: t('ai:Registering'),
|
|
16
18
|
category: 'Bare Metal Host related',
|
|
17
19
|
},
|
|
18
20
|
provisioning: {
|
|
19
21
|
key: 'provisioning',
|
|
20
|
-
title: 'Provisioning',
|
|
22
|
+
title: t('ai:Provisioning'),
|
|
21
23
|
category: 'Bare Metal Host related',
|
|
22
24
|
},
|
|
23
25
|
provisioned: {
|
|
24
26
|
key: 'provisioned',
|
|
25
|
-
title: 'Provisioned',
|
|
27
|
+
title: t('ai:Provisioned'),
|
|
26
28
|
category: 'Bare Metal Host related',
|
|
27
29
|
},
|
|
28
30
|
deprovisioning: {
|
|
29
31
|
key: 'deprovisioning',
|
|
30
|
-
title: 'Deprovisioning',
|
|
32
|
+
title: t('ai:Deprovisioning'),
|
|
31
33
|
category: 'Bare Metal Host related',
|
|
32
34
|
},
|
|
33
35
|
inspecting: {
|
|
34
36
|
key: 'inspecting',
|
|
35
|
-
title: 'Inspecting',
|
|
37
|
+
title: t('ai:Inspecting'),
|
|
36
38
|
category: 'Bare Metal Host related',
|
|
37
39
|
},
|
|
38
40
|
pending: {
|
|
39
41
|
key: 'pending',
|
|
40
|
-
title: 'Pending',
|
|
42
|
+
title: t('ai:Pending'),
|
|
41
43
|
category: 'Bare Metal Host related',
|
|
42
44
|
},
|
|
43
|
-
};
|
|
45
|
+
});
|
|
44
46
|
|
|
45
|
-
export const agentStatus: HostStatus<string>
|
|
46
|
-
...hostStatus,
|
|
47
|
+
export const agentStatus = (t: TFunction): HostStatus<string> => ({
|
|
48
|
+
...hostStatus(t),
|
|
47
49
|
discovered: {
|
|
48
50
|
key: 'discovered',
|
|
49
|
-
title: 'Discovered',
|
|
51
|
+
title: t('ai:Discovered'),
|
|
50
52
|
icon: <ConnectedIcon />,
|
|
51
53
|
noPopover: true,
|
|
52
54
|
category: 'Discovery related',
|
|
53
|
-
details: 'The host has been discovered and needs to be approved to before further use.',
|
|
55
|
+
details: t('ai:The host has been discovered and needs to be approved to before further use.'),
|
|
54
56
|
},
|
|
55
|
-
...bmhStatus,
|
|
57
|
+
...bmhStatus(t),
|
|
56
58
|
specSyncErr: {
|
|
57
59
|
key: 'spec-sync-err',
|
|
58
|
-
title: 'Sync error',
|
|
60
|
+
title: t('ai:Sync error'),
|
|
59
61
|
icon: <ExclamationCircleIcon color={dangerColor.value} />,
|
|
60
62
|
category: 'Discovery related',
|
|
61
63
|
},
|
|
62
|
-
};
|
|
64
|
+
});
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { AgentStatus } from './status';
|
|
1
|
+
import { AgentStatus, getAgentStatusKey } from './status';
|
|
2
2
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
3
3
|
import { AgentK8sResource, BareMetalHostK8sResource } from '../../types';
|
|
4
|
-
import { getAgentStatus } from './status';
|
|
5
4
|
import { INFRAENV_AGENTINSTALL_LABEL_KEY } from '../common/constants';
|
|
6
5
|
|
|
7
6
|
const AGENT_FOR_SELECTION_STATUSES: AgentStatus[] = [
|
|
@@ -21,8 +20,8 @@ export const hostToAgent = (agents: AgentK8sResource[] = [], host: Host) =>
|
|
|
21
20
|
|
|
22
21
|
export const getAgentsForSelection = (agents: AgentK8sResource[]) =>
|
|
23
22
|
agents.filter((agent) => {
|
|
24
|
-
const
|
|
25
|
-
return AGENT_FOR_SELECTION_STATUSES.includes(
|
|
23
|
+
const key = getAgentStatusKey(agent);
|
|
24
|
+
return AGENT_FOR_SELECTION_STATUSES.includes(key as AgentStatus);
|
|
26
25
|
});
|
|
27
26
|
|
|
28
27
|
export const getAgentRole = (agent: AgentK8sResource) => agent.spec.role || agent.status?.role;
|
|
@@ -22,8 +22,9 @@ import {
|
|
|
22
22
|
wizardStepsValidationsMap,
|
|
23
23
|
} from '../ClusterDeployment/wizardTransition';
|
|
24
24
|
import { HostStatusDef } from '../../../common';
|
|
25
|
-
import { agentStatus
|
|
25
|
+
import { agentStatus } from './agentStatus';
|
|
26
26
|
import { TFunction } from 'i18next';
|
|
27
|
+
import { HostStatus } from '../../../common/components/hosts/types';
|
|
27
28
|
|
|
28
29
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
29
30
|
const conditionsByTypeReducer = <K>(
|
|
@@ -125,29 +126,40 @@ export type AgentStatus = Host['status'] | 'discovered';
|
|
|
125
126
|
const getInsufficientState = (agent: AgentK8sResource) =>
|
|
126
127
|
agent?.spec?.clusterDeploymentName?.name ? 'insufficient' : 'insufficient-unbound';
|
|
127
128
|
|
|
128
|
-
export const
|
|
129
|
-
agent: AgentK8sResource,
|
|
130
|
-
excludeDiscovered = false,
|
|
131
|
-
): { status: HostStatusDef; validationsInfo: ValidationsInfo; autoCSR?: boolean } => {
|
|
129
|
+
export const getAgentStatusKey = (agent: AgentK8sResource, excludeDiscovered = false) => {
|
|
132
130
|
const specSyncErr = agent.status?.conditions?.find(
|
|
133
131
|
(c) => c.type === 'SpecSynced' && c.status === 'False',
|
|
134
132
|
);
|
|
135
|
-
|
|
136
|
-
let status: HostStatusDef;
|
|
137
|
-
let validationsInfo: ValidationsInfo = {};
|
|
138
133
|
if (specSyncErr) {
|
|
139
|
-
|
|
134
|
+
return 'specSyncError';
|
|
140
135
|
} else {
|
|
141
|
-
status = agentStatus[agent.status?.debugInfo?.state || getInsufficientState(agent)];
|
|
142
|
-
validationsInfo = agent.status?.validationsInfo || {};
|
|
143
136
|
if (!excludeDiscovered && !agent.spec.approved) {
|
|
144
|
-
|
|
137
|
+
return 'discovered';
|
|
138
|
+
} else {
|
|
139
|
+
return agent.status?.debugInfo?.state || getInsufficientState(agent);
|
|
145
140
|
}
|
|
146
|
-
// TODO(jtomasek): Implement this
|
|
147
|
-
// const sublabel = areOnlyClusterSoftValidationsFailing(agentStatus.validationsInfo)
|
|
148
|
-
// ? 'Some validations failed'
|
|
149
|
-
// : undefined;
|
|
150
141
|
}
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
export const getAgentStatus = (
|
|
145
|
+
agent: AgentK8sResource,
|
|
146
|
+
agentStatuses: HostStatus<string>,
|
|
147
|
+
excludeDiscovered = false,
|
|
148
|
+
): { status: HostStatusDef; validationsInfo: ValidationsInfo; autoCSR?: boolean } => {
|
|
149
|
+
const key = getAgentStatusKey(agent, excludeDiscovered);
|
|
150
|
+
|
|
151
|
+
let validationsInfo: ValidationsInfo = {};
|
|
152
|
+
|
|
153
|
+
const status = agentStatuses[key];
|
|
154
|
+
if (key !== 'specSyncError') {
|
|
155
|
+
validationsInfo = agent.status?.validationsInfo || {};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
// TODO(jtomasek): Implement this
|
|
159
|
+
// const sublabel = areOnlyClusterSoftValidationsFailing(agentStatus.validationsInfo)
|
|
160
|
+
// ? 'Some validations failed'
|
|
161
|
+
// : undefined;
|
|
162
|
+
|
|
151
163
|
return { status, validationsInfo };
|
|
152
164
|
};
|
|
153
165
|
|
|
@@ -157,13 +169,15 @@ export const getWizardStepAgentStatus = (
|
|
|
157
169
|
t: TFunction,
|
|
158
170
|
excludeDiscovered = false,
|
|
159
171
|
): { status: HostStatusDef; validationsInfo: ValidationsInfo } => {
|
|
160
|
-
const
|
|
161
|
-
|
|
172
|
+
const agentStatuses = agentStatus(t);
|
|
173
|
+
const aStatus = getAgentStatus(agent, agentStatuses, excludeDiscovered);
|
|
174
|
+
|
|
175
|
+
if ([agentStatuses.discovered, agentStatuses.specSyncErr].includes(aStatus.status)) {
|
|
162
176
|
return aStatus;
|
|
163
177
|
}
|
|
164
178
|
|
|
165
179
|
const status =
|
|
166
|
-
|
|
180
|
+
agentStatuses[
|
|
167
181
|
getWizardStepHostStatus(wizardStepId, wizardStepsValidationsMap, {
|
|
168
182
|
status: aStatus.status.key as Host['status'],
|
|
169
183
|
validationsInfo: aStatus.validationsInfo,
|
|
@@ -188,13 +202,19 @@ export const getWizardStepAgentStatus = (
|
|
|
188
202
|
};
|
|
189
203
|
};
|
|
190
204
|
|
|
191
|
-
export const
|
|
192
|
-
let bmhState = bmhStatus.pending;
|
|
193
|
-
|
|
205
|
+
export const getBMHStatusKey = (bmh: BareMetalHostK8sResource) => {
|
|
194
206
|
if (bmh.status?.errorType) {
|
|
195
|
-
|
|
207
|
+
return 'bmh-error';
|
|
196
208
|
} else if (bmh.status?.provisioning?.state) {
|
|
197
|
-
|
|
209
|
+
return bmh.status?.provisioning?.state;
|
|
210
|
+
}
|
|
211
|
+
};
|
|
212
|
+
|
|
213
|
+
export const getBMHStatus = (bmh: BareMetalHostK8sResource, bmhStatuses: HostStatus<string>) => {
|
|
214
|
+
let bmhState = bmhStatuses.pending;
|
|
215
|
+
const statusKey = getBMHStatusKey(bmh);
|
|
216
|
+
if (statusKey) {
|
|
217
|
+
bmhState = bmhStatuses[statusKey] || bmhState;
|
|
198
218
|
}
|
|
199
219
|
|
|
200
220
|
return {
|
|
@@ -3,7 +3,7 @@ import { AgentK8sResource } from '../../types/k8s/agent';
|
|
|
3
3
|
import { Cluster, Host, Inventory } from '@openshift-assisted/types/assisted-installer-service';
|
|
4
4
|
import { ClusterDeploymentK8sResource } from '../../types/k8s/cluster-deployment';
|
|
5
5
|
import { AgentClusterInstallK8sResource } from '../../types/k8s/agent-cluster-install';
|
|
6
|
-
import {
|
|
6
|
+
import { getAgentStatusKey, getClusterStatus } from './status';
|
|
7
7
|
import { getHostNetworks } from './network';
|
|
8
8
|
import { BareMetalHostK8sResource, InfraEnvK8sResource } from '../../types';
|
|
9
9
|
import {
|
|
@@ -21,7 +21,7 @@ export const getAIHosts = (
|
|
|
21
21
|
) => {
|
|
22
22
|
const bmhAgents: string[] = [];
|
|
23
23
|
const hosts = agents.map((agent): Host => {
|
|
24
|
-
const
|
|
24
|
+
const statusKey = getAgentStatusKey(agent, true);
|
|
25
25
|
const statusInfo = agent.status?.debugInfo?.stateInfo || '';
|
|
26
26
|
// TODO(mlibra) Remove that workaround once https://issues.redhat.com/browse/MGMT-7052 is fixed
|
|
27
27
|
const inventory: Inventory = cloneDeep(agent.status?.inventory || {});
|
|
@@ -50,7 +50,7 @@ export const getAIHosts = (
|
|
|
50
50
|
kind: 'Host',
|
|
51
51
|
id: agent.metadata?.uid || '',
|
|
52
52
|
href: '',
|
|
53
|
-
status:
|
|
53
|
+
status: statusKey as Host['status'],
|
|
54
54
|
statusInfo,
|
|
55
55
|
role: getAgentRole(agent),
|
|
56
56
|
requestedHostname: agent.spec.hostname || inventory.hostname,
|
|
@@ -135,8 +135,14 @@ export const getAICluster = ({
|
|
|
135
135
|
name: clusterDeployment.spec?.clusterName,
|
|
136
136
|
baseDnsDomain: clusterDeployment.spec?.baseDomain,
|
|
137
137
|
openshiftVersion: installVersion,
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
apiVips: [
|
|
139
|
+
{
|
|
140
|
+
ip: agentClusterInstall?.status?.apiVIP || agentClusterInstall?.spec?.apiVIP,
|
|
141
|
+
},
|
|
142
|
+
],
|
|
143
|
+
ingressVips: [
|
|
144
|
+
{ ip: agentClusterInstall?.status?.ingressVIP || agentClusterInstall?.spec?.apiVIP },
|
|
145
|
+
],
|
|
140
146
|
highAvailabilityMode:
|
|
141
147
|
agentClusterInstall?.spec?.provisionRequirements?.controlPlaneAgents === 1 ? 'None' : 'Full',
|
|
142
148
|
status,
|
|
@@ -16,7 +16,8 @@ import {
|
|
|
16
16
|
StackItem,
|
|
17
17
|
Title,
|
|
18
18
|
} from '@patternfly/react-core';
|
|
19
|
-
import { ErrorCircleOIcon
|
|
19
|
+
import { ErrorCircleOIcon } from '@patternfly/react-icons/dist/js/icons/error-circle-o-icon';
|
|
20
|
+
import { UploadIcon } from '@patternfly/react-icons/dist/js/icons/upload-icon';
|
|
20
21
|
import jsYaml from 'js-yaml';
|
|
21
22
|
import { saveAs } from 'file-saver';
|
|
22
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Alert, AlertVariant } from '@patternfly/react-core';
|
|
3
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
|
3
|
+
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
4
4
|
import { Trans } from 'react-i18next';
|
|
5
5
|
|
|
6
6
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
ButtonVariant,
|
|
8
8
|
AlertActionCloseButton,
|
|
9
9
|
} from '@patternfly/react-core';
|
|
10
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
|
10
|
+
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
11
11
|
|
|
12
12
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
13
13
|
import { AgentServiceConfigConditionType } from '../../../types';
|
|
@@ -9,7 +9,8 @@ import {
|
|
|
9
9
|
Checkbox,
|
|
10
10
|
TextInput,
|
|
11
11
|
} from '@patternfly/react-core';
|
|
12
|
-
import { ExternalLinkAltIcon
|
|
12
|
+
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
13
|
+
import { HelpIcon } from '@patternfly/react-icons/dist/js/icons/help-icon';
|
|
13
14
|
|
|
14
15
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
15
16
|
import { CimConfigurationFormProps } from './types';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useHistory } from 'react-router-dom';
|
|
3
3
|
import { Alert, AlertActionLink, AlertVariant } from '@patternfly/react-core';
|
|
4
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
|
4
|
+
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
5
5
|
|
|
6
6
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
7
7
|
|
|
@@ -21,6 +21,7 @@ import { getErrorMessage } from '../../../common/utils';
|
|
|
21
21
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
22
22
|
import { TFunction } from 'i18next';
|
|
23
23
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
24
|
+
import { HostStatus } from '../../../common/components/hosts/types';
|
|
24
25
|
|
|
25
26
|
type ApproveTableRowProps = {
|
|
26
27
|
agent?: AgentK8sResource;
|
|
@@ -51,7 +52,11 @@ const hostnameColumn = (agents: AgentK8sResource[], t: TFunction): TableRow<Host
|
|
|
51
52
|
};
|
|
52
53
|
};
|
|
53
54
|
|
|
54
|
-
const statusColumn = (
|
|
55
|
+
const statusColumn = (
|
|
56
|
+
agents: AgentK8sResource[],
|
|
57
|
+
agentStatuses: HostStatus<string>,
|
|
58
|
+
t: TFunction,
|
|
59
|
+
): TableRow<Host> => {
|
|
55
60
|
return {
|
|
56
61
|
header: {
|
|
57
62
|
title: t('ai:Status'),
|
|
@@ -62,8 +67,10 @@ const statusColumn = (agents: AgentK8sResource[], t: TFunction): TableRow<Host>
|
|
|
62
67
|
},
|
|
63
68
|
cell: (host) => {
|
|
64
69
|
const agent = agents.find((a) => a.metadata?.uid === host.id);
|
|
65
|
-
const status = agent?.spec.approved
|
|
66
|
-
|
|
70
|
+
const status = agent?.spec.approved
|
|
71
|
+
? t('ai:Already approved')
|
|
72
|
+
: agentStatuses.discovered.title;
|
|
73
|
+
const icon = agentStatuses.discovered.icon;
|
|
67
74
|
return {
|
|
68
75
|
title: (
|
|
69
76
|
<ApproveTableRow agent={agent}>
|
|
@@ -99,6 +106,7 @@ const MassApproveAgentModal: React.FC<MassApproveAgentModalProps> = ({
|
|
|
99
106
|
const [progress, setProgress] = React.useState<number | null>(null);
|
|
100
107
|
const [error, setError] = React.useState<{ title: string; message: string }>();
|
|
101
108
|
const { t } = useTranslation();
|
|
109
|
+
const agentStatuses = agentStatus(t);
|
|
102
110
|
const onClick = async () => {
|
|
103
111
|
setError(undefined);
|
|
104
112
|
let i = 0;
|
|
@@ -122,10 +130,10 @@ const MassApproveAgentModal: React.FC<MassApproveAgentModalProps> = ({
|
|
|
122
130
|
};
|
|
123
131
|
const { content, hosts } = React.useMemo(
|
|
124
132
|
() => ({
|
|
125
|
-
content: [hostnameColumn(agents, t), statusColumn(agents, t)],
|
|
133
|
+
content: [hostnameColumn(agents, t), statusColumn(agents, agentStatuses, t)],
|
|
126
134
|
hosts: getAIHosts(agents),
|
|
127
135
|
}),
|
|
128
|
-
[agents, t],
|
|
136
|
+
[agentStatuses, agents, t],
|
|
129
137
|
);
|
|
130
138
|
|
|
131
139
|
const paginationProps = usePagination(hosts.length);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { Button, Flex, FlexItem, Popover } from '@patternfly/react-core';
|
|
3
|
-
import { InfoCircleIcon } from '@patternfly/react-icons';
|
|
3
|
+
import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
4
4
|
import { Link } from 'react-router-dom';
|
|
5
5
|
import { sortable } from '@patternfly/react-table';
|
|
6
6
|
import { global_palette_blue_300 as blueInfoColor } from '@patternfly/react-tokens/dist/js/global_palette_blue_300';
|
|
@@ -26,6 +26,7 @@ import { usePagination } from '../../../common/components/hosts/usePagination';
|
|
|
26
26
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
27
27
|
import { TFunction } from 'i18next';
|
|
28
28
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
29
|
+
import { agentStatus, bmhStatus } from '../helpers/agentStatus';
|
|
29
30
|
|
|
30
31
|
const hostnameColumn = (agents: AgentK8sResource[], t: TFunction): TableRow<Host> => {
|
|
31
32
|
return {
|
|
@@ -56,65 +57,71 @@ const statusColumn = (
|
|
|
56
57
|
agents: AgentK8sResource[],
|
|
57
58
|
bmhs: BareMetalHostK8sResource[],
|
|
58
59
|
t: TFunction,
|
|
59
|
-
): TableRow<Host> =>
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
60
|
+
): TableRow<Host> => {
|
|
61
|
+
const agentStatuses = agentStatus(t);
|
|
62
|
+
const bmhStatuses = bmhStatus(t);
|
|
63
|
+
return {
|
|
64
|
+
header: {
|
|
65
|
+
title: t('ai:Status'),
|
|
66
|
+
props: {
|
|
67
|
+
id: 'col-header-status',
|
|
68
|
+
},
|
|
69
|
+
transforms: [sortable],
|
|
64
70
|
},
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
const clusterName = agent?.spec.clusterDeploymentName?.name;
|
|
70
|
-
const bmh = bmhs?.find((b) => b.metadata?.uid === host.id);
|
|
71
|
+
cell: (host) => {
|
|
72
|
+
const agent = agents.find((a) => a.metadata?.uid === host.id);
|
|
73
|
+
const clusterName = agent?.spec.clusterDeploymentName?.name;
|
|
74
|
+
const bmh = bmhs?.find((b) => b.metadata?.uid === host.id);
|
|
71
75
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
76
|
+
let bmhStatus;
|
|
77
|
+
let title: React.ReactNode = '--';
|
|
78
|
+
if (agent) {
|
|
79
|
+
title = clusterName ? (
|
|
80
|
+
<Flex>
|
|
81
|
+
<FlexItem>
|
|
82
|
+
<AgentStatus agent={agent} zIndex={7000} />
|
|
83
|
+
</FlexItem>
|
|
84
|
+
<FlexItem align={{ default: 'alignRight' }}>
|
|
85
|
+
<Popover
|
|
86
|
+
aria-label={t('ai:Cluster popover')}
|
|
87
|
+
headerContent={<div>{t('ai:Cannot be deleted')}</div>}
|
|
88
|
+
bodyContent={
|
|
89
|
+
<div>
|
|
90
|
+
{t(
|
|
91
|
+
'ai:Hosts that are bound to a cluster cannot be deleted. Remove the host from the cluster and try again.',
|
|
92
|
+
)}
|
|
93
|
+
</div>
|
|
94
|
+
}
|
|
95
|
+
footerContent={
|
|
96
|
+
<Link to={`/multicloud/infrastructure/clusters/details/${clusterName}/`}>
|
|
97
|
+
{t('ai:Go to cluster {{clusterName}}', { clusterName })}
|
|
98
|
+
</Link>
|
|
99
|
+
}
|
|
100
|
+
>
|
|
101
|
+
<Button variant="link" icon={<InfoCircleIcon color={blueInfoColor.value} />}>
|
|
102
|
+
{t('ai:Cannot be deleted')}
|
|
103
|
+
</Button>
|
|
104
|
+
</Popover>
|
|
105
|
+
</FlexItem>
|
|
106
|
+
</Flex>
|
|
107
|
+
) : (
|
|
108
|
+
<AgentStatus agent={agent} />
|
|
109
|
+
);
|
|
110
|
+
} else if (bmh) {
|
|
111
|
+
bmhStatus = getBMHStatus(bmh, bmhStatuses);
|
|
112
|
+
title = <BMHStatus bmhStatus={bmhStatus} />;
|
|
113
|
+
}
|
|
110
114
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
}
|
|
115
|
+
return {
|
|
116
|
+
title,
|
|
117
|
+
props: { 'data-testid': 'host-status' },
|
|
118
|
+
sortableValue: agent
|
|
119
|
+
? getAgentStatus(agent, agentStatuses).status.title
|
|
120
|
+
: bmhStatus?.state.title || '',
|
|
121
|
+
};
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
};
|
|
118
125
|
|
|
119
126
|
const tableContent = (
|
|
120
127
|
agents: AgentK8sResource[],
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Stack,
|
|
11
11
|
StackItem,
|
|
12
12
|
} from '@patternfly/react-core';
|
|
13
|
-
import { ExternalLinkAltIcon } from '@patternfly/react-icons';
|
|
13
|
+
import { ExternalLinkAltIcon } from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
14
14
|
import { Formik, FormikHelpers } from 'formik';
|
|
15
15
|
import {
|
|
16
16
|
ImageCreateParams,
|