@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,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Modal, ModalVariant } from '@patternfly/react-core
|
|
2
|
+
import { Modal, ModalHeader, ModalVariant } from '@patternfly/react-core';
|
|
3
3
|
import BMCForm from '../Agent/BMCForm';
|
|
4
4
|
import { SecretK8sResource } from '../../types';
|
|
5
5
|
import { LoadingState } from '../../../common';
|
|
@@ -52,13 +52,12 @@ const EditBMHModal: React.FC<EditBMHModalProps> = ({
|
|
|
52
52
|
return (
|
|
53
53
|
<Modal
|
|
54
54
|
aria-label={t('ai:Edit BMH dialog')}
|
|
55
|
-
title={t('ai:Edit BMH')}
|
|
56
55
|
isOpen={isOpen}
|
|
57
56
|
onClose={onClose}
|
|
58
57
|
variant={ModalVariant.small}
|
|
59
|
-
hasNoBodyWrapper
|
|
60
58
|
id="edit-bmh-modal"
|
|
61
59
|
>
|
|
60
|
+
<ModalHeader title={t('ai:Edit BMH')} />
|
|
62
61
|
{isLoading ? (
|
|
63
62
|
<LoadingState />
|
|
64
63
|
) : (
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Alert, Button, ButtonVariant, Form, Stack, StackItem } from '@patternfly/react-core';
|
|
3
2
|
import {
|
|
3
|
+
Alert,
|
|
4
|
+
Button,
|
|
5
|
+
ButtonVariant,
|
|
6
|
+
Form,
|
|
4
7
|
Modal,
|
|
5
|
-
|
|
6
|
-
|
|
8
|
+
ModalBody,
|
|
9
|
+
ModalFooter,
|
|
10
|
+
ModalHeader,
|
|
7
11
|
ModalVariant,
|
|
8
|
-
|
|
12
|
+
Stack,
|
|
13
|
+
StackItem,
|
|
14
|
+
} from '@patternfly/react-core';
|
|
9
15
|
import { Formik, FormikProps } from 'formik';
|
|
10
16
|
import { InfraEnvK8sResource } from '../../types';
|
|
11
17
|
import { RadioField, AdditionalNTPSourcesField } from '../../../common';
|
|
@@ -34,13 +40,12 @@ const EditNtpSourcesModal: React.FC<EditNtpSourcesModalProps> = ({
|
|
|
34
40
|
return (
|
|
35
41
|
<Modal
|
|
36
42
|
aria-label={t('ai:Edit Ntp sources dialog')}
|
|
37
|
-
title={t('ai:Edit NTP sources')}
|
|
38
43
|
isOpen={isOpen}
|
|
39
44
|
onClose={onClose}
|
|
40
45
|
variant={ModalVariant.small}
|
|
41
|
-
hasNoBodyWrapper
|
|
42
46
|
id="edit-ntp-sources-modal"
|
|
43
47
|
>
|
|
48
|
+
<ModalHeader title={t('ai:Edit NTP sources')} />
|
|
44
49
|
<Formik<EditNtpSourcesFormikValues>
|
|
45
50
|
initialValues={{
|
|
46
51
|
enableNtpSources: infraEnv.spec?.additionalNTPSources ? 'additional' : 'auto',
|
|
@@ -64,7 +69,7 @@ const EditNtpSourcesModal: React.FC<EditNtpSourcesModalProps> = ({
|
|
|
64
69
|
}: FormikProps<EditNtpSourcesFormikValues>) => {
|
|
65
70
|
return (
|
|
66
71
|
<>
|
|
67
|
-
<
|
|
72
|
+
<ModalBody>
|
|
68
73
|
<Form>
|
|
69
74
|
<Stack hasGutter>
|
|
70
75
|
<StackItem>
|
|
@@ -106,8 +111,8 @@ const EditNtpSourcesModal: React.FC<EditNtpSourcesModalProps> = ({
|
|
|
106
111
|
)}
|
|
107
112
|
</Stack>
|
|
108
113
|
</Form>
|
|
109
|
-
</
|
|
110
|
-
<
|
|
114
|
+
</ModalBody>
|
|
115
|
+
<ModalFooter>
|
|
111
116
|
{/* eslint-disable-next-line @typescript-eslint/no-misused-promises */}
|
|
112
117
|
<Button onClick={submitForm} isDisabled={isSubmitting || !isValid}>
|
|
113
118
|
{t('ai:Save')}
|
|
@@ -115,7 +120,7 @@ const EditNtpSourcesModal: React.FC<EditNtpSourcesModalProps> = ({
|
|
|
115
120
|
<Button onClick={onClose} variant={ButtonVariant.secondary}>
|
|
116
121
|
{t('ai:Cancel')}
|
|
117
122
|
</Button>
|
|
118
|
-
</
|
|
123
|
+
</ModalFooter>
|
|
119
124
|
</>
|
|
120
125
|
);
|
|
121
126
|
}}
|
|
@@ -1,12 +1,19 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as Yup from 'yup';
|
|
3
|
-
import {
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
4
4
|
import {
|
|
5
|
+
Alert,
|
|
6
|
+
Button,
|
|
7
|
+
ButtonVariant,
|
|
8
|
+
Form,
|
|
5
9
|
Modal,
|
|
6
|
-
|
|
7
|
-
|
|
10
|
+
ModalBody,
|
|
11
|
+
ModalFooter,
|
|
12
|
+
ModalHeader,
|
|
8
13
|
ModalVariant,
|
|
9
|
-
|
|
14
|
+
Stack,
|
|
15
|
+
StackItem,
|
|
16
|
+
} from '@patternfly/react-core';
|
|
10
17
|
import { EditProxyModalProps } from './types';
|
|
11
18
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
12
19
|
import { ProxyInputFields } from '../../../common/components/clusterConfiguration/ProxyFields';
|
|
@@ -19,20 +26,22 @@ import {
|
|
|
19
26
|
import { getErrorMessage } from '../../../common/utils';
|
|
20
27
|
import { getWarningMessage } from './utils';
|
|
21
28
|
|
|
22
|
-
const validationSchema = () =>
|
|
29
|
+
const validationSchema = (t: TFunction) =>
|
|
23
30
|
Yup.lazy((values: ProxyFieldsType) =>
|
|
24
31
|
Yup.object<ProxyFieldsType>().shape({
|
|
25
32
|
httpProxy: httpProxyValidationSchema({
|
|
26
33
|
values,
|
|
27
34
|
pairValueName: 'httpsProxy',
|
|
28
35
|
allowEmpty: true,
|
|
36
|
+
t,
|
|
29
37
|
}),
|
|
30
38
|
httpsProxy: httpProxyValidationSchema({
|
|
31
39
|
values,
|
|
32
40
|
pairValueName: 'httpProxy',
|
|
33
41
|
allowEmpty: true,
|
|
42
|
+
t,
|
|
34
43
|
}),
|
|
35
|
-
noProxy: noProxyValidationSchema,
|
|
44
|
+
noProxy: noProxyValidationSchema(t),
|
|
36
45
|
}),
|
|
37
46
|
);
|
|
38
47
|
|
|
@@ -40,7 +49,7 @@ const Footer = ({ onClose }: { onClose: VoidFunction }) => {
|
|
|
40
49
|
const { t } = useTranslation();
|
|
41
50
|
const { isSubmitting, submitForm, isValid } = useFormikContext();
|
|
42
51
|
return (
|
|
43
|
-
<
|
|
52
|
+
<ModalFooter>
|
|
44
53
|
<Button
|
|
45
54
|
onClick={() => void submitForm()}
|
|
46
55
|
isDisabled={isSubmitting || !isValid}
|
|
@@ -51,7 +60,7 @@ const Footer = ({ onClose }: { onClose: VoidFunction }) => {
|
|
|
51
60
|
<Button onClick={onClose} variant={ButtonVariant.secondary}>
|
|
52
61
|
{t('ai:Cancel')}
|
|
53
62
|
</Button>
|
|
54
|
-
</
|
|
63
|
+
</ModalFooter>
|
|
55
64
|
);
|
|
56
65
|
};
|
|
57
66
|
|
|
@@ -69,15 +78,15 @@ const EditProxyModal: React.FC<EditProxyModalProps> = ({
|
|
|
69
78
|
!!infraEnv.spec?.proxy?.httpProxy ||
|
|
70
79
|
!!infraEnv.spec?.proxy?.httpsProxy ||
|
|
71
80
|
!!infraEnv.spec?.proxy?.noProxy;
|
|
81
|
+
|
|
72
82
|
return (
|
|
73
83
|
<Modal
|
|
74
84
|
aria-label={t('ai:Edit proxy settings')}
|
|
75
|
-
title={t('ai:Edit proxy settings')}
|
|
76
85
|
isOpen
|
|
77
86
|
onClose={onClose}
|
|
78
87
|
variant={ModalVariant.medium}
|
|
79
|
-
hasNoBodyWrapper
|
|
80
88
|
>
|
|
89
|
+
<ModalHeader title={t('ai:Edit proxy settings')} />
|
|
81
90
|
<Formik<ProxyFieldsType>
|
|
82
91
|
initialValues={{
|
|
83
92
|
httpProxy: infraEnv.spec?.proxy?.httpProxy,
|
|
@@ -85,7 +94,7 @@ const EditProxyModal: React.FC<EditProxyModalProps> = ({
|
|
|
85
94
|
noProxy: infraEnv.spec?.proxy?.noProxy,
|
|
86
95
|
enableProxy,
|
|
87
96
|
}}
|
|
88
|
-
validationSchema={validationSchema}
|
|
97
|
+
validationSchema={validationSchema(t)}
|
|
89
98
|
onSubmit={async (values: ProxyFieldsType) => {
|
|
90
99
|
setError(undefined);
|
|
91
100
|
try {
|
|
@@ -97,7 +106,7 @@ const EditProxyModal: React.FC<EditProxyModalProps> = ({
|
|
|
97
106
|
}}
|
|
98
107
|
>
|
|
99
108
|
<>
|
|
100
|
-
<
|
|
109
|
+
<ModalBody>
|
|
101
110
|
<Stack hasGutter>
|
|
102
111
|
<StackItem>
|
|
103
112
|
<Alert isInline variant="warning" title={warningMsg} />
|
|
@@ -113,7 +122,7 @@ const EditProxyModal: React.FC<EditProxyModalProps> = ({
|
|
|
113
122
|
</Form>
|
|
114
123
|
</StackItem>
|
|
115
124
|
</Stack>
|
|
116
|
-
</
|
|
125
|
+
</ModalBody>
|
|
117
126
|
<Footer onClose={onClose} />
|
|
118
127
|
</>
|
|
119
128
|
</Formik>
|
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as Yup from 'yup';
|
|
3
3
|
import { TFunction } from 'i18next';
|
|
4
|
-
import { Alert, Button, ButtonVariant, Stack, StackItem } from '@patternfly/react-core';
|
|
5
4
|
import {
|
|
5
|
+
Alert,
|
|
6
|
+
Button,
|
|
7
|
+
ButtonVariant,
|
|
6
8
|
Modal,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
+
ModalBody,
|
|
10
|
+
ModalFooter,
|
|
11
|
+
ModalHeader,
|
|
9
12
|
ModalVariant,
|
|
10
|
-
|
|
13
|
+
Stack,
|
|
14
|
+
StackItem,
|
|
15
|
+
} from '@patternfly/react-core';
|
|
11
16
|
import { Formik, useFormikContext } from 'formik';
|
|
12
17
|
import { InfraEnvK8sResource, SecretK8sResource } from '../../types';
|
|
13
18
|
import { LoadingState, PullSecretField, pullSecretValidationSchema } from '../../../common';
|
|
@@ -18,7 +23,7 @@ import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
|
18
23
|
|
|
19
24
|
const validationSchema = (t: TFunction) =>
|
|
20
25
|
Yup.object({
|
|
21
|
-
pullSecret: pullSecretValidationSchema.required(t('ai:Pull secret is a required field.')),
|
|
26
|
+
pullSecret: pullSecretValidationSchema(t).required(t('ai:Pull secret is a required field.')),
|
|
22
27
|
});
|
|
23
28
|
|
|
24
29
|
type EditPullSecretFormProps = {
|
|
@@ -72,7 +77,7 @@ const EditPullSecretForm: React.FC<EditPullSecretFormProps> = ({
|
|
|
72
77
|
}
|
|
73
78
|
return (
|
|
74
79
|
<>
|
|
75
|
-
<
|
|
80
|
+
<ModalBody>
|
|
76
81
|
<Stack hasGutter>
|
|
77
82
|
<StackItem>{body}</StackItem>
|
|
78
83
|
</Stack>
|
|
@@ -81,8 +86,8 @@ const EditPullSecretForm: React.FC<EditPullSecretFormProps> = ({
|
|
|
81
86
|
<Alert title={submitError} variant="danger" isInline />
|
|
82
87
|
</StackItem>
|
|
83
88
|
)}
|
|
84
|
-
</
|
|
85
|
-
<
|
|
89
|
+
</ModalBody>
|
|
90
|
+
<ModalFooter>
|
|
86
91
|
<Button
|
|
87
92
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
88
93
|
onClick={submitForm}
|
|
@@ -93,7 +98,7 @@ const EditPullSecretForm: React.FC<EditPullSecretFormProps> = ({
|
|
|
93
98
|
<Button onClick={onClose} variant={ButtonVariant.secondary}>
|
|
94
99
|
{t('ai:Cancel')}
|
|
95
100
|
</Button>
|
|
96
|
-
</
|
|
101
|
+
</ModalFooter>
|
|
97
102
|
</>
|
|
98
103
|
);
|
|
99
104
|
};
|
|
@@ -119,13 +124,12 @@ const EditPullSecretModal: React.FC<EditPullSecretModalProps> = ({
|
|
|
119
124
|
return (
|
|
120
125
|
<Modal
|
|
121
126
|
aria-label={t('ai:Edit pull secret dialog')}
|
|
122
|
-
title={t('ai:Edit pull secret')}
|
|
123
127
|
isOpen={isOpen}
|
|
124
128
|
onClose={onClose}
|
|
125
129
|
variant={ModalVariant.small}
|
|
126
|
-
hasNoBodyWrapper
|
|
127
130
|
id="edit-pull-secret-modal"
|
|
128
131
|
>
|
|
132
|
+
<ModalHeader title={t('ai:Edit pull secret')} />
|
|
129
133
|
<Formik<EditPullSecretFormikValues>
|
|
130
134
|
initialValues={{
|
|
131
135
|
pullSecret: undefined,
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import * as Yup from 'yup';
|
|
3
|
-
import {
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
4
4
|
import {
|
|
5
|
+
Alert,
|
|
6
|
+
Button,
|
|
7
|
+
ButtonVariant,
|
|
5
8
|
Modal,
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
ModalBody,
|
|
10
|
+
ModalFooter,
|
|
11
|
+
ModalHeader,
|
|
8
12
|
ModalVariant,
|
|
9
|
-
|
|
13
|
+
Stack,
|
|
14
|
+
StackItem,
|
|
15
|
+
} from '@patternfly/react-core';
|
|
10
16
|
import { Formik, FormikProps } from 'formik';
|
|
11
17
|
|
|
12
18
|
import { InfraEnvK8sResource } from '../../types';
|
|
@@ -15,11 +21,12 @@ import { EditSSHKeyFormikValues } from './types';
|
|
|
15
21
|
import { getWarningMessage } from './utils';
|
|
16
22
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
17
23
|
|
|
18
|
-
const validationSchema =
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
const validationSchema = (t: TFunction) =>
|
|
25
|
+
Yup.object({
|
|
26
|
+
sshPublicKey: sshPublicKeyValidationSchema(t).required(
|
|
27
|
+
t('ai:An SSH key is required to debug hosts as they register.'),
|
|
28
|
+
),
|
|
29
|
+
});
|
|
23
30
|
|
|
24
31
|
export type EditSSHKeyModalProps = {
|
|
25
32
|
isOpen: boolean;
|
|
@@ -46,18 +53,17 @@ const EditSSHKeyModal: React.FC<EditSSHKeyModalProps> = ({
|
|
|
46
53
|
return (
|
|
47
54
|
<Modal
|
|
48
55
|
aria-label={t('ai:Edit SSH public key dialog')}
|
|
49
|
-
title={t('ai:Edit SSH public key')}
|
|
50
56
|
isOpen={isOpen}
|
|
51
57
|
onClose={onClose}
|
|
52
58
|
variant={ModalVariant.small}
|
|
53
|
-
hasNoBodyWrapper
|
|
54
59
|
id="edit-ssh-key-modal"
|
|
55
60
|
>
|
|
61
|
+
<ModalHeader title={t('ai:Edit SSH public key')} />
|
|
56
62
|
<Formik<EditSSHKeyFormikValues>
|
|
57
63
|
initialValues={{
|
|
58
64
|
sshPublicKey: infraEnv.spec?.sshAuthorizedKey || '',
|
|
59
65
|
}}
|
|
60
|
-
validationSchema={validationSchema}
|
|
66
|
+
validationSchema={validationSchema(t)}
|
|
61
67
|
onSubmit={async (values) => {
|
|
62
68
|
try {
|
|
63
69
|
await onSubmit(values, infraEnv);
|
|
@@ -69,9 +75,9 @@ const EditSSHKeyModal: React.FC<EditSSHKeyModalProps> = ({
|
|
|
69
75
|
}}
|
|
70
76
|
validateOnMount
|
|
71
77
|
>
|
|
72
|
-
{({ isSubmitting, isValid, submitForm }: FormikProps<
|
|
78
|
+
{({ isSubmitting, isValid, submitForm }: FormikProps<EditSSHKeyFormikValues>) => (
|
|
73
79
|
<>
|
|
74
|
-
<
|
|
80
|
+
<ModalBody>
|
|
75
81
|
<Stack hasGutter>
|
|
76
82
|
<StackItem>
|
|
77
83
|
<Alert isInline variant="warning" title={warningMsg} />
|
|
@@ -85,16 +91,15 @@ const EditSSHKeyModal: React.FC<EditSSHKeyModalProps> = ({
|
|
|
85
91
|
</StackItem>
|
|
86
92
|
)}
|
|
87
93
|
</Stack>
|
|
88
|
-
</
|
|
89
|
-
<
|
|
90
|
-
{
|
|
91
|
-
<Button onClick={submitForm} isDisabled={isSubmitting || !isValid}>
|
|
94
|
+
</ModalBody>
|
|
95
|
+
<ModalFooter>
|
|
96
|
+
<Button onClick={() => void submitForm()} isDisabled={isSubmitting || !isValid}>
|
|
92
97
|
{t('ai:Save')}
|
|
93
98
|
</Button>
|
|
94
99
|
<Button onClick={onClose} variant={ButtonVariant.secondary}>
|
|
95
100
|
{t('ai:Cancel')}
|
|
96
101
|
</Button>
|
|
97
|
-
</
|
|
102
|
+
</ModalFooter>
|
|
98
103
|
</>
|
|
99
104
|
)}
|
|
100
105
|
</Formik>
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import {
|
|
3
|
+
Alert,
|
|
4
|
+
Button,
|
|
5
|
+
ButtonVariant,
|
|
6
|
+
Modal,
|
|
7
|
+
ModalBody,
|
|
8
|
+
ModalFooter,
|
|
9
|
+
ModalHeader,
|
|
10
|
+
Stack,
|
|
11
|
+
StackItem,
|
|
12
|
+
} from '@patternfly/react-core';
|
|
4
13
|
import { getAIHosts } from '../helpers';
|
|
5
14
|
import { AgentK8sResource } from '../../types';
|
|
6
15
|
import HostsTable from '../../../common/components/hosts/HostsTable';
|
|
@@ -131,14 +140,13 @@ const MassApproveAgentModal: React.FC<MassApproveAgentModalProps> = ({
|
|
|
131
140
|
return (
|
|
132
141
|
<Modal
|
|
133
142
|
aria-label={t('ai:Approve hosts dialog')}
|
|
134
|
-
title={t('ai:Approve hosts to join infrastructure environment')}
|
|
135
143
|
isOpen={isOpen}
|
|
136
144
|
onClose={onClose}
|
|
137
|
-
hasNoBodyWrapper
|
|
138
145
|
id="mass-approve-modal"
|
|
139
146
|
variant="medium"
|
|
140
147
|
>
|
|
141
|
-
<
|
|
148
|
+
<ModalHeader title={t('ai:Approve hosts to join infrastructure environment')} />
|
|
149
|
+
<ModalBody>
|
|
142
150
|
<Stack hasGutter>
|
|
143
151
|
<StackItem>
|
|
144
152
|
<Alert
|
|
@@ -158,8 +166,8 @@ const MassApproveAgentModal: React.FC<MassApproveAgentModalProps> = ({
|
|
|
158
166
|
<ModalProgress error={error} progress={progress} />
|
|
159
167
|
</StackItem>
|
|
160
168
|
</Stack>
|
|
161
|
-
</
|
|
162
|
-
<
|
|
169
|
+
</ModalBody>
|
|
170
|
+
<ModalFooter>
|
|
163
171
|
{/* eslint-disable-next-line @typescript-eslint/no-misused-promises */}
|
|
164
172
|
<Button onClick={onClick} isDisabled={progress !== null}>
|
|
165
173
|
{t('ai:Approve all hosts')}
|
|
@@ -167,7 +175,7 @@ const MassApproveAgentModal: React.FC<MassApproveAgentModalProps> = ({
|
|
|
167
175
|
<Button onClick={onClose} variant={ButtonVariant.secondary} isDisabled={progress !== null}>
|
|
168
176
|
{t('ai:Cancel')}
|
|
169
177
|
</Button>
|
|
170
|
-
</
|
|
178
|
+
</ModalFooter>
|
|
171
179
|
</Modal>
|
|
172
180
|
);
|
|
173
181
|
};
|
|
@@ -8,8 +8,11 @@ import {
|
|
|
8
8
|
AlertActionCloseButton,
|
|
9
9
|
Stack,
|
|
10
10
|
StackItem,
|
|
11
|
+
Modal,
|
|
12
|
+
ModalBody,
|
|
13
|
+
ModalFooter,
|
|
14
|
+
ModalHeader,
|
|
11
15
|
} from '@patternfly/react-core';
|
|
12
|
-
import { Modal, ModalBoxBody, ModalBoxFooter } from '@patternfly/react-core/deprecated';
|
|
13
16
|
import { Formik, FormikConfig, FormikProps } from 'formik';
|
|
14
17
|
import { AgentK8sResource } from '../../types/k8s/agent';
|
|
15
18
|
import { ClusterDeploymentK8sResource } from '../../types/k8s/cluster-deployment';
|
|
@@ -124,12 +127,11 @@ const ScaleUpModal: React.FC<ScaleUpModalProps> = ({
|
|
|
124
127
|
<>
|
|
125
128
|
<Modal
|
|
126
129
|
aria-label={t('ai:Add host dialog')}
|
|
127
|
-
title={t('ai:Add hosts')}
|
|
128
130
|
isOpen={isOpen}
|
|
129
131
|
onClose={onClose}
|
|
130
|
-
hasNoBodyWrapper
|
|
131
132
|
id="scale-up-modal"
|
|
132
133
|
>
|
|
134
|
+
<ModalHeader title={t('ai:Add hosts')} />
|
|
133
135
|
<Formik
|
|
134
136
|
initialValues={getInitialValues()}
|
|
135
137
|
validationSchema={validationSchema}
|
|
@@ -139,7 +141,7 @@ const ScaleUpModal: React.FC<ScaleUpModalProps> = ({
|
|
|
139
141
|
{({ isSubmitting, isValid, submitForm }: FormikProps<ScaleUpFormValues>) => {
|
|
140
142
|
return (
|
|
141
143
|
<>
|
|
142
|
-
<
|
|
144
|
+
<ModalBody>
|
|
143
145
|
<Stack hasGutter>
|
|
144
146
|
<StackItem>
|
|
145
147
|
<ScaleUpForm
|
|
@@ -165,8 +167,8 @@ const ScaleUpModal: React.FC<ScaleUpModalProps> = ({
|
|
|
165
167
|
</StackItem>
|
|
166
168
|
)}
|
|
167
169
|
</Stack>
|
|
168
|
-
</
|
|
169
|
-
<
|
|
170
|
+
</ModalBody>
|
|
171
|
+
<ModalFooter>
|
|
170
172
|
{/* eslint-disable-next-line @typescript-eslint/no-misused-promises */}
|
|
171
173
|
<Button onClick={submitForm} isDisabled={isSubmitting || !isValid}>
|
|
172
174
|
{t('ai:Submit')}
|
|
@@ -174,7 +176,7 @@ const ScaleUpModal: React.FC<ScaleUpModalProps> = ({
|
|
|
174
176
|
<Button onClick={onClose} variant={ButtonVariant.secondary}>
|
|
175
177
|
{t('ai:Cancel')}
|
|
176
178
|
</Button>
|
|
177
|
-
</
|
|
179
|
+
</ModalFooter>
|
|
178
180
|
</>
|
|
179
181
|
);
|
|
180
182
|
}}
|
package/lib/cim/hooks/index.tsx
CHANGED
package/lib/cim/hooks/types.tsx
CHANGED
|
@@ -5,4 +5,7 @@ export type K8sWatchHookListProps = Omit<
|
|
|
5
5
|
'groupVersionKind' | 'name' | 'isList'
|
|
6
6
|
> | null;
|
|
7
7
|
|
|
8
|
-
export type K8sWatchHookProps = Pick<
|
|
8
|
+
export type K8sWatchHookProps = Pick<
|
|
9
|
+
WatchK8sResource,
|
|
10
|
+
'name' | 'namespace' | 'isList' | 'fieldSelector'
|
|
11
|
+
> | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { useK8sWatchResource } from './useK8sWatchResource';
|
|
2
|
+
import { EventK8sResource } from '../types';
|
|
3
|
+
import { K8sWatchHookProps } from './types';
|
|
4
|
+
|
|
5
|
+
export const useEvents = (props: K8sWatchHookProps) =>
|
|
6
|
+
useK8sWatchResource<EventK8sResource[]>(
|
|
7
|
+
{
|
|
8
|
+
groupVersionKind: {
|
|
9
|
+
kind: 'Event',
|
|
10
|
+
version: 'v1',
|
|
11
|
+
},
|
|
12
|
+
},
|
|
13
|
+
props,
|
|
14
|
+
);
|
|
@@ -43,3 +43,16 @@ export type RouteK8sResource = {
|
|
|
43
43
|
wildcardPolicy?: string;
|
|
44
44
|
};
|
|
45
45
|
} & K8sResourceCommon;
|
|
46
|
+
|
|
47
|
+
export type EventK8sResource = {
|
|
48
|
+
type?: string;
|
|
49
|
+
message?: string;
|
|
50
|
+
eventTime?: string;
|
|
51
|
+
involvedObject?: {
|
|
52
|
+
apiVersion?: string;
|
|
53
|
+
kind?: string;
|
|
54
|
+
name?: string;
|
|
55
|
+
namespace?: string;
|
|
56
|
+
uid?: string;
|
|
57
|
+
};
|
|
58
|
+
} & K8sResourceCommon;
|
|
@@ -30,6 +30,8 @@ export type AgentClusterInstallK8sResource = K8sResourceCommon & {
|
|
|
30
30
|
};
|
|
31
31
|
apiVIP?: string;
|
|
32
32
|
ingressVIP?: string;
|
|
33
|
+
apiVIPs?: string[];
|
|
34
|
+
ingressVIPs?: string[];
|
|
33
35
|
sshPublicKey?: string;
|
|
34
36
|
imageSetRef?: {
|
|
35
37
|
name?: string;
|
|
@@ -63,6 +65,8 @@ export type AgentClusterInstallK8sResource = K8sResourceCommon & {
|
|
|
63
65
|
status?: {
|
|
64
66
|
apiVIP?: string;
|
|
65
67
|
ingressVIP?: string;
|
|
68
|
+
apiVIPs?: string[];
|
|
69
|
+
ingressVIPs?: string[];
|
|
66
70
|
connectivityMajorityGroups?: string;
|
|
67
71
|
conditions?: AgentClusterInstallStatusCondition[];
|
|
68
72
|
progress?: {
|
|
@@ -28,5 +28,25 @@ export type BareMetalHostK8sResource = K8sResourceCommon & {
|
|
|
28
28
|
};
|
|
29
29
|
errorMessage?: string;
|
|
30
30
|
errorType?: string;
|
|
31
|
+
operationalStatus?: 'OK' | 'discovered' | 'error' | 'delayed' | 'detached';
|
|
32
|
+
operationHistory?: {
|
|
33
|
+
register?: {
|
|
34
|
+
start?: string;
|
|
35
|
+
end?: string;
|
|
36
|
+
};
|
|
37
|
+
provision?: {
|
|
38
|
+
start?: string;
|
|
39
|
+
end?: string;
|
|
40
|
+
};
|
|
41
|
+
inspect?: {
|
|
42
|
+
start?: string;
|
|
43
|
+
end?: string;
|
|
44
|
+
};
|
|
45
|
+
deprovision?: {
|
|
46
|
+
start?: string;
|
|
47
|
+
end?: string;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
lastUpdated?: string;
|
|
31
51
|
};
|
|
32
52
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Yup from 'yup';
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
3
4
|
import {
|
|
4
5
|
Button,
|
|
5
6
|
Form,
|
|
@@ -17,12 +18,12 @@ import {
|
|
|
17
18
|
ImageType,
|
|
18
19
|
Proxy,
|
|
19
20
|
} from '@openshift-assisted/types/assisted-installer-service';
|
|
21
|
+
import { AlertFormikError } from '../../../common/components/ui';
|
|
20
22
|
import {
|
|
21
|
-
AlertFormikError,
|
|
22
23
|
httpProxyValidationSchema,
|
|
23
24
|
noProxyValidationSchema,
|
|
24
25
|
sshPublicKeyValidationSchema,
|
|
25
|
-
} from '
|
|
26
|
+
} from '../../validationSchemas';
|
|
26
27
|
import { ProxyFieldsType, StatusErrorType } from '../../types';
|
|
27
28
|
import ProxyFields from './ProxyFields';
|
|
28
29
|
import UploadSSH from './UploadSSH';
|
|
@@ -55,13 +56,13 @@ export const StaticIPInfo = ({ docVersion }: { docVersion?: string }) => {
|
|
|
55
56
|
|
|
56
57
|
export type DiscoveryImageFormValues = ImageCreateParams & ProxyFieldsType;
|
|
57
58
|
|
|
58
|
-
const getValidationSchema = (allowEmpty: boolean) =>
|
|
59
|
+
const getValidationSchema = (allowEmpty: boolean, t: TFunction) =>
|
|
59
60
|
Yup.lazy((values: DiscoveryImageFormValues) =>
|
|
60
61
|
Yup.object<DiscoveryImageFormValues>().shape({
|
|
61
|
-
sshPublicKey: sshPublicKeyValidationSchema,
|
|
62
|
-
httpProxy: httpProxyValidationSchema({ values, pairValueName: 'httpsProxy', allowEmpty }),
|
|
63
|
-
httpsProxy: httpProxyValidationSchema({ values, pairValueName: 'httpProxy', allowEmpty }), // share the schema, httpS is currently not supported
|
|
64
|
-
noProxy: noProxyValidationSchema,
|
|
62
|
+
sshPublicKey: sshPublicKeyValidationSchema(t),
|
|
63
|
+
httpProxy: httpProxyValidationSchema({ values, pairValueName: 'httpsProxy', allowEmpty, t }),
|
|
64
|
+
httpsProxy: httpProxyValidationSchema({ values, pairValueName: 'httpProxy', allowEmpty, t }), // share the schema, httpS is currently not supported
|
|
65
|
+
noProxy: noProxyValidationSchema(t),
|
|
65
66
|
}),
|
|
66
67
|
);
|
|
67
68
|
|
|
@@ -108,7 +109,7 @@ export const DiscoveryImageConfigForm: React.FC<DiscoveryImageConfigFormProps> =
|
|
|
108
109
|
<Formik
|
|
109
110
|
initialValues={initialValues}
|
|
110
111
|
initialStatus={{ error: null }}
|
|
111
|
-
validationSchema={getValidationSchema(!!allowEmpty)}
|
|
112
|
+
validationSchema={getValidationSchema(!!allowEmpty, t)}
|
|
112
113
|
onSubmit={handleSubmit}
|
|
113
114
|
>
|
|
114
115
|
{({ submitForm, isSubmitting, status }) => {
|
|
@@ -32,7 +32,7 @@ const DiscoveryInstructions = ({
|
|
|
32
32
|
<Trans
|
|
33
33
|
t={t}
|
|
34
34
|
count={+isSNO}
|
|
35
|
-
components={{ bold: <
|
|
35
|
+
components={{ bold: <span className="pf-v6-u-font-weight-bold" /> }}
|
|
36
36
|
i18nKey="ai:Keep the Discovery ISO media connected to the device throughout the installation process and set each host to boot <bold>only one time</bold> from this device. "
|
|
37
37
|
/>
|
|
38
38
|
</Content>
|