@openshift-assisted/ui-lib 2.17.0-cim → 2.17.3-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 +1 -0
- 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/BMHEventsModal.d.ts +8 -0
- package/build/@types/cim/components/Agent/BMHEventsModal.d.ts.map +1 -0
- package/build/@types/cim/components/Agent/BMHStatus.d.ts +2 -0
- package/build/@types/cim/components/Agent/BMHStatus.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/BMHStatusInfo.d.ts +8 -0
- package/build/@types/cim/components/Agent/BMHStatusInfo.d.ts.map +1 -0
- package/build/@types/cim/components/Agent/MinimalHWRequirements.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/index.d.ts +2 -0
- package/build/@types/cim/components/Agent/index.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/tableColumns.d.ts +29 -0
- package/build/@types/cim/components/Agent/tableColumns.d.ts.map +1 -0
- package/build/@types/cim/components/Agent/tableUtils.d.ts +2 -22
- package/build/@types/cim/components/Agent/tableUtils.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/NetworkConfiguration.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts +0 -1
- package/build/@types/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts +1 -1
- package/build/@types/cim/components/ClusterDeployment/networkConfigurationValidation.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts +9 -5
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.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/NetworkStep/AdvancedNetworkFields.d.ts.map +1 -0
- package/build/@types/cim/components/Hypershift/modals/AddNodePoolModal.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/modals/ManageHostsModal.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/modals/RemoveNodePoolModal.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts +0 -1
- package/build/@types/cim/components/InfraEnv/EnvironmentErrors.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvFormPage.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agentStatus.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/versions.d.ts +1 -1
- package/build/@types/cim/components/helpers/versions.d.ts.map +1 -1
- package/build/@types/cim/components/modals/AddBmcHostModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/AddBmcHostYamlForm.d.ts.map +1 -1
- package/build/@types/cim/components/modals/AddBmcHostYamlModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/AddHostModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/EditBMHModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/EditNtpSourcesModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/EditProxyModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/EditPullSecretModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/EditSSHKeyModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/MassApproveAgentModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/ScaleUpModal.d.ts.map +1 -1
- package/build/@types/cim/hooks/index.d.ts +1 -0
- package/build/@types/cim/hooks/index.d.ts.map +1 -1
- package/build/@types/cim/hooks/types.d.ts +1 -1
- package/build/@types/cim/hooks/types.d.ts.map +1 -1
- package/build/@types/cim/hooks/useEvents.d.ts +4 -0
- package/build/@types/cim/hooks/useEvents.d.ts.map +1 -0
- package/build/@types/cim/types/fromOCP/k8sTypes.d.ts +12 -0
- package/build/@types/cim/types/fromOCP/k8sTypes.d.ts.map +1 -1
- package/build/@types/cim/types/k8s/agent-cluster-install.d.ts +4 -0
- package/build/@types/cim/types/k8s/agent-cluster-install.d.ts.map +1 -1
- package/build/@types/cim/types/k8s/bare-metal-host.d.ts +20 -0
- package/build/@types/cim/types/k8s/bare-metal-host.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiscoveryImageConfigForm.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.d.ts.map +1 -1
- package/build/@types/common/components/clusterConfiguration/utils.d.ts +2 -2
- package/build/@types/common/components/clusterConfiguration/utils.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.d.ts +7 -0
- package/build/@types/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.d.ts.map +1 -0
- package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts +10 -6
- package/build/@types/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts +13 -0
- package/build/@types/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.d.ts.map +1 -0
- package/build/@types/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.d.ts +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/SubnetsDropdown.d.ts.map +1 -0
- package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts +4 -2
- package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts +7 -2
- package/build/@types/common/components/clusterWizard/networkingSteps/index.d.ts.map +1 -1
- package/build/@types/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.d.ts +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/reorderNetworks.d.ts.map +1 -0
- package/build/@types/common/components/hosts/AdditionalNTPSourcesDialog.d.ts.map +1 -1
- package/build/@types/common/components/hosts/EditHostForm.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostStatus.d.ts.map +1 -1
- package/build/@types/common/components/hosts/HostValidationGroups.d.ts.map +1 -1
- package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
- package/build/@types/common/components/hosts/index.d.ts +2 -0
- package/build/@types/common/components/hosts/index.d.ts.map +1 -1
- package/build/@types/common/components/hosts/tableColumns.d.ts +21 -0
- package/build/@types/common/components/hosts/tableColumns.d.ts.map +1 -0
- package/build/@types/common/components/hosts/tableUtils.d.ts +3 -21
- package/build/@types/common/components/hosts/tableUtils.d.ts.map +1 -1
- package/build/@types/common/components/hosts/types.d.ts +1 -0
- package/build/@types/common/components/hosts/types.d.ts.map +1 -1
- package/build/@types/common/components/ui/EventsList.d.ts.map +1 -1
- package/build/@types/common/components/ui/PrismCode.d.ts +13 -11
- package/build/@types/common/components/ui/PrismCode.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/LabelField.d.ts +3 -11
- package/build/@types/common/components/ui/formik/LabelField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/index.d.ts +0 -2
- package/build/@types/common/components/ui/formik/index.d.ts.map +1 -1
- package/build/@types/common/components/ui/index.d.ts +1 -1
- package/build/@types/common/components/ui/index.d.ts.map +1 -1
- package/build/@types/common/config/constants.d.ts +2 -1
- package/build/@types/common/config/constants.d.ts.map +1 -1
- package/build/@types/common/index.d.ts +1 -0
- package/build/@types/common/index.d.ts.map +1 -1
- package/build/@types/common/types/clusters.d.ts +0 -1
- package/build/@types/common/types/clusters.d.ts.map +1 -1
- package/build/@types/common/utils.d.ts +2 -2
- package/build/@types/common/utils.d.ts.map +1 -1
- package/build/@types/common/validationSchemas/addressValidation.d.ts +18 -0
- package/build/@types/common/validationSchemas/addressValidation.d.ts.map +1 -0
- package/build/@types/common/validationSchemas/clusterDetailsValidation.d.ts +8 -0
- package/build/@types/common/validationSchemas/clusterDetailsValidation.d.ts.map +1 -0
- package/build/@types/common/{components/ui/formik → validationSchemas}/constants.d.ts +1 -3
- package/build/@types/common/validationSchemas/constants.d.ts.map +1 -0
- package/build/@types/common/validationSchemas/hostnameValidation.d.ts +4 -0
- package/build/@types/common/validationSchemas/hostnameValidation.d.ts.map +1 -0
- package/build/@types/common/validationSchemas/index.d.ts +11 -0
- package/build/@types/common/validationSchemas/index.d.ts.map +1 -0
- package/build/@types/common/validationSchemas/networkingValidation.d.ts +18 -0
- package/build/@types/common/validationSchemas/networkingValidation.d.ts.map +1 -0
- package/build/@types/common/validationSchemas/ntpValidation.d.ts +4 -0
- package/build/@types/common/validationSchemas/ntpValidation.d.ts.map +1 -0
- package/build/@types/common/validationSchemas/proxyValidation.d.ts +11 -0
- package/build/@types/common/validationSchemas/proxyValidation.d.ts.map +1 -0
- package/build/@types/common/validationSchemas/pullSecretValidation.d.ts +4 -0
- package/build/@types/common/validationSchemas/pullSecretValidation.d.ts.map +1 -0
- package/build/@types/common/validationSchemas/regexes.d.ts +14 -0
- package/build/@types/common/validationSchemas/regexes.d.ts.map +1 -0
- package/build/@types/common/validationSchemas/sshValidation.d.ts +5 -0
- package/build/@types/common/validationSchemas/sshValidation.d.ts.map +1 -0
- package/build/@types/common/validationSchemas/utils.d.ts +7 -0
- package/build/@types/common/validationSchemas/utils.d.ts.map +1 -0
- package/build/@types/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts +2 -1
- package/build/@types/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.d.ts +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/networkConfiguration/NetworkConfigurationTableBase.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts +2 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.d.ts +2 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.d.ts +2 -1
- package/build/@types/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/ResetClusterModal.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/ClusterHostsTable.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/HostsDiscoveryTable.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/HostsStorageTable.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/UpdateDay2ApiVipForm.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/use-hosts-table.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/AgentTable.js +10 -9
- package/build/cjs/cim/components/Agent/AgentTable.js.map +1 -1
- package/build/cjs/cim/components/Agent/AgentsSelectionTable.js +9 -8
- package/build/cjs/cim/components/Agent/AgentsSelectionTable.js.map +1 -1
- package/build/cjs/cim/components/Agent/BMCForm.js +7 -8
- package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
- package/build/cjs/cim/components/Agent/BMHEventsModal.js +54 -0
- package/build/cjs/cim/components/Agent/BMHEventsModal.js.map +1 -0
- package/build/cjs/cim/components/Agent/BMHStatus.js +3 -2
- package/build/cjs/cim/components/Agent/BMHStatus.js.map +1 -1
- package/build/cjs/cim/components/Agent/BMHStatusInfo.js +59 -0
- package/build/cjs/cim/components/Agent/BMHStatusInfo.js.map +1 -0
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js +6 -5
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js.map +1 -1
- package/build/cjs/cim/components/Agent/index.js +2 -0
- package/build/cjs/cim/components/Agent/index.js.map +1 -1
- package/build/cjs/cim/components/Agent/tableColumns.js +184 -0
- package/build/cjs/cim/components/Agent/tableColumns.js.map +1 -0
- package/build/cjs/cim/components/Agent/tableUtils.js +4 -174
- package/build/cjs/cim/components/Agent/tableUtils.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js +10 -10
- package/build/cjs/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/LocationsSelector.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/LocationsSelector.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js +28 -38
- package/build/cjs/cim/components/ClusterDeployment/NetworkConfiguration.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js +9 -15
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js +9 -7
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js +13 -14
- package/build/cjs/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +14 -13
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js +19 -18
- package/build/cjs/cim/components/ClusterDeployment/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js +9 -10
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js +2 -2
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js +12 -8
- package/build/cjs/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js +6 -4
- package/build/cjs/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +21 -14
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsTable.js +2 -2
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js +2 -2
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.js +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js +2 -11
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.js.map +1 -1
- package/build/cjs/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.js +3 -3
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/AdvancedNetworkFields.js.map +1 -0
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.js +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.js +8 -8
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js +4 -4
- package/build/cjs/cim/components/Hypershift/modals/AddNodePoolModal.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/modals/ManageHostsModal.js +4 -4
- 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/modals/RemoveNodePoolModal.js +4 -4
- package/build/cjs/cim/components/Hypershift/modals/RemoveNodePoolModal.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +5 -2
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js +2 -4
- package/build/cjs/cim/components/InfraEnv/EnvironmentErrors.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js +11 -11
- package/build/cjs/cim/components/InfraEnv/InfraEnvAgentTable.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js +8 -6
- package/build/cjs/cim/components/InfraEnv/InfraEnvFormPage.js.map +1 -1
- package/build/cjs/cim/components/common/ResourceAlerts.js +2 -4
- package/build/cjs/cim/components/common/ResourceAlerts.js.map +1 -1
- package/build/cjs/cim/components/helpers/agentStatus.js +5 -0
- package/build/cjs/cim/components/helpers/agentStatus.js.map +1 -1
- package/build/cjs/cim/components/helpers/toAssisted.js +28 -26
- package/build/cjs/cim/components/helpers/toAssisted.js.map +1 -1
- package/build/cjs/cim/components/helpers/versions.js +42 -27
- package/build/cjs/cim/components/helpers/versions.js.map +1 -1
- package/build/cjs/cim/components/modals/AddBmcHostModal.js +7 -5
- package/build/cjs/cim/components/modals/AddBmcHostModal.js.map +1 -1
- package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js +2 -3
- package/build/cjs/cim/components/modals/AddBmcHostYamlForm.js.map +1 -1
- package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js +7 -5
- package/build/cjs/cim/components/modals/AddBmcHostYamlModal.js.map +1 -1
- package/build/cjs/cim/components/modals/AddHostModal.js +9 -7
- package/build/cjs/cim/components/modals/AddHostModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +26 -25
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
- package/build/cjs/cim/components/modals/EditBMHModal.js +4 -2
- package/build/cjs/cim/components/modals/EditBMHModal.js.map +1 -1
- package/build/cjs/cim/components/modals/EditNtpSourcesModal.js +4 -4
- package/build/cjs/cim/components/modals/EditNtpSourcesModal.js.map +1 -1
- package/build/cjs/cim/components/modals/EditProxyModal.js +9 -7
- package/build/cjs/cim/components/modals/EditProxyModal.js.map +1 -1
- package/build/cjs/cim/components/modals/EditPullSecretModal.js +5 -5
- package/build/cjs/cim/components/modals/EditPullSecretModal.js.map +1 -1
- package/build/cjs/cim/components/modals/EditSSHKeyModal.js +8 -8
- package/build/cjs/cim/components/modals/EditSSHKeyModal.js.map +1 -1
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js +4 -4
- package/build/cjs/cim/components/modals/MassApproveAgentModal.js.map +1 -1
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +1 -1
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
- package/build/cjs/cim/components/modals/ScaleUpModal.js +4 -4
- package/build/cjs/cim/components/modals/ScaleUpModal.js.map +1 -1
- package/build/cjs/cim/hooks/index.js +1 -0
- package/build/cjs/cim/hooks/index.js.map +1 -1
- package/build/cjs/cim/hooks/useEvents.js +12 -0
- package/build/cjs/cim/hooks/useEvents.js.map +1 -0
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js +7 -6
- package/build/cjs/common/components/clusterConfiguration/DiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryInstructions.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js +9 -9
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/ProxyFields.js +3 -3
- package/build/cjs/common/components/clusterConfiguration/ProxyFields.js.map +1 -1
- package/build/cjs/common/components/clusterConfiguration/utils.js +3 -4
- package/build/cjs/common/components/clusterConfiguration/utils.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js +8 -8
- package/build/cjs/common/components/clusterWizard/clusterDetailsValidation.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.js +62 -0
- package/build/cjs/common/components/clusterWizard/networkingSteps/AdvancedNetworkFields.js.map +1 -0
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js +130 -46
- package/build/cjs/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.js.map +1 -1
- package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js → common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js} +59 -38
- package/build/cjs/common/components/clusterWizard/networkingSteps/StackTypeControlGroup.js.map +1 -0
- package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.js +7 -5
- package/build/cjs/common/components/clusterWizard/networkingSteps/SubnetsDropdown.js.map +1 -0
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js +96 -38
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/networkingSteps/index.js +13 -3
- package/build/cjs/common/components/clusterWizard/networkingSteps/index.js.map +1 -1
- package/build/cjs/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.js +2 -2
- package/build/cjs/common/components/clusterWizard/networkingSteps/reorderNetworks.js.map +1 -0
- package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js +2 -1
- package/build/cjs/common/components/hosts/AdditionalNTPSourcesDialog.js.map +1 -1
- package/build/cjs/common/components/hosts/EditHostForm.js +3 -2
- package/build/cjs/common/components/hosts/EditHostForm.js.map +1 -1
- package/build/cjs/common/components/hosts/HostStatus.js +8 -6
- package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
- package/build/cjs/common/components/hosts/HostValidationGroups.js +2 -3
- package/build/cjs/common/components/hosts/HostValidationGroups.js.map +1 -1
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +13 -18
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
- package/build/cjs/common/components/hosts/index.js +2 -0
- package/build/cjs/common/components/hosts/index.js.map +1 -1
- package/build/cjs/common/components/hosts/tableColumns.js +336 -0
- package/build/cjs/common/components/hosts/tableColumns.js.map +1 -0
- package/build/cjs/common/components/hosts/tableUtils.js +1 -331
- package/build/cjs/common/components/hosts/tableUtils.js.map +1 -1
- package/build/cjs/common/components/ui/EventsList.js +1 -1
- package/build/cjs/common/components/ui/EventsList.js.map +1 -1
- package/build/cjs/common/components/ui/PrismCode.js +29 -20
- package/build/cjs/common/components/ui/PrismCode.js.map +1 -1
- package/build/cjs/common/components/ui/formik/LabelField.js +34 -26
- package/build/cjs/common/components/ui/formik/LabelField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/index.js +0 -2
- package/build/cjs/common/components/ui/formik/index.js.map +1 -1
- package/build/cjs/common/components/ui/index.js +1 -2
- package/build/cjs/common/components/ui/index.js.map +1 -1
- package/build/cjs/common/config/constants.js +27 -4
- package/build/cjs/common/config/constants.js.map +1 -1
- package/build/cjs/common/config/docs_links.js +1 -1
- package/build/cjs/common/index.js +1 -0
- package/build/cjs/common/index.js.map +1 -1
- package/build/cjs/common/types/clusters.js.map +1 -1
- package/build/cjs/common/utils.js +5 -3
- package/build/cjs/common/utils.js.map +1 -1
- package/build/cjs/common/validationSchemas/addressValidation.js +246 -0
- package/build/cjs/common/validationSchemas/addressValidation.js.map +1 -0
- package/build/cjs/common/validationSchemas/clusterDetailsValidation.js +104 -0
- package/build/cjs/common/validationSchemas/clusterDetailsValidation.js.map +1 -0
- package/build/cjs/common/{components/ui/formik → validationSchemas}/constants.js +3 -5
- package/build/cjs/common/validationSchemas/constants.js.map +1 -0
- package/build/cjs/common/validationSchemas/hostnameValidation.js +36 -0
- package/build/cjs/common/validationSchemas/hostnameValidation.js.map +1 -0
- package/build/cjs/common/validationSchemas/index.js +17 -0
- package/build/cjs/common/validationSchemas/index.js.map +1 -0
- package/build/cjs/common/validationSchemas/networkingValidation.js +74 -0
- package/build/cjs/common/validationSchemas/networkingValidation.js.map +1 -0
- package/build/cjs/common/validationSchemas/ntpValidation.js +25 -0
- package/build/cjs/common/validationSchemas/ntpValidation.js.map +1 -0
- package/build/cjs/common/validationSchemas/proxyValidation.js +43 -0
- package/build/cjs/common/validationSchemas/proxyValidation.js.map +1 -0
- package/build/cjs/common/validationSchemas/pullSecretValidation.js +21 -0
- package/build/cjs/common/validationSchemas/pullSecretValidation.js.map +1 -0
- package/build/cjs/common/validationSchemas/regexes.js +17 -0
- package/build/cjs/common/validationSchemas/regexes.js.map +1 -0
- package/build/cjs/common/validationSchemas/sshValidation.js +32 -0
- package/build/cjs/common/validationSchemas/sshValidation.js.map +1 -0
- package/build/cjs/common/validationSchemas/utils.js +40 -0
- package/build/cjs/common/validationSchemas/utils.js.map +1 -0
- package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmBaseDomainField.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js +7 -6
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js +4 -2
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js +7 -6
- package/build/cjs/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js +6 -12
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js +2 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js +8 -9
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +13 -23
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.js +3 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.js +6 -6
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.js +3 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.js +12 -12
- package/build/cjs/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +1 -1
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js +1 -1
- package/build/cjs/ocm/components/clusterWizard/OperatorsSelect.js.map +1 -1
- package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js +4 -3
- package/build/cjs/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.js.map +1 -1
- package/build/cjs/ocm/components/hosts/ClusterHostsTable.js +7 -8
- package/build/cjs/ocm/components/hosts/ClusterHostsTable.js.map +1 -1
- package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js +7 -8
- package/build/cjs/ocm/components/hosts/HostsDiscoveryTable.js.map +1 -1
- package/build/cjs/ocm/components/hosts/HostsStorageTable.js +5 -6
- package/build/cjs/ocm/components/hosts/HostsStorageTable.js.map +1 -1
- package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js +2 -1
- package/build/cjs/ocm/components/hosts/UpdateDay2ApiVipForm.js.map +1 -1
- package/build/cjs/ocm/components/hosts/use-hosts-table.js +2 -3
- package/build/cjs/ocm/components/hosts/use-hosts-table.js.map +1 -1
- package/lib/cim/components/Agent/AgentStatus.tsx +3 -0
- package/lib/cim/components/Agent/AgentTable.tsx +3 -2
- package/lib/cim/components/Agent/AgentsSelectionTable.tsx +3 -12
- package/lib/cim/components/Agent/BMCForm.tsx +11 -10
- package/lib/cim/components/Agent/BMHEventsModal.tsx +87 -0
- package/lib/cim/components/Agent/BMHStatus.tsx +17 -17
- package/lib/cim/components/Agent/BMHStatusInfo.tsx +94 -0
- package/lib/cim/components/Agent/MinimalHWRequirements.tsx +17 -12
- package/lib/cim/components/Agent/index.ts +2 -0
- package/lib/cim/components/Agent/tableColumns.tsx +257 -0
- package/lib/cim/components/Agent/tableUtils.tsx +4 -243
- package/lib/cim/components/ClusterDeployment/ClusterDeploymentDetailsTable.tsx +2 -2
- package/lib/cim/components/ClusterDeployment/LocationsSelector.tsx +2 -2
- package/lib/cim/components/ClusterDeployment/NetworkConfiguration.tsx +61 -44
- package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +8 -18
- package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +9 -12
- package/lib/cim/components/ClusterDeployment/hostDiscovery/ClusterDeploymentHostDiscoveryTable.tsx +3 -5
- package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +28 -31
- package/lib/cim/components/ClusterDeployment/networkConfigurationValidation.ts +30 -36
- package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentHostsNetworkTable.tsx +2 -7
- package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingForm.tsx +3 -3
- package/lib/cim/components/ClusterDeployment/networking/ClusterDeploymentNetworkingStep.tsx +26 -26
- package/lib/cim/components/ClusterDeployment/review/ClusterDeploymentReviewStep.tsx +20 -6
- package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +41 -17
- package/lib/cim/components/Hypershift/DetailsPage/NodePoolsTable.tsx +2 -2
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +2 -2
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsForm.tsx +1 -1
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.tsx +2 -13
- package/lib/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.tsx +4 -4
- package/lib/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkForm.tsx +1 -1
- package/lib/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.tsx +8 -8
- package/lib/cim/components/Hypershift/modals/AddNodePoolModal.tsx +15 -16
- package/lib/cim/components/Hypershift/modals/ManageHostsModal.tsx +15 -16
- package/lib/cim/components/Hypershift/modals/NodePoolForm.tsx +1 -1
- package/lib/cim/components/Hypershift/modals/RemoveNodePoolModal.tsx +14 -11
- package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +6 -3
- package/lib/cim/components/InfraEnv/EnvironmentErrors.tsx +1 -6
- package/lib/cim/components/InfraEnv/InfraEnvAgentTable.tsx +6 -6
- package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +8 -6
- package/lib/cim/components/common/ResourceAlerts.tsx +4 -4
- package/lib/cim/components/helpers/agentStatus.tsx +5 -0
- package/lib/cim/components/helpers/toAssisted.ts +15 -15
- package/lib/cim/components/helpers/versions.ts +51 -34
- package/lib/cim/components/modals/AddBmcHostModal.tsx +14 -13
- package/lib/cim/components/modals/AddBmcHostYamlForm.tsx +6 -5
- package/lib/cim/components/modals/AddBmcHostYamlModal.tsx +8 -7
- package/lib/cim/components/modals/AddHostModal.tsx +22 -11
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +79 -69
- package/lib/cim/components/modals/EditBMHModal.tsx +2 -3
- package/lib/cim/components/modals/EditNtpSourcesModal.tsx +15 -10
- package/lib/cim/components/modals/EditProxyModal.tsx +22 -13
- package/lib/cim/components/modals/EditPullSecretModal.tsx +15 -11
- package/lib/cim/components/modals/EditSSHKeyModal.tsx +24 -19
- package/lib/cim/components/modals/MassApproveAgentModal.tsx +16 -8
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +1 -1
- package/lib/cim/components/modals/ScaleUpModal.tsx +9 -7
- package/lib/cim/hooks/index.tsx +1 -0
- package/lib/cim/hooks/types.tsx +4 -1
- package/lib/cim/hooks/useEvents.tsx +14 -0
- package/lib/cim/types/fromOCP/k8sTypes.ts +13 -0
- package/lib/cim/types/k8s/agent-cluster-install.ts +4 -0
- package/lib/cim/types/k8s/bare-metal-host.ts +20 -0
- package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +9 -8
- package/lib/common/components/clusterConfiguration/DiscoveryInstructions.tsx +1 -1
- package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +7 -10
- package/lib/common/components/clusterConfiguration/ProxyFields.tsx +3 -3
- package/lib/common/components/clusterConfiguration/utils.ts +22 -12
- package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +21 -11
- package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/AdvancedNetworkFields.tsx +54 -38
- package/lib/common/components/clusterWizard/networkingSteps/AvailableSubnetsControl.tsx +221 -53
- package/lib/{ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.tsx → common/components/clusterWizard/networkingSteps/StackTypeControlGroup.tsx} +64 -28
- package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/SubnetsDropdown.tsx +4 -7
- package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +199 -80
- package/lib/common/components/clusterWizard/networkingSteps/index.ts +10 -2
- package/lib/{ocm/components/clusterConfiguration/networkConfiguration → common/components/clusterWizard/networkingSteps}/reorderNetworks.ts +2 -1
- package/lib/common/components/hosts/AdditionalNTPSourcesDialog.tsx +3 -6
- package/lib/common/components/hosts/EditHostForm.tsx +2 -8
- package/lib/common/components/hosts/HostStatus.tsx +14 -3
- package/lib/common/components/hosts/HostValidationGroups.tsx +5 -4
- package/lib/common/components/hosts/MassChangeHostnameModal.tsx +48 -44
- package/lib/common/components/hosts/index.ts +2 -0
- package/lib/common/components/hosts/tableColumns.tsx +411 -0
- package/lib/common/components/hosts/tableUtils.tsx +4 -409
- package/lib/common/components/hosts/types.ts +1 -0
- package/lib/common/components/ui/EventsList.tsx +4 -2
- package/lib/common/components/ui/PrismCode.tsx +35 -22
- package/lib/common/components/ui/formik/LabelField.tsx +77 -60
- package/lib/common/components/ui/formik/index.tsx +0 -2
- package/lib/common/components/ui/index.ts +1 -1
- package/lib/common/config/constants.ts +33 -2
- package/lib/common/config/docs_links.ts +1 -1
- package/lib/common/index.ts +2 -0
- package/lib/common/types/clusters.ts +0 -1
- package/lib/common/utils.ts +5 -7
- package/lib/common/{components/ui/formik → validationSchemas}/_validationSchemas.test.ts +51 -39
- package/lib/common/validationSchemas/addressValidation.tsx +349 -0
- package/lib/common/validationSchemas/clusterDetailsValidation.tsx +168 -0
- package/lib/common/{components/ui/formik → validationSchemas}/constants.tsx +3 -6
- package/lib/common/validationSchemas/hostnameValidation.tsx +46 -0
- package/lib/common/validationSchemas/index.tsx +11 -0
- package/lib/common/validationSchemas/networkingValidation.tsx +113 -0
- package/lib/common/validationSchemas/ntpValidation.tsx +30 -0
- package/lib/common/validationSchemas/proxyValidation.tsx +67 -0
- package/lib/common/validationSchemas/pullSecretValidation.tsx +24 -0
- package/lib/common/validationSchemas/regexes.tsx +22 -0
- package/lib/common/validationSchemas/sshValidation.tsx +46 -0
- package/lib/common/validationSchemas/utils.tsx +36 -0
- package/lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx +2 -2
- package/lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx +17 -15
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.tsx +4 -2
- package/lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx +31 -31
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.tsx +12 -23
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.tsx +9 -2
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationTableBase.tsx +3 -2
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +16 -26
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/FormViewHosts.tsx +3 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/FormViewHosts/formViewHostsValidationSchema.tsx +11 -6
- package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/YamlView.tsx +5 -1
- package/lib/ocm/components/clusterConfiguration/staticIp/components/YamlView/yamlViewValidationSchema.tsx +33 -28
- package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +2 -1
- package/lib/ocm/components/clusterWizard/OperatorsSelect.tsx +2 -2
- package/lib/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.tsx +5 -3
- package/lib/ocm/components/hosts/ClusterHostsTable.tsx +4 -3
- package/lib/ocm/components/hosts/HostsDiscoveryTable.tsx +2 -4
- package/lib/ocm/components/hosts/HostsStorageTable.tsx +5 -7
- package/lib/ocm/components/hosts/UpdateDay2ApiVipForm.tsx +3 -7
- package/lib/ocm/components/hosts/use-hosts-table.tsx +2 -1
- package/package.json +3 -3
- package/build/@types/common/components/clusterConfiguration/AdvancedNetworkFields.d.ts.map +0 -1
- package/build/@types/common/components/ui/formik/constants.d.ts.map +0 -1
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts +0 -52
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts +0 -4
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts +0 -12
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts +0 -11
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts +0 -9
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.d.ts.map +0 -1
- package/build/@types/ocm/components/clusterConfiguration/networkConfiguration/reorderNetworks.d.ts.map +0 -1
- package/build/cjs/common/components/clusterConfiguration/AdvancedNetworkFields.js.map +0 -1
- package/build/cjs/common/components/ui/formik/LabelField.css +0 -43
- package/build/cjs/common/components/ui/formik/constants.js.map +0 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js +0 -571
- package/build/cjs/common/components/ui/formik/validationSchemas.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js +0 -53
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AdvancedNetworkFields.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js +0 -124
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/StackTypeControl.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/SubnetsDropdown.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js +0 -98
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.js.map +0 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/reorderNetworks.js.map +0 -1
- package/lib/common/components/ui/formik/LabelField.css +0 -43
- package/lib/common/components/ui/formik/validationSchemas.ts +0 -846
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/AvailableSubnetsControl.tsx +0 -208
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/VirtualIPControlGroup.tsx +0 -283
- /package/build/@types/{common/components/clusterConfiguration → cim/components/Hypershift/HostedClusterWizard/NetworkStep}/AdvancedNetworkFields.d.ts +0 -0
|
@@ -1,414 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Label, LabelGroup } from '@patternfly/react-core';
|
|
3
|
-
import { Address4, Address6 } from 'ip-address';
|
|
4
|
-
import type {
|
|
5
|
-
Cluster,
|
|
6
|
-
Host,
|
|
7
|
-
HostUpdateParams,
|
|
8
|
-
Interface,
|
|
9
|
-
} from '@openshift-assisted/types/assisted-installer-service';
|
|
10
|
-
import type { ValidationsInfo as HostValidationsInfo } from '../../types/hosts';
|
|
11
|
-
import { getSubnet } from '../clusterConfiguration';
|
|
12
|
-
import { DASH } from '../constants';
|
|
13
|
-
import { getDateTimeCell } from '../ui';
|
|
14
|
-
import { ActionsResolver, TableRow } from './AITable';
|
|
15
|
-
import { getHostRowHardwareInfo } from './hardwareInfo';
|
|
16
|
-
import Hostname from './Hostname';
|
|
17
|
-
import HostPropertyValidationPopover from './HostPropertyValidationPopover';
|
|
18
|
-
import HostsCount from './HostsCount';
|
|
19
|
-
import { HostsTableActions } from './types';
|
|
20
|
-
import HostStatus from './HostStatus';
|
|
21
|
-
import RoleCell from './RoleCell';
|
|
22
|
-
import {
|
|
23
|
-
areOnlySoftValidationsFailing,
|
|
24
|
-
getHostLabels,
|
|
25
|
-
getHostname,
|
|
26
|
-
getHostRole,
|
|
27
|
-
getHostStatus,
|
|
28
|
-
getInventory,
|
|
29
|
-
} from './utils';
|
|
30
|
-
import { selectMachineNetworkCIDR } from '../../selectors/clusterSelectors';
|
|
31
|
-
import { hostStatus } from './status';
|
|
32
2
|
import { TFunction } from 'i18next';
|
|
33
|
-
import {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
const ipv4Addresses = (nic.ipv4Addresses || []).reduce<Address4[]>((addresses, address) => {
|
|
38
|
-
if (Address4.isValid(address)) {
|
|
39
|
-
addresses.push(new Address4(address));
|
|
40
|
-
}
|
|
41
|
-
return addresses;
|
|
42
|
-
}, []);
|
|
43
|
-
|
|
44
|
-
if (ipv4Addresses.find((address) => address.isInSubnet(currentSubnet))) {
|
|
45
|
-
return true;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const ipv6Addresses = (nic.ipv6Addresses || []).reduce<Address6[]>((addresses, address) => {
|
|
49
|
-
if (Address6.isValid(address)) {
|
|
50
|
-
addresses.push(new Address6(address));
|
|
51
|
-
}
|
|
52
|
-
return addresses;
|
|
53
|
-
}, []);
|
|
54
|
-
|
|
55
|
-
return ipv6Addresses.find((address) => address.isInSubnet(currentSubnet));
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const hostnameColumn = (
|
|
60
|
-
t: TFunction,
|
|
61
|
-
onEditHostname?: HostsTableActions['onEditHost'],
|
|
62
|
-
hosts?: Host[],
|
|
63
|
-
canEditHostname?: HostsTableActions['canEditHostname'],
|
|
64
|
-
): TableRow<Host> => {
|
|
65
|
-
return {
|
|
66
|
-
header: {
|
|
67
|
-
title: t('ai:Hostname'),
|
|
68
|
-
props: {
|
|
69
|
-
id: 'col-header-hostname', // ACM jest tests require id over testId
|
|
70
|
-
},
|
|
71
|
-
sort: true,
|
|
72
|
-
},
|
|
73
|
-
cell: (host) => {
|
|
74
|
-
const inventory = getInventory(host);
|
|
75
|
-
const editHostname = onEditHostname ? () => onEditHostname(host) : undefined;
|
|
76
|
-
const computedHostname = getHostname(host, inventory);
|
|
77
|
-
return {
|
|
78
|
-
title: (
|
|
79
|
-
<Hostname
|
|
80
|
-
host={host}
|
|
81
|
-
inventory={inventory}
|
|
82
|
-
onEditHostname={editHostname}
|
|
83
|
-
hosts={hosts}
|
|
84
|
-
readonly={canEditHostname ? !canEditHostname(host) : false}
|
|
85
|
-
/>
|
|
86
|
-
),
|
|
87
|
-
props: { 'data-testid': 'host-name' },
|
|
88
|
-
sortableValue: computedHostname || '',
|
|
89
|
-
};
|
|
90
|
-
},
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
export const roleColumn = (
|
|
95
|
-
t: TFunction,
|
|
96
|
-
canEditRole?: HostsTableActions['canEditRole'],
|
|
97
|
-
onEditRole?: HostsTableActions['onEditRole'],
|
|
98
|
-
schedulableMasters?: boolean,
|
|
99
|
-
clusterKind?: Cluster['kind'],
|
|
100
|
-
): TableRow<Host> => {
|
|
101
|
-
return {
|
|
102
|
-
header: {
|
|
103
|
-
title: t('ai:Role'),
|
|
104
|
-
props: {
|
|
105
|
-
id: 'col-header-role',
|
|
106
|
-
},
|
|
107
|
-
sort: true,
|
|
108
|
-
},
|
|
109
|
-
cell: (host) => {
|
|
110
|
-
const editRole = onEditRole
|
|
111
|
-
? (role: HostUpdateParams['hostRole']) => onEditRole(host, role)
|
|
112
|
-
: undefined;
|
|
113
|
-
const isRoleEditable = canEditRole?.(host);
|
|
114
|
-
const hostRole = getHostRole(host, t, schedulableMasters, clusterKind);
|
|
115
|
-
return {
|
|
116
|
-
title: (
|
|
117
|
-
<RoleCell host={host} readonly={!isRoleEditable} role={hostRole} onEditRole={editRole} />
|
|
118
|
-
),
|
|
119
|
-
props: { 'data-testid': 'host-role' },
|
|
120
|
-
sortableValue: hostRole,
|
|
121
|
-
};
|
|
122
|
-
},
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
|
|
126
|
-
export const statusColumn = (
|
|
127
|
-
t: TFunction,
|
|
128
|
-
clusterStatus: Cluster['status'],
|
|
129
|
-
AdditionalNTPSourcesDialogToggleComponent?: React.FC,
|
|
130
|
-
onEditHostname?: HostsTableActions['onEditHost'],
|
|
131
|
-
UpdateDay2ApiVipDialogToggleComponent?: React.FC,
|
|
132
|
-
): TableRow<Host> => {
|
|
133
|
-
return {
|
|
134
|
-
header: {
|
|
135
|
-
title: t('ai:Status'),
|
|
136
|
-
props: {
|
|
137
|
-
id: 'col-header-status',
|
|
138
|
-
},
|
|
139
|
-
sort: true,
|
|
140
|
-
},
|
|
141
|
-
cell: (host) => {
|
|
142
|
-
const validationsInfo = stringToJSON<HostValidationsInfo>(host.validationsInfo) || {};
|
|
143
|
-
const editHostname = onEditHostname ? () => onEditHostname(host) : undefined;
|
|
144
|
-
const sublabel =
|
|
145
|
-
areOnlySoftValidationsFailing(validationsInfo) &&
|
|
146
|
-
['known', 'known-unbound'].includes(host.status)
|
|
147
|
-
? t('ai:Some validations failed')
|
|
148
|
-
: undefined;
|
|
149
|
-
|
|
150
|
-
const actualHostStatus = getHostStatus(host.status, clusterStatus);
|
|
151
|
-
|
|
152
|
-
return {
|
|
153
|
-
title: (
|
|
154
|
-
<HostStatus
|
|
155
|
-
host={host}
|
|
156
|
-
status={{ ...hostStatus(t)[actualHostStatus], sublabel }}
|
|
157
|
-
onEditHostname={editHostname}
|
|
158
|
-
validationsInfo={validationsInfo}
|
|
159
|
-
AdditionalNTPSourcesDialogToggleComponent={AdditionalNTPSourcesDialogToggleComponent}
|
|
160
|
-
UpdateDay2ApiVipDialogToggleComponent={UpdateDay2ApiVipDialogToggleComponent}
|
|
161
|
-
/>
|
|
162
|
-
),
|
|
163
|
-
props: { 'data-testid': 'host-status' },
|
|
164
|
-
sortableValue: host.status,
|
|
165
|
-
};
|
|
166
|
-
},
|
|
167
|
-
};
|
|
168
|
-
};
|
|
169
|
-
|
|
170
|
-
export const discoveredAtColumn = (t: TFunction): TableRow<Host> => ({
|
|
171
|
-
header: {
|
|
172
|
-
title: t('ai:Discovered on'),
|
|
173
|
-
props: {
|
|
174
|
-
id: 'col-header-discoveredat',
|
|
175
|
-
},
|
|
176
|
-
sort: true,
|
|
177
|
-
},
|
|
178
|
-
cell: (host) => {
|
|
179
|
-
const { createdAt } = host;
|
|
180
|
-
const dateTimeCell = getDateTimeCell(createdAt);
|
|
181
|
-
return {
|
|
182
|
-
title: dateTimeCell.title,
|
|
183
|
-
props: { 'data-testid': 'host-discovered-time' },
|
|
184
|
-
sortableValue: dateTimeCell.sortableValue,
|
|
185
|
-
};
|
|
186
|
-
},
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
export const cpuArchitectureColumn = (t: TFunction): TableRow<Host> => ({
|
|
190
|
-
header: {
|
|
191
|
-
title: t('ai:CPU Architecture'),
|
|
192
|
-
props: {
|
|
193
|
-
id: 'col-header-cpuarchitecture',
|
|
194
|
-
},
|
|
195
|
-
sort: true,
|
|
196
|
-
},
|
|
197
|
-
cell: (host) => {
|
|
198
|
-
const inventory = getInventory(host);
|
|
199
|
-
return {
|
|
200
|
-
title: inventory.cpu?.architecture,
|
|
201
|
-
props: { 'data-testid': 'host-cpu-architecture' },
|
|
202
|
-
sortableValue: inventory.cpu?.architecture,
|
|
203
|
-
};
|
|
204
|
-
},
|
|
205
|
-
});
|
|
206
|
-
|
|
207
|
-
export const cpuCoresColumn = (t: TFunction): TableRow<Host> => ({
|
|
208
|
-
header: {
|
|
209
|
-
title: t('ai:CPU Cores'),
|
|
210
|
-
props: {
|
|
211
|
-
id: 'col-header-cpucores',
|
|
212
|
-
},
|
|
213
|
-
sort: true,
|
|
214
|
-
},
|
|
215
|
-
cell: (host) => {
|
|
216
|
-
const inventory = getInventory(host);
|
|
217
|
-
const { cores } = getHostRowHardwareInfo(inventory);
|
|
218
|
-
const validationsInfo = stringToJSON<HostValidationsInfo>(host.validationsInfo) || {};
|
|
219
|
-
const cpuCoresValidation = validationsInfo?.hardware?.find(
|
|
220
|
-
(v) => v.id === 'has-cpu-cores-for-role',
|
|
221
|
-
);
|
|
222
|
-
return {
|
|
223
|
-
title: (
|
|
224
|
-
<HostPropertyValidationPopover validation={cpuCoresValidation}>
|
|
225
|
-
{cores.title}
|
|
226
|
-
</HostPropertyValidationPopover>
|
|
227
|
-
),
|
|
228
|
-
props: { 'data-testid': 'host-cpu-cores' },
|
|
229
|
-
sortableValue: cores.sortableValue,
|
|
230
|
-
};
|
|
231
|
-
},
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
export const memoryColumn = (t: TFunction): TableRow<Host> => ({
|
|
235
|
-
header: {
|
|
236
|
-
title: t('ai:Memory'),
|
|
237
|
-
props: {
|
|
238
|
-
id: 'col-header-memory',
|
|
239
|
-
},
|
|
240
|
-
sort: true,
|
|
241
|
-
},
|
|
242
|
-
cell: (host) => {
|
|
243
|
-
const inventory = getInventory(host);
|
|
244
|
-
const { memory } = getHostRowHardwareInfo(inventory);
|
|
245
|
-
const validationsInfo = stringToJSON<HostValidationsInfo>(host.validationsInfo) || {};
|
|
246
|
-
const memoryValidation = validationsInfo?.hardware?.find((v) => v.id === 'has-memory-for-role');
|
|
247
|
-
return {
|
|
248
|
-
title: (
|
|
249
|
-
<HostPropertyValidationPopover validation={memoryValidation}>
|
|
250
|
-
{memory.title}
|
|
251
|
-
</HostPropertyValidationPopover>
|
|
252
|
-
),
|
|
253
|
-
props: { 'data-testid': 'host-memory' },
|
|
254
|
-
sortableValue: memory.sortableValue,
|
|
255
|
-
};
|
|
256
|
-
},
|
|
257
|
-
});
|
|
258
|
-
|
|
259
|
-
export const disksColumn = (t: TFunction): TableRow<Host> => ({
|
|
260
|
-
header: {
|
|
261
|
-
title: t('ai:Total storage'),
|
|
262
|
-
props: {
|
|
263
|
-
id: 'col-header-disk',
|
|
264
|
-
},
|
|
265
|
-
sort: true,
|
|
266
|
-
},
|
|
267
|
-
cell: (host) => {
|
|
268
|
-
const inventory = getInventory(host);
|
|
269
|
-
const { disk } = getHostRowHardwareInfo(inventory);
|
|
270
|
-
const validationsInfo = stringToJSON<HostValidationsInfo>(host.validationsInfo) || {};
|
|
271
|
-
const diskValidation = validationsInfo?.hardware?.find((v) => v.id === 'has-min-valid-disks');
|
|
272
|
-
return {
|
|
273
|
-
title: (
|
|
274
|
-
<HostPropertyValidationPopover validation={diskValidation}>
|
|
275
|
-
{disk.title}
|
|
276
|
-
</HostPropertyValidationPopover>
|
|
277
|
-
),
|
|
278
|
-
props: { 'data-testid': 'host-disks' },
|
|
279
|
-
sortableValue: disk.sortableValue,
|
|
280
|
-
};
|
|
281
|
-
},
|
|
282
|
-
});
|
|
283
|
-
|
|
284
|
-
export const gpusColumn = (t: TFunction): TableRow<Host> => ({
|
|
285
|
-
header: {
|
|
286
|
-
title: t('ai:GPUs'),
|
|
287
|
-
props: {
|
|
288
|
-
id: 'col-header-gpus',
|
|
289
|
-
},
|
|
290
|
-
sort: true,
|
|
291
|
-
},
|
|
292
|
-
cell: (host) => {
|
|
293
|
-
const { gpus } = getInventory(host);
|
|
294
|
-
return {
|
|
295
|
-
title: <>{gpus?.length ?? '--'}</>,
|
|
296
|
-
props: { 'data-testid': 'host-gpus' },
|
|
297
|
-
sortableValue: gpus?.length ?? 0,
|
|
298
|
-
};
|
|
299
|
-
},
|
|
300
|
-
});
|
|
301
|
-
|
|
302
|
-
export const countColumn = (cluster: Cluster): TableRow<Host> => ({
|
|
303
|
-
header: { title: <HostsCount cluster={cluster} inParenthesis /> },
|
|
304
|
-
});
|
|
305
|
-
|
|
306
|
-
export const activeNICColumn = (cluster: Cluster, t: TFunction): TableRow<Host> => ({
|
|
307
|
-
header: {
|
|
308
|
-
title: t('ai:Active NIC'),
|
|
309
|
-
sort: true,
|
|
310
|
-
},
|
|
311
|
-
cell: (host) => {
|
|
312
|
-
const inventory = getInventory(host);
|
|
313
|
-
const nics = inventory.interfaces || [];
|
|
314
|
-
const machineNetworkCidr = selectMachineNetworkCIDR(cluster);
|
|
315
|
-
const currentSubnet = machineNetworkCidr ? getSubnet(machineNetworkCidr) : null;
|
|
316
|
-
const selectedNic = currentSubnet ? getSelectedNic(nics, currentSubnet) : null;
|
|
317
|
-
return {
|
|
318
|
-
title: selectedNic?.name || DASH,
|
|
319
|
-
props: { 'data-testid': 'nic-name' },
|
|
320
|
-
sortableValue: selectedNic?.name || DASH,
|
|
321
|
-
};
|
|
322
|
-
},
|
|
323
|
-
});
|
|
324
|
-
|
|
325
|
-
export const ipv4Column = (cluster: Cluster): TableRow<Host> => ({
|
|
326
|
-
header: {
|
|
327
|
-
title: 'IPv4 address',
|
|
328
|
-
sort: true,
|
|
329
|
-
},
|
|
330
|
-
cell: (host) => {
|
|
331
|
-
const inventory = getInventory(host);
|
|
332
|
-
const nics = inventory.interfaces || [];
|
|
333
|
-
|
|
334
|
-
const machineNetworkCidr = selectMachineNetworkCIDR(cluster);
|
|
335
|
-
const currentSubnet = machineNetworkCidr ? getSubnet(machineNetworkCidr) : null;
|
|
336
|
-
const selectedNic = currentSubnet ? getSelectedNic(nics, currentSubnet) : null;
|
|
337
|
-
return {
|
|
338
|
-
title: (selectedNic?.ipv4Addresses || []).join(', ') || DASH,
|
|
339
|
-
props: { 'data-testid': 'nic-ipv4' },
|
|
340
|
-
sortableValue: (selectedNic?.ipv4Addresses || []).join(', ') || DASH,
|
|
341
|
-
};
|
|
342
|
-
},
|
|
343
|
-
});
|
|
344
|
-
|
|
345
|
-
export const ipv6Column = (cluster: Cluster): TableRow<Host> => ({
|
|
346
|
-
header: {
|
|
347
|
-
title: 'IPv6 address',
|
|
348
|
-
sort: true,
|
|
349
|
-
},
|
|
350
|
-
cell: (host) => {
|
|
351
|
-
const inventory = getInventory(host);
|
|
352
|
-
const nics = inventory.interfaces || [];
|
|
353
|
-
|
|
354
|
-
const machineNetworkCidr = selectMachineNetworkCIDR(cluster);
|
|
355
|
-
const currentSubnet = machineNetworkCidr ? getSubnet(machineNetworkCidr) : null;
|
|
356
|
-
const selectedNic = currentSubnet ? getSelectedNic(nics, currentSubnet) : null;
|
|
357
|
-
return {
|
|
358
|
-
title: (selectedNic?.ipv6Addresses || []).join(', ') || DASH,
|
|
359
|
-
props: { 'data-testid': 'nic-ipv6' },
|
|
360
|
-
sortableValue: (selectedNic?.ipv6Addresses || []).join(', ') || DASH,
|
|
361
|
-
};
|
|
362
|
-
},
|
|
363
|
-
});
|
|
364
|
-
|
|
365
|
-
export const macAddressColumn = (cluster: Cluster): TableRow<Host> => ({
|
|
366
|
-
header: {
|
|
367
|
-
title: 'MAC address',
|
|
368
|
-
sort: true,
|
|
369
|
-
},
|
|
370
|
-
cell: (host) => {
|
|
371
|
-
const inventory = getInventory(host);
|
|
372
|
-
const nics = inventory.interfaces || [];
|
|
373
|
-
|
|
374
|
-
const machineNetworkCidr = selectMachineNetworkCIDR(cluster);
|
|
375
|
-
const currentSubnet = machineNetworkCidr ? getSubnet(machineNetworkCidr) : null;
|
|
376
|
-
const selectedNic = currentSubnet ? getSelectedNic(nics, currentSubnet) : null;
|
|
377
|
-
return {
|
|
378
|
-
title: selectedNic?.macAddress || DASH,
|
|
379
|
-
props: { 'data-testid': 'nic-mac-address' },
|
|
380
|
-
sortableValue: selectedNic?.macAddress || DASH,
|
|
381
|
-
};
|
|
382
|
-
},
|
|
383
|
-
});
|
|
384
|
-
|
|
385
|
-
export const labelsColumn = (t: TFunction): TableRow<Host> => ({
|
|
386
|
-
header: {
|
|
387
|
-
title: t('ai:Labels'),
|
|
388
|
-
props: {
|
|
389
|
-
id: 'col-header-labels',
|
|
390
|
-
},
|
|
391
|
-
sort: false,
|
|
392
|
-
},
|
|
393
|
-
cell: (host) => {
|
|
394
|
-
const labels = getHostLabels(host);
|
|
395
|
-
return {
|
|
396
|
-
title:
|
|
397
|
-
Object.entries(labels).length > 0 ? (
|
|
398
|
-
<LabelGroup>
|
|
399
|
-
{Object.entries(labels).map(([key, value], index) => (
|
|
400
|
-
<Label key={`${host.id}-host-label-${index}`} isCompact>
|
|
401
|
-
{key} = {value}
|
|
402
|
-
</Label>
|
|
403
|
-
))}
|
|
404
|
-
</LabelGroup>
|
|
405
|
-
) : (
|
|
406
|
-
'--'
|
|
407
|
-
),
|
|
408
|
-
props: { 'data-testid': 'host-labels' },
|
|
409
|
-
};
|
|
410
|
-
},
|
|
411
|
-
});
|
|
3
|
+
import type { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
4
|
+
import { ActionsResolver } from './AITable';
|
|
5
|
+
import { HostsTableActions } from './types';
|
|
6
|
+
import { getHostname, getInventory } from './utils';
|
|
412
7
|
|
|
413
8
|
const ActionTitle: React.FC<{ disabled: boolean; description?: string; title: string }> = ({
|
|
414
9
|
title,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { Button, ButtonVariant, Label } from '@patternfly/react-core';
|
|
2
|
+
import { Button, ButtonVariant, Content, Label } from '@patternfly/react-core';
|
|
3
3
|
import { Table, TableText, TableVariant, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
|
4
4
|
import { InfoCircleIcon } from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
5
5
|
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
@@ -71,7 +71,9 @@ const EventsList = ({ events, resetFilters }: EventsListProps) => {
|
|
|
71
71
|
{
|
|
72
72
|
title: (
|
|
73
73
|
<TableText wrapModifier="fitContent" cellPadding={0}>
|
|
74
|
-
<
|
|
74
|
+
<Content className="pf-v6-u-font-weight-bold">
|
|
75
|
+
{getHumanizedDateTime(event.eventTime)}
|
|
76
|
+
</Content>
|
|
75
77
|
</TableText>
|
|
76
78
|
),
|
|
77
79
|
},
|
|
@@ -3,42 +3,55 @@ import Highlight, { defaultProps, Language, PrismTheme } from 'prism-react-rende
|
|
|
3
3
|
import { Content, ClipboardCopy, clipboardCopyFunc } from '@patternfly/react-core';
|
|
4
4
|
import { t_global_color_nonstatus_purple_300 } from '@patternfly/react-tokens/dist/js/t_global_color_nonstatus_purple_300';
|
|
5
5
|
import { t_global_color_nonstatus_blue_default as globalBlue } from '@patternfly/react-tokens/dist/js/t_global_color_nonstatus_blue_default';
|
|
6
|
-
import
|
|
6
|
+
import lightTheme from 'prism-react-renderer/themes/github';
|
|
7
|
+
import darkTheme from 'prism-react-renderer/themes/okaidia';
|
|
7
8
|
import './PrismCode.css';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
|
|
10
|
+
export const getTheme = (styles?: PrismTheme['styles']) => {
|
|
11
|
+
let prefersTheme = window.localStorage.getItem('bridge/theme');
|
|
12
|
+
if (prefersTheme === 'systemDefault') {
|
|
13
|
+
prefersTheme = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const theme = prefersTheme === 'dark' ? darkTheme : lightTheme;
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
plain: {
|
|
20
|
+
color: theme.plain.color,
|
|
21
|
+
backgroundColor: theme.plain.backgroundColor,
|
|
22
|
+
fontSize: '.93em',
|
|
20
23
|
},
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
24
|
+
styles: styles || [
|
|
25
|
+
{
|
|
26
|
+
types: ['variable'],
|
|
27
|
+
style: {
|
|
28
|
+
color: globalBlue.value,
|
|
29
|
+
},
|
|
25
30
|
},
|
|
26
|
-
|
|
27
|
-
|
|
31
|
+
{
|
|
32
|
+
types: ['class-name', 'function', 'tag', 'attr-name'],
|
|
33
|
+
style: {
|
|
34
|
+
color: t_global_color_nonstatus_purple_300.value,
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
};
|
|
28
39
|
};
|
|
40
|
+
|
|
29
41
|
type PrismCodeProps = {
|
|
30
42
|
code: string;
|
|
31
43
|
language?: Language;
|
|
32
|
-
|
|
44
|
+
styles?: PrismTheme['styles'];
|
|
33
45
|
copiable?: boolean;
|
|
34
46
|
};
|
|
47
|
+
|
|
35
48
|
const PrismCode: React.FC<PrismCodeProps> = ({
|
|
36
49
|
code,
|
|
50
|
+
styles,
|
|
37
51
|
language = 'bash',
|
|
38
|
-
theme = defaultTheme,
|
|
39
52
|
copiable = false,
|
|
40
53
|
}) => (
|
|
41
|
-
<Highlight {...defaultProps} code={code} language={language} theme={
|
|
54
|
+
<Highlight {...defaultProps} code={code} language={language} theme={getTheme(styles)}>
|
|
42
55
|
{({ className, style, tokens, getLineProps, getTokenProps }) => (
|
|
43
56
|
<Content component="pre" className={className} style={style}>
|
|
44
57
|
{copiable && (
|
|
@@ -6,32 +6,15 @@ import {
|
|
|
6
6
|
HelperText,
|
|
7
7
|
HelperTextItem,
|
|
8
8
|
Label,
|
|
9
|
+
TextInput,
|
|
9
10
|
} from '@patternfly/react-core';
|
|
11
|
+
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
10
12
|
import TagsInput from 'react-tagsinput';
|
|
11
13
|
import { InputFieldProps } from './types';
|
|
12
14
|
import { getFieldId } from './utils';
|
|
13
|
-
|
|
14
|
-
import './LabelField.css';
|
|
15
15
|
import { useTranslation } from '../../../hooks/use-translation-wrapper';
|
|
16
|
-
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
17
|
-
|
|
18
|
-
type LabelValueProps = {
|
|
19
|
-
value: React.ReactText;
|
|
20
|
-
onClose?: () => void;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export const LabelValue: React.FC<LabelValueProps> = ({ value, onClose }) => (
|
|
24
|
-
<Label className="label-field__value" variant="outline" onClose={onClose}>
|
|
25
|
-
{value}
|
|
26
|
-
</Label>
|
|
27
|
-
);
|
|
28
16
|
|
|
29
|
-
|
|
30
|
-
// eslint-disable-next-line
|
|
31
|
-
onChange?: (tags: any[]) => void;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export const LabelField: React.FC<LabelFieldProps> = ({
|
|
17
|
+
export const LabelField = ({
|
|
35
18
|
label,
|
|
36
19
|
labelIcon,
|
|
37
20
|
helperText,
|
|
@@ -40,6 +23,9 @@ export const LabelField: React.FC<LabelFieldProps> = ({
|
|
|
40
23
|
validate,
|
|
41
24
|
idPostfix,
|
|
42
25
|
...props
|
|
26
|
+
}: InputFieldProps & {
|
|
27
|
+
// eslint-disable-next-line
|
|
28
|
+
onChange?: (tags: any[]) => void;
|
|
43
29
|
}) => {
|
|
44
30
|
const { t } = useTranslation();
|
|
45
31
|
const [input, setInput] = React.useState('');
|
|
@@ -53,49 +39,80 @@ export const LabelField: React.FC<LabelFieldProps> = ({
|
|
|
53
39
|
|
|
54
40
|
return (
|
|
55
41
|
<FormGroup fieldId={fieldId} label={label} isRequired={isRequired} labelHelp={labelIcon}>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
42
|
+
<TagsInput
|
|
43
|
+
{...field}
|
|
44
|
+
onChange={(tags) => {
|
|
45
|
+
setValue(tags);
|
|
46
|
+
setInput('');
|
|
47
|
+
onChange && onChange(tags);
|
|
48
|
+
!touched && setTouched(true);
|
|
49
|
+
}}
|
|
50
|
+
addKeys={[13, 32, 188]}
|
|
51
|
+
renderTag={({ tag, key, onRemove, getTagDisplayValue }) => (
|
|
52
|
+
<Label key={key} style={{ margin: 2 }} onClose={() => onRemove(key)}>
|
|
53
|
+
{getTagDisplayValue(tag)}
|
|
54
|
+
</Label>
|
|
55
|
+
)}
|
|
56
|
+
renderInput={({ value, onChange, ...rest }) => (
|
|
57
|
+
<TextInput
|
|
58
|
+
onChange={onChange as (e: unknown) => void}
|
|
59
|
+
value={value as string}
|
|
60
|
+
{...rest}
|
|
61
|
+
/>
|
|
62
|
+
)}
|
|
63
|
+
renderLayout={(tagElements, inputElement) => (
|
|
64
|
+
<div
|
|
65
|
+
className="pf-v6-c-form-control"
|
|
66
|
+
style={{
|
|
67
|
+
padding: 0,
|
|
68
|
+
paddingTop: '1px',
|
|
69
|
+
display: 'flex',
|
|
70
|
+
alignItems: 'start',
|
|
71
|
+
flexWrap: 'wrap',
|
|
72
|
+
height: 'unset',
|
|
73
|
+
minHeight: '36px',
|
|
74
|
+
}}
|
|
75
|
+
>
|
|
76
|
+
<div>{tagElements}</div>
|
|
77
|
+
{inputElement}
|
|
78
|
+
</div>
|
|
79
|
+
)}
|
|
80
|
+
addOnBlur
|
|
81
|
+
inputProps={{
|
|
82
|
+
autoFocus: false,
|
|
83
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
84
|
+
placeholder: field.value?.length ? '' : 'app=frontend',
|
|
85
|
+
spellCheck: 'false',
|
|
86
|
+
value: input,
|
|
87
|
+
// eslint-disable-next-line
|
|
88
|
+
onChange: (e: any) => setInput(e.target.value),
|
|
89
|
+
['data-test']: fieldId,
|
|
90
|
+
}}
|
|
91
|
+
/>
|
|
92
|
+
|
|
93
|
+
<FormHelperText>
|
|
94
|
+
<HelperText>
|
|
95
|
+
<HelperTextItem
|
|
96
|
+
id={`${fieldId}-helper-text`}
|
|
97
|
+
data-testid={`input-label-${fieldId}-helper-text`}
|
|
98
|
+
>
|
|
99
|
+
{helperText ||
|
|
100
|
+
t(
|
|
101
|
+
"ai:Enter a key=value and then press 'enter' or 'space' or use a ',' to input the label.",
|
|
102
|
+
)}
|
|
103
|
+
</HelperTextItem>
|
|
104
|
+
{errorMessage && (
|
|
88
105
|
<HelperTextItem
|
|
89
|
-
icon={
|
|
90
|
-
variant={
|
|
91
|
-
id={
|
|
92
|
-
data-testid={`input-label-${fieldId}-helper-
|
|
106
|
+
icon={<ExclamationCircleIcon />}
|
|
107
|
+
variant={'error'}
|
|
108
|
+
id={`${fieldId}-helper-error`}
|
|
109
|
+
data-testid={`input-label-${fieldId}-helper-error`}
|
|
93
110
|
>
|
|
94
|
-
{errorMessage
|
|
111
|
+
{errorMessage}
|
|
95
112
|
</HelperTextItem>
|
|
96
|
-
|
|
97
|
-
</
|
|
98
|
-
|
|
113
|
+
)}
|
|
114
|
+
</HelperText>
|
|
115
|
+
</FormHelperText>
|
|
99
116
|
</FormGroup>
|
|
100
117
|
);
|
|
101
118
|
};
|