@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
|
@@ -3,14 +3,12 @@ import { getFailingResourceConditions } from '../helpers';
|
|
|
3
3
|
import { InfraEnvK8sResource } from '../../types';
|
|
4
4
|
import { SingleResourceAlerts } from '../common/ResourceAlerts';
|
|
5
5
|
import { Alert, AlertVariant } from '@patternfly/react-core';
|
|
6
|
-
import { ModalBoxBody } from '@patternfly/react-core/deprecated';
|
|
7
6
|
import { getInfraEnvDocs } from '../common/constants';
|
|
8
7
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
9
8
|
|
|
10
9
|
export type EnvironmentErrorsProps = {
|
|
11
10
|
infraEnv: InfraEnvK8sResource;
|
|
12
11
|
docVersion: string;
|
|
13
|
-
inModal?: boolean;
|
|
14
12
|
children?: React.ReactNode;
|
|
15
13
|
};
|
|
16
14
|
|
|
@@ -18,7 +16,6 @@ export const EnvironmentErrors: React.FC<EnvironmentErrorsProps> = ({
|
|
|
18
16
|
infraEnv,
|
|
19
17
|
docVersion,
|
|
20
18
|
children,
|
|
21
|
-
inModal,
|
|
22
19
|
}) => {
|
|
23
20
|
const infraEnvAlerts = getFailingResourceConditions(infraEnv, ['ImageCreated']);
|
|
24
21
|
const { t } = useTranslation();
|
|
@@ -27,7 +24,7 @@ export const EnvironmentErrors: React.FC<EnvironmentErrorsProps> = ({
|
|
|
27
24
|
return <>{children}</>;
|
|
28
25
|
}
|
|
29
26
|
|
|
30
|
-
|
|
27
|
+
return (
|
|
31
28
|
<>
|
|
32
29
|
{!infraEnv.status && (
|
|
33
30
|
<Alert
|
|
@@ -52,6 +49,4 @@ export const EnvironmentErrors: React.FC<EnvironmentErrorsProps> = ({
|
|
|
52
49
|
/>
|
|
53
50
|
</>
|
|
54
51
|
);
|
|
55
|
-
|
|
56
|
-
return inModal ? <ModalBoxBody>{errors}</ModalBoxBody> : errors;
|
|
57
52
|
};
|
|
@@ -4,16 +4,18 @@ import { DropdownItem } from '@patternfly/react-core';
|
|
|
4
4
|
|
|
5
5
|
import { Host } from '@openshift-assisted/types/assisted-installer-service';
|
|
6
6
|
import {
|
|
7
|
-
discoveryTypeColumn,
|
|
8
|
-
agentStatusColumn,
|
|
9
|
-
clusterColumn,
|
|
10
7
|
useAgentsTable,
|
|
11
8
|
useAgentsFilter,
|
|
12
|
-
agentHostnameColumn,
|
|
13
9
|
canEditBMH,
|
|
14
10
|
canEditAgent,
|
|
15
11
|
canChangeHostname,
|
|
16
12
|
} from '../Agent/tableUtils';
|
|
13
|
+
import {
|
|
14
|
+
discoveryTypeColumn,
|
|
15
|
+
agentStatusColumn,
|
|
16
|
+
clusterColumn,
|
|
17
|
+
agentHostnameColumn,
|
|
18
|
+
} from '../Agent/tableColumns';
|
|
17
19
|
import HostsTable, {
|
|
18
20
|
DefaultExpandComponent,
|
|
19
21
|
HostsTableEmptyState,
|
|
@@ -25,8 +27,6 @@ import {
|
|
|
25
27
|
gpusColumn,
|
|
26
28
|
memoryColumn,
|
|
27
29
|
labelsColumn,
|
|
28
|
-
} from '../../../common/components/hosts/tableUtils';
|
|
29
|
-
import {
|
|
30
30
|
DiscoveryTroubleshootingModal,
|
|
31
31
|
MassChangeHostnameModal,
|
|
32
32
|
DeleteHostAction,
|
|
@@ -76,32 +76,34 @@ const validationSchema = (usedNames: string[], t: TFunction) =>
|
|
|
76
76
|
Yup.lazy((values: EnvironmentStepFormValues) =>
|
|
77
77
|
Yup.object<EnvironmentStepFormValues>().shape({
|
|
78
78
|
name: richNameValidationSchema(t, usedNames),
|
|
79
|
-
location: locationValidationSchema(t)
|
|
80
|
-
pullSecret: pullSecretValidationSchema.required(t('ai:
|
|
81
|
-
sshPublicKey: sshPublicKeyValidationSchema,
|
|
79
|
+
location: locationValidationSchema(t),
|
|
80
|
+
pullSecret: pullSecretValidationSchema(t).required(t('ai:Required field')),
|
|
81
|
+
sshPublicKey: sshPublicKeyValidationSchema(t),
|
|
82
82
|
httpProxy: httpProxyValidationSchema({
|
|
83
83
|
values,
|
|
84
84
|
pairValueName: 'httpsProxy',
|
|
85
85
|
allowEmpty: true,
|
|
86
|
+
t,
|
|
86
87
|
}),
|
|
87
88
|
httpsProxy: httpProxyValidationSchema({
|
|
88
89
|
values,
|
|
89
90
|
pairValueName: 'httpProxy',
|
|
90
91
|
allowEmpty: true,
|
|
92
|
+
t,
|
|
91
93
|
}), // share the schema, httpS is currently not supported
|
|
92
|
-
noProxy: noProxyValidationSchema,
|
|
94
|
+
noProxy: noProxyValidationSchema(t),
|
|
93
95
|
labels: Yup.array()
|
|
94
96
|
.of(Yup.string())
|
|
95
97
|
.test(
|
|
96
98
|
'label-equals-validation',
|
|
97
|
-
'Label
|
|
99
|
+
t('ai:Label needs to be in a `key=value` form'),
|
|
98
100
|
(values) =>
|
|
99
101
|
(values as string[]).every((value) => {
|
|
100
102
|
const parts = value.split('=');
|
|
101
103
|
return parts.length === 2;
|
|
102
104
|
}),
|
|
103
105
|
),
|
|
104
|
-
additionalNtpSources: ntpSourceValidationSchema,
|
|
106
|
+
additionalNtpSources: ntpSourceValidationSchema(t),
|
|
105
107
|
}),
|
|
106
108
|
);
|
|
107
109
|
|
|
@@ -25,8 +25,8 @@ export const SingleResourceAlerts: React.FC<{
|
|
|
25
25
|
const [title, ...messages] = c.message.split(/:|\.,/);
|
|
26
26
|
return (
|
|
27
27
|
<React.Fragment key={c.type}>
|
|
28
|
-
<Content component={ContentVariants.li}>
|
|
29
|
-
|
|
28
|
+
<Content component={ContentVariants.li} className="pf-v6-u-font-weight-bold">
|
|
29
|
+
{title}
|
|
30
30
|
</Content>
|
|
31
31
|
{messages.map((m) => (
|
|
32
32
|
<Content key={m} component={ContentVariants.li}>
|
|
@@ -38,8 +38,8 @@ export const SingleResourceAlerts: React.FC<{
|
|
|
38
38
|
} else {
|
|
39
39
|
return (
|
|
40
40
|
<React.Fragment key={c.type}>
|
|
41
|
-
<Content component={ContentVariants.li}>
|
|
42
|
-
|
|
41
|
+
<Content component={ContentVariants.li} className="pf-v6-u-font-weight-bold">
|
|
42
|
+
{c.type}
|
|
43
43
|
</Content>
|
|
44
44
|
<Content component={ContentVariants.li}>{c.reason || ''}</Content>
|
|
45
45
|
</React.Fragment>
|
|
@@ -22,6 +22,11 @@ export const bmhStatus = (t: TFunction): HostStatus<string> => ({
|
|
|
22
22
|
title: t('ai:Provisioning'),
|
|
23
23
|
category: 'Bare Metal Host related',
|
|
24
24
|
},
|
|
25
|
+
deleting: {
|
|
26
|
+
key: 'deleting',
|
|
27
|
+
title: t('ai:Deleting'),
|
|
28
|
+
category: 'Bare Metal Host related',
|
|
29
|
+
},
|
|
25
30
|
provisioned: {
|
|
26
31
|
key: 'provisioned',
|
|
27
32
|
title: t('ai:Provisioned'),
|
|
@@ -156,18 +156,16 @@ export const getAICluster = ({
|
|
|
156
156
|
name: clusterDeployment.spec?.clusterName,
|
|
157
157
|
baseDnsDomain: clusterDeployment.spec?.baseDomain,
|
|
158
158
|
openshiftVersion: installVersion,
|
|
159
|
-
apiVips:
|
|
160
|
-
agentClusterInstall?.
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
? [{ ip: agentClusterInstall?.status?.ingressVIP || agentClusterInstall?.spec?.ingressVIP }]
|
|
170
|
-
: [],
|
|
159
|
+
apiVips: agentClusterInstall?.spec?.apiVIPs?.length
|
|
160
|
+
? (agentClusterInstall?.spec?.apiVIPs || []).map((ip) => ({ ip }))
|
|
161
|
+
: agentClusterInstall?.spec?.apiVIP
|
|
162
|
+
? [{ ip: agentClusterInstall?.spec?.apiVIP }]
|
|
163
|
+
: [],
|
|
164
|
+
ingressVips: agentClusterInstall?.spec?.ingressVIPs?.length
|
|
165
|
+
? (agentClusterInstall?.spec?.ingressVIPs || []).map((ip) => ({ ip }))
|
|
166
|
+
: agentClusterInstall?.spec?.ingressVIP
|
|
167
|
+
? [{ ip: agentClusterInstall?.spec?.ingressVIP }]
|
|
168
|
+
: [],
|
|
171
169
|
highAvailabilityMode:
|
|
172
170
|
agentClusterInstall?.spec?.provisionRequirements?.controlPlaneAgents === 1 ? 'None' : 'Full',
|
|
173
171
|
status,
|
|
@@ -178,9 +176,11 @@ export const getAICluster = ({
|
|
|
178
176
|
sshPublicKey: agentClusterInstall?.spec?.sshPublicKey,
|
|
179
177
|
clusterNetworkHostPrefix:
|
|
180
178
|
agentClusterInstall?.spec?.networking?.clusterNetwork?.[0]?.hostPrefix,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
clusterNetworks: agentClusterInstall?.spec?.networking?.clusterNetwork,
|
|
180
|
+
serviceNetworks: agentClusterInstall?.spec?.networking?.serviceNetwork?.map((cidr) => ({
|
|
181
|
+
cidr,
|
|
182
|
+
})),
|
|
183
|
+
machineNetworks: agentClusterInstall?.spec?.networking?.machineNetwork,
|
|
184
184
|
monitoredOperators: [],
|
|
185
185
|
vipDhcpAllocation: false,
|
|
186
186
|
userManagedNetworking: Boolean(
|
|
@@ -61,48 +61,65 @@ export const isValidImageSet = (
|
|
|
61
61
|
);
|
|
62
62
|
};
|
|
63
63
|
|
|
64
|
+
// Extracts major.minor version, strips any non-numeric prefix (e.g., "img4.18.55" → "4.18")
|
|
65
|
+
const extractMajorMinor = (version: string): string => {
|
|
66
|
+
const versionWithoutPrefix = version.replace(/^[^\d]*/, '');
|
|
67
|
+
return versionWithoutPrefix.split('.').slice(0, 2).join('.');
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
// Converts a ClusterImageSet to an OpenshiftVersionOptionType
|
|
71
|
+
const toVersionOption = (
|
|
72
|
+
clusterImageSet: ClusterImageSetK8sResource,
|
|
73
|
+
): OpenshiftVersionOptionType => {
|
|
74
|
+
const version =
|
|
75
|
+
getVersionFromReleaseImage(clusterImageSet.spec?.releaseImage) ||
|
|
76
|
+
clusterImageSet.metadata?.name ||
|
|
77
|
+
'';
|
|
78
|
+
const cpuArch = getCPUArchFromReleaseImage(clusterImageSet.spec?.releaseImage);
|
|
79
|
+
return {
|
|
80
|
+
label: `OpenShift ${version}`,
|
|
81
|
+
version,
|
|
82
|
+
value: clusterImageSet.metadata?.name as string,
|
|
83
|
+
default: false,
|
|
84
|
+
// (rawagner) ACM does not have the warning so changing to 'production'
|
|
85
|
+
// supportLevel : getSupportLevelFromChannel(clusterImageSet.metadata?.labels?.channel)
|
|
86
|
+
supportLevel: 'production',
|
|
87
|
+
cpuArchitectures: cpuArch ? [cpuArch as CpuArchitecture] : undefined,
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* In case there are osImages specified on the AgentServiceConfig, we want to limit
|
|
93
|
+
* the availability in the dropdown to only versions that are listed there.
|
|
94
|
+
* Otherwise the installation fails.
|
|
95
|
+
*/
|
|
96
|
+
const hasMatchingOsImage = (
|
|
97
|
+
version: OpenshiftVersionOptionType,
|
|
98
|
+
osImageVersions: (string | undefined)[],
|
|
99
|
+
): boolean => {
|
|
100
|
+
if (!osImageVersions.length) return true;
|
|
101
|
+
return osImageVersions.includes(extractMajorMinor(version.version));
|
|
102
|
+
};
|
|
103
|
+
|
|
64
104
|
export const getOCPVersions = (
|
|
65
105
|
clusterImageSets: ClusterImageSetK8sResource[],
|
|
66
|
-
isNutanix?: boolean
|
|
106
|
+
isNutanix?: boolean,
|
|
67
107
|
osImages?: OsImage[],
|
|
68
108
|
extended?: boolean,
|
|
69
109
|
): OpenshiftVersionOptionType[] => {
|
|
70
|
-
const
|
|
71
|
-
|
|
72
|
-
);
|
|
110
|
+
const architectures = isNutanix ? supportedNutanixPlatforms : undefined;
|
|
111
|
+
const osImageVersions = [...new Set(osImages?.map((img) => img.openshiftVersion))];
|
|
73
112
|
|
|
74
113
|
const versions = clusterImageSets
|
|
75
|
-
.filter((clusterImageSet) =>
|
|
76
|
-
|
|
77
|
-
)
|
|
78
|
-
.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
label: `OpenShift ${version ? version : (clusterImageSet.metadata?.name as string)}`,
|
|
83
|
-
version: version || clusterImageSet.metadata?.name || '',
|
|
84
|
-
value: clusterImageSet.metadata?.name as string,
|
|
85
|
-
default: false,
|
|
86
|
-
// (rawagner) ACM does not have the warning so changing to 'production'
|
|
87
|
-
supportLevel: 'production', // getSupportLevelFromChannel(clusterImageSet.metadata?.labels?.channel),
|
|
88
|
-
cpuArchitectures: cpuArch ? [cpuArch as CpuArchitecture] : undefined,
|
|
89
|
-
};
|
|
90
|
-
})
|
|
91
|
-
.filter((ocpVersion) => {
|
|
92
|
-
const ver = ocpVersion.version.split('.').slice(0, 2).join('.');
|
|
93
|
-
return !!ocpImageVersions.length ? ocpImageVersions.includes(ver) : true;
|
|
94
|
-
})
|
|
95
|
-
.sort(
|
|
96
|
-
(versionA, versionB) => /* descending */ -1 * versionA.label.localeCompare(versionB.label),
|
|
97
|
-
);
|
|
98
|
-
|
|
99
|
-
if (versions.length) {
|
|
100
|
-
// make sure that the pre-selected one is the first-one after sorting
|
|
101
|
-
versions[0].default = true;
|
|
102
|
-
}
|
|
114
|
+
.filter((clusterImageSet) => isValidImageSet(clusterImageSet, architectures, extended))
|
|
115
|
+
.map(toVersionOption)
|
|
116
|
+
.filter((v) => hasMatchingOsImage(v, osImageVersions))
|
|
117
|
+
.sort((a, b) => b.label.localeCompare(a.label));
|
|
118
|
+
|
|
119
|
+
// Mark first version as the default selection
|
|
120
|
+
versions[0] && (versions[0].default = true);
|
|
103
121
|
|
|
104
|
-
|
|
105
|
-
return deduped;
|
|
122
|
+
return uniqBy(versions, (v) => v.version);
|
|
106
123
|
};
|
|
107
124
|
|
|
108
125
|
export const getSelectedVersion = (
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Modal, ModalVariant } from '@patternfly/react-core
|
|
2
|
+
import { Modal, ModalBody, ModalHeader, ModalVariant } from '@patternfly/react-core';
|
|
3
3
|
import BMCForm from '../Agent/BMCForm';
|
|
4
4
|
import { AddBmcHostModalProps } from './types';
|
|
5
5
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
@@ -20,23 +20,24 @@ const AddBmcHostModal: React.FC<AddBmcHostModalProps> = ({
|
|
|
20
20
|
return (
|
|
21
21
|
<Modal
|
|
22
22
|
aria-label={t('ai:Add BMC host dialog')}
|
|
23
|
-
title={t('ai:Add host using Baseboard Management Controller (BMC)')}
|
|
24
23
|
isOpen={isOpen}
|
|
25
24
|
onClose={onClose}
|
|
26
25
|
variant={ModalVariant.medium}
|
|
27
|
-
hasNoBodyWrapper
|
|
28
26
|
id="add-host-modal"
|
|
29
27
|
>
|
|
30
|
-
<
|
|
31
|
-
|
|
32
|
-
<
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
28
|
+
<ModalHeader title={t('ai:Add host using Baseboard Management Controller (BMC)')} />
|
|
29
|
+
<ModalBody>
|
|
30
|
+
<EnvironmentErrors infraEnv={infraEnv} docVersion={docVersion}>
|
|
31
|
+
<ProvisioningConfigErrorAlert error={provisioningConfigError} />
|
|
32
|
+
<BMCForm
|
|
33
|
+
onCreateBMH={onCreateBMH}
|
|
34
|
+
onClose={onClose}
|
|
35
|
+
hasDHCP={hasDHCP}
|
|
36
|
+
infraEnv={infraEnv}
|
|
37
|
+
usedHostnames={usedHostnames}
|
|
38
|
+
/>
|
|
39
|
+
</EnvironmentErrors>
|
|
40
|
+
</ModalBody>
|
|
40
41
|
</Modal>
|
|
41
42
|
);
|
|
42
43
|
};
|
|
@@ -8,11 +8,12 @@ import {
|
|
|
8
8
|
EmptyState,
|
|
9
9
|
EmptyStateBody,
|
|
10
10
|
EmptyStateVariant,
|
|
11
|
+
ModalBody,
|
|
12
|
+
ModalFooter,
|
|
11
13
|
Spinner,
|
|
12
14
|
Stack,
|
|
13
15
|
StackItem,
|
|
14
16
|
} from '@patternfly/react-core';
|
|
15
|
-
import { ModalBoxBody, ModalBoxFooter } from '@patternfly/react-core/deprecated';
|
|
16
17
|
import { ErrorCircleOIcon } from '@patternfly/react-icons/dist/js/icons/error-circle-o-icon';
|
|
17
18
|
import { UploadIcon } from '@patternfly/react-icons/dist/js/icons/upload-icon';
|
|
18
19
|
import jsYaml from 'js-yaml';
|
|
@@ -126,7 +127,7 @@ const AddBmcHostYamlForm: React.FC<
|
|
|
126
127
|
|
|
127
128
|
return (
|
|
128
129
|
<>
|
|
129
|
-
<
|
|
130
|
+
<ModalBody>
|
|
130
131
|
<Stack hasGutter>
|
|
131
132
|
<StackItem>
|
|
132
133
|
<EmptyState
|
|
@@ -211,8 +212,8 @@ const AddBmcHostYamlForm: React.FC<
|
|
|
211
212
|
</StackItem>
|
|
212
213
|
)}
|
|
213
214
|
</Stack>
|
|
214
|
-
</
|
|
215
|
-
<
|
|
215
|
+
</ModalBody>
|
|
216
|
+
<ModalFooter>
|
|
216
217
|
<Button
|
|
217
218
|
onClick={() => {
|
|
218
219
|
void handleSubmit();
|
|
@@ -224,7 +225,7 @@ const AddBmcHostYamlForm: React.FC<
|
|
|
224
225
|
<Button onClick={onClose} variant={ButtonVariant.secondary}>
|
|
225
226
|
{t('ai:Cancel')}
|
|
226
227
|
</Button>
|
|
227
|
-
</
|
|
228
|
+
</ModalFooter>
|
|
228
229
|
</>
|
|
229
230
|
);
|
|
230
231
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Modal, ModalVariant } from '@patternfly/react-core
|
|
2
|
+
import { Modal, ModalBody, ModalHeader, ModalVariant } from '@patternfly/react-core';
|
|
3
3
|
import { UploadActionModalProps } from './types';
|
|
4
4
|
import AddBmcHostYamlForm from './AddBmcHostYamlForm';
|
|
5
5
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
@@ -18,16 +18,17 @@ const AddBmcHostYamlModal: React.FC<UploadActionModalProps> = ({
|
|
|
18
18
|
return (
|
|
19
19
|
<Modal
|
|
20
20
|
aria-label={t('ai:Add host dialog')}
|
|
21
|
-
title={t('ai:Add hosts by uploading YAML (BMC)')}
|
|
22
21
|
variant={ModalVariant.medium}
|
|
23
22
|
isOpen={isOpen}
|
|
24
23
|
onClose={onClose}
|
|
25
|
-
hasNoBodyWrapper
|
|
26
24
|
>
|
|
27
|
-
<
|
|
28
|
-
|
|
29
|
-
<
|
|
30
|
-
|
|
25
|
+
<ModalHeader title={t('ai:Add hosts by uploading YAML (BMC)')} />
|
|
26
|
+
<ModalBody>
|
|
27
|
+
<EnvironmentErrors infraEnv={infraEnv} docVersion={docVersion}>
|
|
28
|
+
<ProvisioningConfigErrorAlert error={provisioningConfigError} />
|
|
29
|
+
<AddBmcHostYamlForm onClose={onClose} onCreateBmcByYaml={onCreateBmcByYaml} />
|
|
30
|
+
</EnvironmentErrors>
|
|
31
|
+
</ModalBody>
|
|
31
32
|
</Modal>
|
|
32
33
|
);
|
|
33
34
|
};
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { FormikHelpers } from 'formik';
|
|
3
|
-
import {
|
|
4
|
-
|
|
3
|
+
import {
|
|
4
|
+
EmptyState,
|
|
5
|
+
EmptyStateBody,
|
|
6
|
+
Modal,
|
|
7
|
+
ModalBody,
|
|
8
|
+
ModalHeader,
|
|
9
|
+
ModalVariant,
|
|
10
|
+
Spinner,
|
|
11
|
+
} from '@patternfly/react-core';
|
|
5
12
|
import { DownloadIso, DiscoveryImageConfigForm, DiscoveryImageFormValues } from '../../../common';
|
|
6
13
|
import { AddHostModalProps } from './types';
|
|
7
14
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
@@ -54,14 +61,13 @@ const AddHostModal: React.FC<AddHostModalProps> = ({
|
|
|
54
61
|
return (
|
|
55
62
|
<Modal
|
|
56
63
|
aria-label={t('ai:Add host dialog')}
|
|
57
|
-
title={t('ai:Add host')}
|
|
58
64
|
isOpen={isOpen}
|
|
59
65
|
onClose={onClose}
|
|
60
66
|
variant={ModalVariant.small}
|
|
61
|
-
hasNoBodyWrapper
|
|
62
67
|
id="add-host-modal"
|
|
63
68
|
>
|
|
64
|
-
<
|
|
69
|
+
<ModalHeader title={t('ai:Add hosts')} />
|
|
70
|
+
<EnvironmentErrors infraEnv={infraEnv} docVersion={docVersion}>
|
|
65
71
|
{dialogType === 'config' && (
|
|
66
72
|
<DiscoveryImageConfigForm
|
|
67
73
|
onCancel={onClose}
|
|
@@ -78,6 +84,7 @@ const AddHostModal: React.FC<AddHostModalProps> = ({
|
|
|
78
84
|
docVersion={docVersion}
|
|
79
85
|
/>
|
|
80
86
|
)}
|
|
87
|
+
|
|
81
88
|
{dialogType === 'download' && (
|
|
82
89
|
<>
|
|
83
90
|
{isIPXE ? (
|
|
@@ -129,9 +136,11 @@ const GeneratingIsoDownload = ({
|
|
|
129
136
|
ciscoUrl={ciscoUrl}
|
|
130
137
|
/>
|
|
131
138
|
) : (
|
|
132
|
-
<
|
|
133
|
-
<
|
|
134
|
-
|
|
139
|
+
<ModalBody>
|
|
140
|
+
<EmptyState icon={Spinner}>
|
|
141
|
+
<EmptyStateBody>{t('ai:Generating discovery ISO')}</EmptyStateBody>
|
|
142
|
+
</EmptyState>
|
|
143
|
+
</ModalBody>
|
|
135
144
|
);
|
|
136
145
|
};
|
|
137
146
|
|
|
@@ -152,9 +161,11 @@ const GeneratingIPXEDownload = ({
|
|
|
152
161
|
onReset={onReset}
|
|
153
162
|
/>
|
|
154
163
|
) : (
|
|
155
|
-
<
|
|
156
|
-
<
|
|
157
|
-
|
|
164
|
+
<ModalBody>
|
|
165
|
+
<EmptyState icon={Spinner}>
|
|
166
|
+
<EmptyStateBody>{t('ai:Generating iPXE script')}</EmptyStateBody>
|
|
167
|
+
</EmptyState>
|
|
168
|
+
</ModalBody>
|
|
158
169
|
);
|
|
159
170
|
};
|
|
160
171
|
|
|
@@ -8,8 +8,12 @@ import {
|
|
|
8
8
|
StackItem,
|
|
9
9
|
Stack,
|
|
10
10
|
Content,
|
|
11
|
+
Modal,
|
|
12
|
+
ModalVariant,
|
|
13
|
+
ModalFooter,
|
|
14
|
+
ModalBody,
|
|
15
|
+
ModalHeader,
|
|
11
16
|
} from '@patternfly/react-core';
|
|
12
|
-
import { Modal, ModalVariant } from '@patternfly/react-core/deprecated';
|
|
13
17
|
import { Formik, FormikHelpers } from 'formik';
|
|
14
18
|
import parseUrl from 'parse-url';
|
|
15
19
|
|
|
@@ -96,9 +100,15 @@ export const CimConfigurationModal: React.FC<CimConfigurationModalProps> = ({
|
|
|
96
100
|
};
|
|
97
101
|
|
|
98
102
|
const validationSchema = Yup.object<CimConfigurationValues>({
|
|
99
|
-
dbVolSize: Yup.number()
|
|
100
|
-
|
|
101
|
-
|
|
103
|
+
dbVolSize: Yup.number()
|
|
104
|
+
.min(MIN_DB_VOL_SIZE, t('ai:Minimal value is 1Gi'))
|
|
105
|
+
.required(t('ai:Required field')),
|
|
106
|
+
fsVolSize: Yup.number()
|
|
107
|
+
.min(MIN_FS_VOL_SIZE, t('ai:Minimal value is 1Gi'))
|
|
108
|
+
.required(t('ai:Required field')),
|
|
109
|
+
imgVolSize: Yup.number()
|
|
110
|
+
.min(MIN_IMG_VOL_SIZE, t('ai:Minimal value is 10Gi'))
|
|
111
|
+
.required(t('ai:Required field')),
|
|
102
112
|
configureLoadBalancer: Yup.boolean(),
|
|
103
113
|
ciscoIntersightURL: Yup.string().when('addCiscoIntersightUrl', {
|
|
104
114
|
is: true,
|
|
@@ -126,85 +136,85 @@ export const CimConfigurationModal: React.FC<CimConfigurationModalProps> = ({
|
|
|
126
136
|
validationSchema={validationSchema}
|
|
127
137
|
onSubmit={onConfigure}
|
|
128
138
|
>
|
|
129
|
-
{({
|
|
139
|
+
{({ handleSubmit, isValid, isSubmitting }) => (
|
|
130
140
|
<Modal
|
|
131
141
|
aria-label={t('ai:Configure host inventory settings')}
|
|
132
|
-
title={t('ai:Configure host inventory settings')}
|
|
133
142
|
isOpen={isOpen}
|
|
134
143
|
onClose={onClose}
|
|
135
|
-
actions={
|
|
136
|
-
isConfigure
|
|
137
|
-
? [
|
|
138
|
-
<Button
|
|
139
|
-
key="configure"
|
|
140
|
-
variant={ButtonVariant.primary}
|
|
141
|
-
isDisabled={
|
|
142
|
-
!!(
|
|
143
|
-
isSubmitting ||
|
|
144
|
-
!isValid ||
|
|
145
|
-
(isEdit && configureLoadBalancerInitial === values.configureLoadBalancer)
|
|
146
|
-
)
|
|
147
|
-
}
|
|
148
|
-
onClick={() => void handleSubmit()}
|
|
149
|
-
>
|
|
150
|
-
{t('ai:Configure')}
|
|
151
|
-
</Button>,
|
|
152
|
-
<Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
|
|
153
|
-
{t('ai:Cancel')}
|
|
154
|
-
</Button>,
|
|
155
|
-
]
|
|
156
|
-
: [
|
|
157
|
-
<Button key="close" variant={ButtonVariant.primary} onClick={onClose}>
|
|
158
|
-
{t('ai:Close')}
|
|
159
|
-
</Button>,
|
|
160
|
-
]
|
|
161
|
-
}
|
|
162
144
|
variant={ModalVariant.medium}
|
|
163
145
|
id="cim-config-modal"
|
|
164
146
|
>
|
|
165
|
-
<
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
{t(
|
|
169
|
-
'ai:Configuring the host inventory settings will enable the Central Infrastructure Management.',
|
|
170
|
-
)}
|
|
171
|
-
</Content>
|
|
172
|
-
</StackItem>
|
|
173
|
-
|
|
174
|
-
{isError && (
|
|
147
|
+
<ModalHeader title={t('ai:Configure host inventory settings')} />
|
|
148
|
+
<ModalBody>
|
|
149
|
+
<Stack hasGutter>
|
|
175
150
|
<StackItem>
|
|
176
|
-
<
|
|
177
|
-
{
|
|
178
|
-
|
|
151
|
+
<Content>
|
|
152
|
+
{t(
|
|
153
|
+
'ai:Configuring the host inventory settings will enable the Central Infrastructure Management.',
|
|
154
|
+
)}
|
|
155
|
+
</Content>
|
|
179
156
|
</StackItem>
|
|
180
|
-
)}
|
|
181
157
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
setConfigureLoadBalancerInitial={setConfigureLoadBalancerInitial}
|
|
195
|
-
/>
|
|
196
|
-
</StackItem>
|
|
197
|
-
|
|
198
|
-
{isConfigure && (
|
|
158
|
+
{isError && (
|
|
159
|
+
<StackItem>
|
|
160
|
+
<Alert
|
|
161
|
+
title={error.title}
|
|
162
|
+
variant={error.variant || AlertVariant.danger}
|
|
163
|
+
isInline
|
|
164
|
+
>
|
|
165
|
+
{error.message}
|
|
166
|
+
</Alert>
|
|
167
|
+
</StackItem>
|
|
168
|
+
)}
|
|
169
|
+
|
|
199
170
|
<StackItem>
|
|
200
|
-
<
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
171
|
+
<CimConfigDisconnectedAlert docDisconnectedUrl={docDisconnectedUrl} />
|
|
172
|
+
</StackItem>
|
|
173
|
+
|
|
174
|
+
<StackItem>
|
|
175
|
+
<CimConfigurationFormFields
|
|
176
|
+
isEdit={isEdit}
|
|
177
|
+
platform={platform}
|
|
178
|
+
isInProgressPeriod={isInProgressPeriod}
|
|
179
|
+
docConfigUrl={docConfigUrl}
|
|
180
|
+
docConfigAwsUrl={docConfigAwsUrl}
|
|
181
|
+
configureLoadBalancerInitial={configureLoadBalancerInitial}
|
|
182
|
+
setConfigureLoadBalancerInitial={setConfigureLoadBalancerInitial}
|
|
204
183
|
/>
|
|
205
184
|
</StackItem>
|
|
185
|
+
|
|
186
|
+
{isConfigure && (
|
|
187
|
+
<StackItem>
|
|
188
|
+
<Alert
|
|
189
|
+
variant={AlertVariant.warning}
|
|
190
|
+
title={t('ai:Storage sizes cannot be changed once you configure.')}
|
|
191
|
+
isInline
|
|
192
|
+
/>
|
|
193
|
+
</StackItem>
|
|
194
|
+
)}
|
|
195
|
+
</Stack>
|
|
196
|
+
</ModalBody>
|
|
197
|
+
<ModalFooter>
|
|
198
|
+
{isConfigure ? (
|
|
199
|
+
<>
|
|
200
|
+
<Button
|
|
201
|
+
key="configure"
|
|
202
|
+
variant={ButtonVariant.primary}
|
|
203
|
+
isDisabled={!!(isSubmitting || !isValid)}
|
|
204
|
+
onClick={() => void handleSubmit()}
|
|
205
|
+
>
|
|
206
|
+
{t('ai:Configure')}
|
|
207
|
+
</Button>
|
|
208
|
+
<Button key="cancel" variant={ButtonVariant.link} onClick={onClose}>
|
|
209
|
+
{t('ai:Cancel')}
|
|
210
|
+
</Button>
|
|
211
|
+
</>
|
|
212
|
+
) : (
|
|
213
|
+
<Button key="close" variant={ButtonVariant.primary} onClick={onClose}>
|
|
214
|
+
{t('ai:Close')}
|
|
215
|
+
</Button>
|
|
206
216
|
)}
|
|
207
|
-
</
|
|
217
|
+
</ModalFooter>
|
|
208
218
|
</Modal>
|
|
209
219
|
)}
|
|
210
220
|
</Formik>
|