@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
|
@@ -60,7 +60,7 @@ export const NetworkingForm = ({
|
|
|
60
60
|
const { activeStep, goToPrevStep, goToNextStep, close } = useWizardContext();
|
|
61
61
|
const { syncError } = React.useContext(ClusterDeploymentWizardContext);
|
|
62
62
|
const { alerts } = useAlerts();
|
|
63
|
-
const [
|
|
63
|
+
const [hasAttemptedSubmit, setHasAttemptedSubmit] = React.useState(false);
|
|
64
64
|
const [showClusterErrors, setShowClusterErrors] = React.useState(false);
|
|
65
65
|
const [nextRequested, setNextRequested] = React.useState(false);
|
|
66
66
|
const { infraEnvWithProxy, infraEnvsError, infraEnvsLoading, sameProxies } = useInfraEnvProxies({
|
|
@@ -76,7 +76,7 @@ export const NetworkingForm = ({
|
|
|
76
76
|
);
|
|
77
77
|
|
|
78
78
|
const onNext = React.useCallback(async () => {
|
|
79
|
-
if (!
|
|
79
|
+
if (!hasAttemptedSubmit) {
|
|
80
80
|
const errors = await validateForm();
|
|
81
81
|
setTouched(
|
|
82
82
|
Object.keys(errors).reduce((acc, curr) => {
|
|
@@ -84,13 +84,13 @@ export const NetworkingForm = ({
|
|
|
84
84
|
return acc;
|
|
85
85
|
}, {} as Record<string, boolean>),
|
|
86
86
|
);
|
|
87
|
-
|
|
87
|
+
setHasAttemptedSubmit(true);
|
|
88
88
|
if (Object.keys(errors).length) {
|
|
89
89
|
return;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
setNextRequested(true);
|
|
93
|
-
}, [setTouched,
|
|
93
|
+
}, [setTouched, hasAttemptedSubmit, validateForm]);
|
|
94
94
|
|
|
95
95
|
React.useEffect(() => {
|
|
96
96
|
setNextRequested(false);
|
|
@@ -123,34 +123,34 @@ export const NetworkingForm = ({
|
|
|
123
123
|
return undefined;
|
|
124
124
|
}, [isSubmitting, isValidating, nextRequested, t]);
|
|
125
125
|
|
|
126
|
-
const footer = React.useMemo(
|
|
127
|
-
(
|
|
126
|
+
const footer = React.useMemo(() => {
|
|
127
|
+
const hasValidationErrors = hasAttemptedSubmit && (!isValid || isValidating);
|
|
128
|
+
const isNextDisabled = nextRequested || isSubmitting || hasValidationErrors;
|
|
129
|
+
|
|
130
|
+
return (
|
|
128
131
|
<WizardFooter
|
|
129
132
|
activeStep={activeStep}
|
|
130
133
|
onNext={onNext}
|
|
131
|
-
isNextDisabled={
|
|
132
|
-
nextRequested || isSubmitting || (showFormErrors ? !isValid || isValidating : false)
|
|
133
|
-
}
|
|
134
|
+
isNextDisabled={isNextDisabled}
|
|
134
135
|
nextButtonProps={{ isLoading: !!submittingText }}
|
|
135
136
|
nextButtonText={submittingText || t('ai:Next')}
|
|
136
137
|
onBack={goToPrevStep}
|
|
137
138
|
onClose={close}
|
|
138
139
|
/>
|
|
139
|
-
)
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
);
|
|
140
|
+
);
|
|
141
|
+
}, [
|
|
142
|
+
activeStep,
|
|
143
|
+
onNext,
|
|
144
|
+
nextRequested,
|
|
145
|
+
isSubmitting,
|
|
146
|
+
hasAttemptedSubmit,
|
|
147
|
+
isValid,
|
|
148
|
+
isValidating,
|
|
149
|
+
submittingText,
|
|
150
|
+
goToPrevStep,
|
|
151
|
+
close,
|
|
152
|
+
t,
|
|
153
|
+
]);
|
|
154
154
|
|
|
155
155
|
useWizardFooter(footer);
|
|
156
156
|
|
|
@@ -177,7 +177,7 @@ export const NetworkingForm = ({
|
|
|
177
177
|
/>
|
|
178
178
|
</GridItem>
|
|
179
179
|
|
|
180
|
-
{
|
|
180
|
+
{hasAttemptedSubmit && !!errorFields.length && (
|
|
181
181
|
<GridItem>
|
|
182
182
|
<Alert
|
|
183
183
|
variant={AlertVariant.danger}
|
|
@@ -191,7 +191,7 @@ export const NetworkingForm = ({
|
|
|
191
191
|
</GridItem>
|
|
192
192
|
)}
|
|
193
193
|
|
|
194
|
-
{(showClusterErrors ||
|
|
194
|
+
{(showClusterErrors || hasAttemptedSubmit) && !!alerts.length && (
|
|
195
195
|
<GridItem>
|
|
196
196
|
<Alerts />
|
|
197
197
|
</GridItem>
|
|
@@ -144,15 +144,29 @@ export const ClusterDeploymentReviewStep = ({
|
|
|
144
144
|
testId="platform-type"
|
|
145
145
|
/>
|
|
146
146
|
<DetailItem
|
|
147
|
-
title={t('ai:API IP')}
|
|
148
|
-
value={agentClusterInstall?.status?.
|
|
149
|
-
testId="api-vip"
|
|
147
|
+
title={t('ai:API IP (Primary)')}
|
|
148
|
+
value={agentClusterInstall?.status?.apiVIPs?.[0]}
|
|
149
|
+
testId="api-vip-primary"
|
|
150
150
|
/>
|
|
151
|
+
{(agentClusterInstall?.status?.apiVIPs?.length ?? 0) > 1 ? (
|
|
152
|
+
<DetailItem
|
|
153
|
+
title={t('ai:API IP (Secondary)')}
|
|
154
|
+
value={agentClusterInstall?.status?.apiVIPs?.[1]}
|
|
155
|
+
testId="api-vip-secondary"
|
|
156
|
+
/>
|
|
157
|
+
) : undefined}
|
|
151
158
|
<DetailItem
|
|
152
|
-
title={t('ai:Ingress IP')}
|
|
153
|
-
value={agentClusterInstall?.status?.
|
|
154
|
-
testId="ingress-vip"
|
|
159
|
+
title={t('ai:Ingress IP (Primary)')}
|
|
160
|
+
value={agentClusterInstall?.status?.ingressVIPs?.[0]}
|
|
161
|
+
testId="ingress-vip-primary"
|
|
155
162
|
/>
|
|
163
|
+
{(agentClusterInstall?.status?.ingressVIPs?.length ?? 0) > 1 ? (
|
|
164
|
+
<DetailItem
|
|
165
|
+
title={t('ai:Ingress IP (Secondary)')}
|
|
166
|
+
value={agentClusterInstall?.status?.ingressVIPs?.[1]}
|
|
167
|
+
testId="ingress-vip-secondary"
|
|
168
|
+
/>
|
|
169
|
+
) : undefined}
|
|
156
170
|
<DetailItem
|
|
157
171
|
title={t('ai:Cluster summary')}
|
|
158
172
|
testId="cluster-summary"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import * as Yup from 'yup';
|
|
3
|
+
import { TFunction } from 'i18next';
|
|
3
4
|
|
|
4
5
|
import { INFRAENV_AGENTINSTALL_LABEL_KEY } from '../common';
|
|
5
6
|
import { getHostSubnets } from '../../../common/components/clusterConfiguration/utils';
|
|
@@ -14,14 +15,17 @@ import { getAICluster } from '../helpers';
|
|
|
14
15
|
import { useDeepCompareMemoize } from '../../../common/hooks';
|
|
15
16
|
import {
|
|
16
17
|
HostSubnets,
|
|
17
|
-
hostPrefixValidationSchema,
|
|
18
|
-
ipBlockValidationSchema,
|
|
19
18
|
vipArrayValidationSchema,
|
|
20
19
|
sshPublicKeyListValidationSchema,
|
|
21
|
-
hostSubnetValidationSchema,
|
|
22
20
|
httpProxyValidationSchema,
|
|
23
21
|
noProxyValidationSchema,
|
|
24
|
-
|
|
22
|
+
CLUSTER_DEFAULT_NETWORK_SETTINGS,
|
|
23
|
+
clusterNetworksValidationSchema,
|
|
24
|
+
serviceNetworkValidationSchema,
|
|
25
|
+
dualStackValidationSchema,
|
|
26
|
+
IPv4ValidationSchema,
|
|
27
|
+
IPV4_STACK,
|
|
28
|
+
NetworkConfigurationValues,
|
|
25
29
|
} from '../../../common';
|
|
26
30
|
import { ClusterDeploymentNetworkingValues } from './types';
|
|
27
31
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
@@ -44,19 +48,33 @@ const getInfraEnvProxy = (infraEnvs: InfraEnvK8sResource[]) => {
|
|
|
44
48
|
const getNetworkConfigurationValidationSchema = (
|
|
45
49
|
initialValues: ClusterDeploymentNetworkingValues,
|
|
46
50
|
hostSubnets: HostSubnets,
|
|
51
|
+
t: TFunction,
|
|
52
|
+
openshiftVersion?: string,
|
|
47
53
|
) =>
|
|
48
54
|
Yup.lazy((values: ClusterDeploymentNetworkingValues) =>
|
|
49
55
|
Yup.object<ClusterDeploymentNetworkingValues>().shape({
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
clusterNetworks: clusterNetworksValidationSchema(t).when('stackType', {
|
|
57
|
+
is: (stackType: NetworkConfigurationValues['stackType']) => stackType === IPV4_STACK,
|
|
58
|
+
then: () => clusterNetworksValidationSchema(t).concat(IPv4ValidationSchema),
|
|
59
|
+
otherwise: () =>
|
|
60
|
+
clusterNetworksValidationSchema(t).concat(
|
|
61
|
+
dualStackValidationSchema(t('ai:cluster network'), t, openshiftVersion),
|
|
62
|
+
),
|
|
63
|
+
}),
|
|
64
|
+
serviceNetworks: serviceNetworkValidationSchema(t).when('stackType', {
|
|
65
|
+
is: (stackType: NetworkConfigurationValues['stackType']) => stackType === IPV4_STACK,
|
|
66
|
+
then: () => serviceNetworkValidationSchema(t).concat(IPv4ValidationSchema),
|
|
67
|
+
otherwise: () =>
|
|
68
|
+
serviceNetworkValidationSchema(t).concat(
|
|
69
|
+
dualStackValidationSchema(t('ai:service network'), t, openshiftVersion),
|
|
70
|
+
),
|
|
71
|
+
}),
|
|
72
|
+
apiVips: vipArrayValidationSchema(hostSubnets, values, t),
|
|
73
|
+
ingressVips: vipArrayValidationSchema(hostSubnets, values, t),
|
|
74
|
+
sshPublicKey: sshPublicKeyListValidationSchema(t),
|
|
75
|
+
httpProxy: httpProxyValidationSchema({ values, pairValueName: 'httpsProxy', t }),
|
|
76
|
+
httpsProxy: httpProxyValidationSchema({ values, pairValueName: 'httpProxy', t }), // share the schema, httpS is currently not supported
|
|
77
|
+
noProxy: noProxyValidationSchema(t),
|
|
60
78
|
}),
|
|
61
79
|
);
|
|
62
80
|
|
|
@@ -71,6 +89,7 @@ export const useNetworkingFormik = ({
|
|
|
71
89
|
agentClusterInstall,
|
|
72
90
|
agents,
|
|
73
91
|
}: UseNetworkingFormikArgs) => {
|
|
92
|
+
const { t } = useTranslation();
|
|
74
93
|
const initialValues = React.useMemo(
|
|
75
94
|
() => {
|
|
76
95
|
const cluster = getAICluster({
|
|
@@ -79,7 +98,7 @@ export const useNetworkingFormik = ({
|
|
|
79
98
|
agents,
|
|
80
99
|
});
|
|
81
100
|
return {
|
|
82
|
-
...getNetworkInitialValues(cluster,
|
|
101
|
+
...getNetworkInitialValues(cluster, CLUSTER_DEFAULT_NETWORK_SETTINGS),
|
|
83
102
|
enableProxy: false,
|
|
84
103
|
editProxy: false,
|
|
85
104
|
};
|
|
@@ -93,8 +112,13 @@ export const useNetworkingFormik = ({
|
|
|
93
112
|
agents,
|
|
94
113
|
});
|
|
95
114
|
const hostSubnets = getHostSubnets(cluster);
|
|
96
|
-
return getNetworkConfigurationValidationSchema(
|
|
97
|
-
|
|
115
|
+
return getNetworkConfigurationValidationSchema(
|
|
116
|
+
initialValues,
|
|
117
|
+
hostSubnets,
|
|
118
|
+
t,
|
|
119
|
+
cluster.openshiftVersion,
|
|
120
|
+
);
|
|
121
|
+
}, [clusterDeployment, agentClusterInstall, agents, t, initialValues]);
|
|
98
122
|
|
|
99
123
|
return {
|
|
100
124
|
initialValues,
|
|
@@ -174,7 +174,7 @@ const NodePoolsTable = ({
|
|
|
174
174
|
onClick: () => setManageHostsOpen(np.metadata?.uid),
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
|
-
title: t('ai:Remove
|
|
177
|
+
title: t('ai:Remove nodepool'),
|
|
178
178
|
onClick: () => setRemoveNodePoolOpen(np.metadata?.uid),
|
|
179
179
|
},
|
|
180
180
|
],
|
|
@@ -228,7 +228,7 @@ const NodePoolsTable = ({
|
|
|
228
228
|
iconPosition="right"
|
|
229
229
|
onClick={() => setAddNodePool(true)}
|
|
230
230
|
>
|
|
231
|
-
{t('ai:Add
|
|
231
|
+
{t('ai:Add nodepool')}
|
|
232
232
|
</Button>
|
|
233
233
|
</StackItem>
|
|
234
234
|
</Stack>
|
|
@@ -34,8 +34,8 @@ const useDetailsFormik: UseDetailsFormik = ({
|
|
|
34
34
|
() =>
|
|
35
35
|
Yup.object({
|
|
36
36
|
name: nameValidationSchema(t, usedClusterNames),
|
|
37
|
-
baseDnsDomain: dnsNameValidationSchema.required('Required'),
|
|
38
|
-
pullSecret: pullSecretValidationSchema.required('Required
|
|
37
|
+
baseDnsDomain: dnsNameValidationSchema(t).required(t('ai:Required field')),
|
|
38
|
+
pullSecret: pullSecretValidationSchema(t).required(t('ai:Required field')),
|
|
39
39
|
}),
|
|
40
40
|
[usedClusterNames, t],
|
|
41
41
|
);
|
|
@@ -6,8 +6,6 @@ import { Stack, StackItem } from '@patternfly/react-core';
|
|
|
6
6
|
import HostsForm from './HostsForm';
|
|
7
7
|
import { HostsStepProps, HostsFormValues, NodePoolFormValue } from './types';
|
|
8
8
|
import { useTranslation } from '../../../../../common/hooks/use-translation-wrapper';
|
|
9
|
-
import { getAgentsForSelection } from '../../../helpers';
|
|
10
|
-
import { INFRAENV_AGENTINSTALL_LABEL_KEY } from '../../../common';
|
|
11
9
|
import { TFunction } from 'i18next';
|
|
12
10
|
import { NodePoolK8sResource } from '../../types';
|
|
13
11
|
|
|
@@ -61,16 +59,7 @@ const HostsStep: React.FC<HostsStepProps> = ({
|
|
|
61
59
|
olmCatalogPlacement,
|
|
62
60
|
}) => {
|
|
63
61
|
const { t } = useTranslation();
|
|
64
|
-
const availableAgents = getAgentsForSelection(agents);
|
|
65
62
|
|
|
66
|
-
const infraEnvsWithAgents = infraEnvs.filter((ie) =>
|
|
67
|
-
availableAgents.some(
|
|
68
|
-
(a) =>
|
|
69
|
-
a.metadata?.labels?.[INFRAENV_AGENTINSTALL_LABEL_KEY] === ie.metadata?.name &&
|
|
70
|
-
a.metadata?.namespace === ie.metadata?.namespace &&
|
|
71
|
-
!a.spec.clusterDeploymentName,
|
|
72
|
-
),
|
|
73
|
-
);
|
|
74
63
|
return (
|
|
75
64
|
<Stack hasGutter>
|
|
76
65
|
<StackItem>
|
|
@@ -84,7 +73,7 @@ const HostsStep: React.FC<HostsStepProps> = ({
|
|
|
84
73
|
controllerAvailabilityPolicy: controllerAvailabilityPolicy || 'HighlyAvailable',
|
|
85
74
|
infrastructureAvailabilityPolicy: infrastructureAvailabilityPolicy || 'HighlyAvailable',
|
|
86
75
|
olmCatalogPlacement: olmCatalogPlacement || 'management',
|
|
87
|
-
agentNamespace: initInfraEnv ||
|
|
76
|
+
agentNamespace: initInfraEnv || infraEnvs[0]?.metadata?.namespace || '',
|
|
88
77
|
nodePools: initNodePools || [
|
|
89
78
|
{
|
|
90
79
|
nodePoolName: `nodepool-${clusterName}-1`,
|
|
@@ -106,7 +95,7 @@ const HostsStep: React.FC<HostsStepProps> = ({
|
|
|
106
95
|
>
|
|
107
96
|
<HostsForm
|
|
108
97
|
onValuesChanged={onValuesChanged}
|
|
109
|
-
infraEnvs={
|
|
98
|
+
infraEnvs={infraEnvs}
|
|
110
99
|
agents={agents}
|
|
111
100
|
clusterName={clusterName}
|
|
112
101
|
initReleaseImage={initReleaseImage}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Grid, TextInputTypes } from '@patternfly/react-core';
|
|
3
3
|
import { useFormikContext } from 'formik';
|
|
4
|
-
import { InputField } from '
|
|
5
|
-
import { NetworkConfigurationValues } from '
|
|
6
|
-
import { PREFIX_MAX_RESTRICTION } from '
|
|
7
|
-
import { useTranslation } from '
|
|
4
|
+
import { InputField } from '../../../../../common/components/ui';
|
|
5
|
+
import { NetworkConfigurationValues } from '../../../../../common/types/clusters';
|
|
6
|
+
import { PREFIX_MAX_RESTRICTION } from '../../../../../common/config/constants';
|
|
7
|
+
import { useTranslation } from '../../../../../common/hooks/use-translation-wrapper';
|
|
8
8
|
|
|
9
9
|
type AdvancedNetworkFieldsProps = {
|
|
10
10
|
isClusterCIDRIPv6: boolean;
|
|
@@ -16,7 +16,7 @@ import { useTemptiflySync } from '../../hooks/useTemptiflySync';
|
|
|
16
16
|
import { useTranslation } from '../../../../../common/hooks/use-translation-wrapper';
|
|
17
17
|
|
|
18
18
|
import './NetworkForm.css';
|
|
19
|
-
import AdvancedNetworkFields from '
|
|
19
|
+
import AdvancedNetworkFields from './AdvancedNetworkFields';
|
|
20
20
|
|
|
21
21
|
const NetworkForm: React.FC<NetworkFormProps> = ({ onValuesChanged }) => {
|
|
22
22
|
const { values } = useFormikContext<NetworkFormValues>();
|
|
@@ -18,22 +18,22 @@ import { useTranslation } from '../../../../../common/hooks/use-translation-wrap
|
|
|
18
18
|
const getValidationSchema = (t: TFunction) =>
|
|
19
19
|
Yup.lazy((values: NetworkFormValues) =>
|
|
20
20
|
Yup.object<NetworkFormValues>().shape({
|
|
21
|
-
sshPublicKey: sshPublicKeyValidationSchema.required(t('ai:Required field')),
|
|
21
|
+
sshPublicKey: sshPublicKeyValidationSchema(t).required(t('ai:Required field')),
|
|
22
22
|
clusterNetworkCidr: values.isAdvanced
|
|
23
|
-
? ipBlockValidationSchema(values.serviceNetworkCidr)
|
|
23
|
+
? ipBlockValidationSchema(values.serviceNetworkCidr, t)
|
|
24
24
|
: Yup.string(),
|
|
25
25
|
serviceNetworkCidr: values.isAdvanced
|
|
26
|
-
? ipBlockValidationSchema(values.clusterNetworkCidr)
|
|
26
|
+
? ipBlockValidationSchema(values.clusterNetworkCidr, t)
|
|
27
27
|
: Yup.string(),
|
|
28
28
|
clusterNetworkHostPrefix: values.isAdvanced
|
|
29
|
-
? hostPrefixValidationSchema(values.clusterNetworkCidr)
|
|
29
|
+
? hostPrefixValidationSchema(values.clusterNetworkCidr, t)
|
|
30
30
|
: Yup.number(),
|
|
31
|
-
httpProxy: httpProxyValidationSchema({ values, pairValueName: 'httpsProxy' }),
|
|
32
|
-
httpsProxy: httpProxyValidationSchema({ values, pairValueName: 'httpProxy' }), // share the schema, httpS is currently not supported
|
|
33
|
-
noProxy: noProxyValidationSchema,
|
|
31
|
+
httpProxy: httpProxyValidationSchema({ values, pairValueName: 'httpsProxy', t }),
|
|
32
|
+
httpsProxy: httpProxyValidationSchema({ values, pairValueName: 'httpProxy', t }), // share the schema, httpS is currently not supported
|
|
33
|
+
noProxy: noProxyValidationSchema(t),
|
|
34
34
|
nodePortAddress:
|
|
35
35
|
values.apiPublishingStrategy === 'NodePort'
|
|
36
|
-
? day2ApiVipValidationSchema.required(t('ai:Required field'))
|
|
36
|
+
? day2ApiVipValidationSchema(t).required(t('ai:Required field'))
|
|
37
37
|
: Yup.string(),
|
|
38
38
|
}),
|
|
39
39
|
);
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Alert, Button, Spinner, Stack, StackItem } from '@patternfly/react-core';
|
|
3
2
|
import {
|
|
3
|
+
Alert,
|
|
4
|
+
Button,
|
|
4
5
|
Modal,
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
ModalBody,
|
|
7
|
+
ModalFooter,
|
|
8
|
+
ModalHeader,
|
|
7
9
|
ModalVariant,
|
|
8
|
-
|
|
10
|
+
Spinner,
|
|
11
|
+
Stack,
|
|
12
|
+
StackItem,
|
|
13
|
+
} from '@patternfly/react-core';
|
|
9
14
|
import { Formik } from 'formik';
|
|
10
15
|
|
|
11
16
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
@@ -72,14 +77,8 @@ const AddNodePoolModal = ({
|
|
|
72
77
|
};
|
|
73
78
|
|
|
74
79
|
return (
|
|
75
|
-
<Modal
|
|
76
|
-
|
|
77
|
-
title={t('ai:Add Nodepool')}
|
|
78
|
-
isOpen
|
|
79
|
-
onClose={onClose}
|
|
80
|
-
variant={ModalVariant.medium}
|
|
81
|
-
hasNoBodyWrapper
|
|
82
|
-
>
|
|
80
|
+
<Modal aria-label="add node pool dialog" isOpen onClose={onClose} variant={ModalVariant.medium}>
|
|
81
|
+
<ModalHeader title={t('ai:Add nodepool')} />
|
|
83
82
|
<Formik<NodePoolFormValues>
|
|
84
83
|
initialValues={{
|
|
85
84
|
nodePoolName: `nodepool-${hostedCluster.metadata?.name || ''}-${Math.floor(
|
|
@@ -97,7 +96,7 @@ const AddNodePoolModal = ({
|
|
|
97
96
|
>
|
|
98
97
|
{({ isSubmitting, isValid, submitForm }) => (
|
|
99
98
|
<>
|
|
100
|
-
<
|
|
99
|
+
<ModalBody>
|
|
101
100
|
<Stack hasGutter>
|
|
102
101
|
<StackItem>
|
|
103
102
|
<NodePoolForm agents={namespaceAgents} hostedCluster={hostedCluster} />
|
|
@@ -108,8 +107,8 @@ const AddNodePoolModal = ({
|
|
|
108
107
|
</StackItem>
|
|
109
108
|
)}
|
|
110
109
|
</Stack>
|
|
111
|
-
</
|
|
112
|
-
<
|
|
110
|
+
</ModalBody>
|
|
111
|
+
<ModalFooter>
|
|
113
112
|
<Button
|
|
114
113
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
115
114
|
onClick={submitForm}
|
|
@@ -121,7 +120,7 @@ const AddNodePoolModal = ({
|
|
|
121
120
|
<Button variant="link" onClick={onClose}>
|
|
122
121
|
{t('ai:Cancel')}
|
|
123
122
|
</Button>
|
|
124
|
-
</
|
|
123
|
+
</ModalFooter>
|
|
125
124
|
</>
|
|
126
125
|
)}
|
|
127
126
|
</Formik>
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { Alert, Button, Spinner, Stack, StackItem } from '@patternfly/react-core';
|
|
2
1
|
import {
|
|
2
|
+
Alert,
|
|
3
|
+
Button,
|
|
3
4
|
Modal,
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
ModalBody,
|
|
6
|
+
ModalFooter,
|
|
7
|
+
ModalHeader,
|
|
6
8
|
ModalVariant,
|
|
7
|
-
|
|
9
|
+
Spinner,
|
|
10
|
+
Stack,
|
|
11
|
+
StackItem,
|
|
12
|
+
} from '@patternfly/react-core';
|
|
8
13
|
import { Formik, FormikConfig } from 'formik';
|
|
9
14
|
import * as React from 'react';
|
|
10
15
|
import { AgentK8sResource } from '../../../types';
|
|
@@ -109,14 +114,8 @@ const ManageHostsModal = ({
|
|
|
109
114
|
};
|
|
110
115
|
|
|
111
116
|
return (
|
|
112
|
-
<Modal
|
|
113
|
-
|
|
114
|
-
title={t('ai:Manage hosts')}
|
|
115
|
-
isOpen
|
|
116
|
-
onClose={onClose}
|
|
117
|
-
variant={ModalVariant.medium}
|
|
118
|
-
hasNoBodyWrapper
|
|
119
|
-
>
|
|
117
|
+
<Modal aria-label="Manage hosts dialog" isOpen onClose={onClose} variant={ModalVariant.medium}>
|
|
118
|
+
<ModalHeader title={t('ai:Manage hosts')} />
|
|
120
119
|
<Formik<NodePoolFormValues>
|
|
121
120
|
initialValues={{
|
|
122
121
|
nodePoolName: nodePool.metadata?.name || '',
|
|
@@ -135,7 +134,7 @@ const ManageHostsModal = ({
|
|
|
135
134
|
>
|
|
136
135
|
{({ isSubmitting, isValid, submitForm }) => (
|
|
137
136
|
<>
|
|
138
|
-
<
|
|
137
|
+
<ModalBody>
|
|
139
138
|
<Stack hasGutter>
|
|
140
139
|
<StackItem>
|
|
141
140
|
<NodePoolForm
|
|
@@ -151,8 +150,8 @@ const ManageHostsModal = ({
|
|
|
151
150
|
</StackItem>
|
|
152
151
|
)}
|
|
153
152
|
</Stack>
|
|
154
|
-
</
|
|
155
|
-
<
|
|
153
|
+
</ModalBody>
|
|
154
|
+
<ModalFooter>
|
|
156
155
|
<Button
|
|
157
156
|
// eslint-disable-next-line @typescript-eslint/no-misused-promises
|
|
158
157
|
onClick={submitForm}
|
|
@@ -164,7 +163,7 @@ const ManageHostsModal = ({
|
|
|
164
163
|
<Button variant="link" onClick={onClose}>
|
|
165
164
|
{t('ai:Cancel')}
|
|
166
165
|
</Button>
|
|
167
|
-
</
|
|
166
|
+
</ModalFooter>
|
|
168
167
|
</>
|
|
169
168
|
)}
|
|
170
169
|
</Formik>
|
|
@@ -94,7 +94,7 @@ const NodePoolForm = ({ agents, nodePool, hostedCluster, agentMachines }: NodePo
|
|
|
94
94
|
/>
|
|
95
95
|
</GridItem>
|
|
96
96
|
<GridItem>
|
|
97
|
-
<DescriptionList isHorizontal>
|
|
97
|
+
<DescriptionList isHorizontal horizontalTermWidthModifier={{ default: '17ch' }}>
|
|
98
98
|
<DescriptionListGroup>
|
|
99
99
|
<DescriptionListTerm>{t('ai:OpenShift version')}</DescriptionListTerm>
|
|
100
100
|
<DescriptionListDescription>
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Alert, Button, Spinner, Stack, StackItem } from '@patternfly/react-core';
|
|
3
2
|
import {
|
|
3
|
+
Alert,
|
|
4
|
+
Button,
|
|
4
5
|
Modal,
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
ModalBody,
|
|
7
|
+
ModalFooter,
|
|
8
|
+
ModalHeader,
|
|
7
9
|
ModalVariant,
|
|
8
|
-
|
|
10
|
+
Spinner,
|
|
11
|
+
Stack,
|
|
12
|
+
StackItem,
|
|
13
|
+
} from '@patternfly/react-core';
|
|
9
14
|
import { NodePoolK8sResource } from '../types';
|
|
10
15
|
import { getErrorMessage } from '../../../../common/utils';
|
|
11
16
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
@@ -23,14 +28,12 @@ const RemoveNodePoolModal = ({ onClose, onRemove, nodePool }: RemoveNodePoolModa
|
|
|
23
28
|
return (
|
|
24
29
|
<Modal
|
|
25
30
|
aria-label="remove node pool dialog"
|
|
26
|
-
title={t('ai:Remove nodepool')}
|
|
27
31
|
isOpen
|
|
28
32
|
onClose={onClose}
|
|
29
33
|
variant={ModalVariant.small}
|
|
30
|
-
hasNoBodyWrapper
|
|
31
|
-
titleIconVariant="warning"
|
|
32
34
|
>
|
|
33
|
-
<
|
|
35
|
+
<ModalHeader titleIconVariant="warning" title={t('ai:Remove nodepool')} />
|
|
36
|
+
<ModalBody>
|
|
34
37
|
<Stack hasGutter>
|
|
35
38
|
<StackItem>
|
|
36
39
|
{t(
|
|
@@ -44,8 +47,8 @@ const RemoveNodePoolModal = ({ onClose, onRemove, nodePool }: RemoveNodePoolModa
|
|
|
44
47
|
</StackItem>
|
|
45
48
|
)}
|
|
46
49
|
</Stack>
|
|
47
|
-
</
|
|
48
|
-
<
|
|
50
|
+
</ModalBody>
|
|
51
|
+
<ModalFooter>
|
|
49
52
|
<Button
|
|
50
53
|
onClick={() => {
|
|
51
54
|
const remove = async () => {
|
|
@@ -71,7 +74,7 @@ const RemoveNodePoolModal = ({ onClose, onRemove, nodePool }: RemoveNodePoolModa
|
|
|
71
74
|
<Button variant="link" onClick={onClose}>
|
|
72
75
|
{t('ai:Cancel')}
|
|
73
76
|
</Button>
|
|
74
|
-
</
|
|
77
|
+
</ModalFooter>
|
|
75
78
|
</Modal>
|
|
76
79
|
);
|
|
77
80
|
};
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
ContentVariants,
|
|
13
13
|
Title,
|
|
14
14
|
TitleSizes,
|
|
15
|
+
Label,
|
|
15
16
|
} from '@patternfly/react-core';
|
|
16
17
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
17
18
|
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
@@ -19,7 +20,7 @@ import { PencilAltIcon } from '@patternfly/react-icons/dist/js/icons/pencil-alt-
|
|
|
19
20
|
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
20
21
|
import { t_global_icon_color_status_warning_default as warningColor } from '@patternfly/react-tokens/dist/js/t_global_icon_color_status_warning_default';
|
|
21
22
|
|
|
22
|
-
import { architectureData
|
|
23
|
+
import { architectureData } from '../../../common';
|
|
23
24
|
import { InfraEnvK8sResource, SecretK8sResource } from '../../types';
|
|
24
25
|
import { AGENT_LOCATION_LABEL_KEY } from '../common';
|
|
25
26
|
import EditPullSecretModal, { EditPullSecretModalProps } from '../modals/EditPullSecretModal';
|
|
@@ -173,7 +174,9 @@ const EnvironmentDetails: React.FC<EnvironmentDetailsProps> = ({
|
|
|
173
174
|
<DescriptionListTerm>{t('ai:Labels')}</DescriptionListTerm>
|
|
174
175
|
<DescriptionListDescription>
|
|
175
176
|
{Object.keys(infraEnv.metadata?.labels || {}).map((k) => (
|
|
176
|
-
<
|
|
177
|
+
<Label key={k}>
|
|
178
|
+
{k}={infraEnv.metadata?.labels?.[k] || ''}
|
|
179
|
+
</Label>
|
|
177
180
|
))}
|
|
178
181
|
</DescriptionListDescription>
|
|
179
182
|
</DescriptionListGroup>
|
|
@@ -209,7 +212,7 @@ const EnvironmentDetails: React.FC<EnvironmentDetailsProps> = ({
|
|
|
209
212
|
<DescriptionListDescription>
|
|
210
213
|
{infraEnv.spec?.proxy?.noProxy
|
|
211
214
|
?.split(',')
|
|
212
|
-
.map((k) => <
|
|
215
|
+
.map((k) => <Label key={k}>{k}</Label>) || <NotConfigured />}
|
|
213
216
|
</DescriptionListDescription>
|
|
214
217
|
</>
|
|
215
218
|
)}
|