@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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.richHostnameValidationSchema = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Yup = tslib_1.__importStar(require("yup"));
|
|
6
|
+
const constants_1 = require("./constants");
|
|
7
|
+
const regexes_1 = require("./regexes");
|
|
8
|
+
const richHostnameValidationSchema = (t, usedNames, origName) => {
|
|
9
|
+
const hostnameValidationMessagesList = (0, constants_1.hostnameValidationMessages)(t);
|
|
10
|
+
return Yup.string()
|
|
11
|
+
.min(1, hostnameValidationMessagesList.INVALID_LENGTH)
|
|
12
|
+
.max(63, hostnameValidationMessagesList.INVALID_LENGTH)
|
|
13
|
+
.test(hostnameValidationMessagesList.INVALID_START_END, hostnameValidationMessagesList.INVALID_START_END, (value) => {
|
|
14
|
+
const trimmed = value === null || value === void 0 ? void 0 : value.trim();
|
|
15
|
+
if (!trimmed) {
|
|
16
|
+
return true;
|
|
17
|
+
}
|
|
18
|
+
return (!!trimmed[0].match(regexes_1.NAME_START_END_REGEX) &&
|
|
19
|
+
(trimmed[trimmed.length - 1]
|
|
20
|
+
? !!trimmed[trimmed.length - 1].match(regexes_1.NAME_START_END_REGEX)
|
|
21
|
+
: true));
|
|
22
|
+
})
|
|
23
|
+
.matches(regexes_1.NAME_CHARS_REGEX, {
|
|
24
|
+
message: hostnameValidationMessagesList.INVALID_VALUE,
|
|
25
|
+
excludeEmptyString: true,
|
|
26
|
+
})
|
|
27
|
+
.test(hostnameValidationMessagesList.NOT_UNIQUE, hostnameValidationMessagesList.NOT_UNIQUE, (value) => {
|
|
28
|
+
if (!value || value === origName) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
return !usedNames.find((n) => n === value);
|
|
32
|
+
})
|
|
33
|
+
.notOneOf(constants_1.FORBIDDEN_HOSTNAMES, hostnameValidationMessagesList.LOCALHOST_ERR);
|
|
34
|
+
};
|
|
35
|
+
exports.richHostnameValidationSchema = richHostnameValidationSchema;
|
|
36
|
+
//# sourceMappingURL=hostnameValidation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hostnameValidation.js","sourceRoot":"","sources":["../../../../lib/common/validationSchemas/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,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC;IAC7C,CAAC,CACF;SACA,QAAQ,CAAC,+BAAmB,EAAE,8BAA8B,CAAC,aAAa,CAAC,CAAC;AACjF,CAAC,CAAC;AAxCW,QAAA,4BAA4B,gCAwCvC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LOCATION_CHARS_REGEX = exports.ALPHANUMERIC_REGEX = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
tslib_1.__exportStar(require("./addressValidation"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./clusterDetailsValidation"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./hostnameValidation"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./networkingValidation"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ntpValidation"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./proxyValidation"), exports);
|
|
11
|
+
tslib_1.__exportStar(require("./pullSecretValidation"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./sshValidation"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./constants"), exports);
|
|
14
|
+
var regexes_1 = require("./regexes");
|
|
15
|
+
Object.defineProperty(exports, "ALPHANUMERIC_REGEX", { enumerable: true, get: function () { return regexes_1.ALPHANUMERIC_REGEX; } });
|
|
16
|
+
Object.defineProperty(exports, "LOCATION_CHARS_REGEX", { enumerable: true, get: function () { return regexes_1.LOCATION_CHARS_REGEX; } });
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/common/validationSchemas/index.tsx"],"names":[],"mappings":";;;;AAAA,8DAAoC;AACpC,qEAA2C;AAC3C,+DAAqC;AACrC,iEAAuC;AACvC,0DAAgC;AAChC,4DAAkC;AAClC,iEAAuC;AACvC,0DAAgC;AAEhC,sDAA4B;AAC5B,qCAAqE;AAA5D,6GAAA,kBAAkB,OAAA;AAAE,+GAAA,oBAAoB,OAAA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IPv4ValidationSchema = exports.dualStackValidationSchema = exports.serviceNetworkValidationSchema = exports.clusterNetworksValidationSchema = exports.machineNetworksValidationSchema = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Yup = tslib_1.__importStar(require("yup"));
|
|
6
|
+
const is_cidr_1 = tslib_1.__importDefault(require("is-cidr"));
|
|
7
|
+
const addressValidation_1 = require("./addressValidation");
|
|
8
|
+
const utils_1 = require("../utils");
|
|
9
|
+
const utils_2 = require("../components/ui/formik/utils");
|
|
10
|
+
exports.machineNetworksValidationSchema = Yup.array().of(Yup.object({ cidr: addressValidation_1.hostSubnetValidationSchema, clusterId: Yup.string() }));
|
|
11
|
+
const clusterNetworksValidationSchema = (t) => Yup.array().of(Yup.lazy((values) => Yup.object({
|
|
12
|
+
cidr: (0, addressValidation_1.ipBlockValidationSchema)(undefined /* So far used in OCM only and so validated by backend */, t),
|
|
13
|
+
hostPrefix: (0, addressValidation_1.hostPrefixValidationSchema)(values.cidr, t),
|
|
14
|
+
clusterId: Yup.string(),
|
|
15
|
+
})));
|
|
16
|
+
exports.clusterNetworksValidationSchema = clusterNetworksValidationSchema;
|
|
17
|
+
const serviceNetworkValidationSchema = (t) => Yup.array().of(Yup.object({
|
|
18
|
+
cidr: (0, addressValidation_1.ipBlockValidationSchema)(undefined /* So far used in OCM only and so validated by backend */, t),
|
|
19
|
+
clusterId: Yup.string(),
|
|
20
|
+
}));
|
|
21
|
+
exports.serviceNetworkValidationSchema = serviceNetworkValidationSchema;
|
|
22
|
+
const dualStackValidationSchema = (field, t, openshiftVersion) => Yup.array()
|
|
23
|
+
.max(2, t('ai:Maximum number of {{field}} subnets in dual stack is 2.', { field }))
|
|
24
|
+
.test('dual-stack-ipv4', openshiftVersion && (0, utils_1.isMajorMinorVersionEqualOrGreater)(openshiftVersion, '4.12')
|
|
25
|
+
? t('ai:First network has to be a valid IPv4 or IPv6 subnet.')
|
|
26
|
+
: t('ai:First network has to be IPv4 subnet.'), (values) => {
|
|
27
|
+
// For OCP versions > 4.11, allow IPv6 as primary network
|
|
28
|
+
if (openshiftVersion && (0, utils_1.isMajorMinorVersionEqualOrGreater)(openshiftVersion, '4.12')) {
|
|
29
|
+
return !!(values === null || values === void 0 ? void 0 : values[0].cidr) && (is_cidr_1.default.v4(values[0].cidr) || is_cidr_1.default.v6(values[0].cidr));
|
|
30
|
+
}
|
|
31
|
+
// For older versions, require IPv4 as primary network
|
|
32
|
+
return !!(values === null || values === void 0 ? void 0 : values[0].cidr) && is_cidr_1.default.v4(values[0].cidr);
|
|
33
|
+
})
|
|
34
|
+
.test('dual-stack-unique-cidrs', t('ai:Provided {{field}} subnets must be unique.', { field }), (values) => {
|
|
35
|
+
var _a, _b;
|
|
36
|
+
if (!values || values.length < 2) {
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
const first = ((_a = values[0]) === null || _a === void 0 ? void 0 : _a.cidr) || '';
|
|
40
|
+
const second = ((_b = values[1]) === null || _b === void 0 ? void 0 : _b.cidr) || '';
|
|
41
|
+
if (!first || !second) {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
const firstIsCidr = is_cidr_1.default.v4(first) || is_cidr_1.default.v6(first);
|
|
45
|
+
const secondIsCidr = is_cidr_1.default.v4(second) || is_cidr_1.default.v6(second);
|
|
46
|
+
if (!firstIsCidr || !secondIsCidr) {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
return first !== second;
|
|
50
|
+
})
|
|
51
|
+
.test('dual-stack-opposite-families', t('ai:When two {{field}} values are provided, one must be IPv4 and the other IPv6.', {
|
|
52
|
+
field,
|
|
53
|
+
}), (values) => {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
if (!values || values.length < 2) {
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
const a = ((_a = values[0]) === null || _a === void 0 ? void 0 : _a.cidr) || '';
|
|
59
|
+
const b = ((_b = values[1]) === null || _b === void 0 ? void 0 : _b.cidr) || '';
|
|
60
|
+
if (!a || !b) {
|
|
61
|
+
return true;
|
|
62
|
+
}
|
|
63
|
+
const a4 = is_cidr_1.default.v4(a);
|
|
64
|
+
const a6 = is_cidr_1.default.v6(a);
|
|
65
|
+
const b4 = is_cidr_1.default.v4(b);
|
|
66
|
+
const b6 = is_cidr_1.default.v6(b);
|
|
67
|
+
if (!((a4 || a6) && (b4 || b6))) {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
return (a4 && b6) || (a6 && b4);
|
|
71
|
+
});
|
|
72
|
+
exports.dualStackValidationSchema = dualStackValidationSchema;
|
|
73
|
+
exports.IPv4ValidationSchema = Yup.array().test('single-stack', `All network subnets must be IPv4.`, (values) => (0, utils_2.allSubnetsIPv4)(values));
|
|
74
|
+
//# sourceMappingURL=networkingValidation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networkingValidation.js","sourceRoot":"","sources":["../../../../lib/common/validationSchemas/networkingValidation.tsx"],"names":[],"mappings":";;;;AAAA,iDAA2B;AAC3B,8DAA6B;AAQ7B,2DAI6B;AAC7B,oCAA6D;AAC7D,yDAA+D;AAElD,QAAA,+BAA+B,GAAG,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,CAC3D,GAAG,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,8CAA0B,EAAE,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAC1E,CAAC;AAEK,MAAM,+BAA+B,GAAG,CAAC,CAAY,EAAE,EAAE,CAC9D,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,CACZ,G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void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Yup = tslib_1.__importStar(require("yup"));
|
|
6
|
+
const utils_1 = require("../components/ui/formik/utils");
|
|
7
|
+
const utils_2 = require("./utils");
|
|
8
|
+
const ntpSourceValidationSchema = (t) => Yup.string()
|
|
9
|
+
.test('ntp-source-validation', t('ai:Provide a comma separated list of valid DNS names or IP addresses.'), (value) => {
|
|
10
|
+
if (!value || value === '') {
|
|
11
|
+
return true;
|
|
12
|
+
}
|
|
13
|
+
return (0, utils_1.trimCommaSeparatedList)(value)
|
|
14
|
+
.split(',')
|
|
15
|
+
.every((v) => (0, utils_2.isIPorDN)(v));
|
|
16
|
+
})
|
|
17
|
+
.test('ntp-source-validation-unique', t('ai:DNS names and IP addresses must be unique.'), (value) => {
|
|
18
|
+
if (!value || value === '') {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
const arr = (0, utils_1.trimCommaSeparatedList)(value).split(',');
|
|
22
|
+
return arr.length === new Set(arr).size;
|
|
23
|
+
});
|
|
24
|
+
exports.ntpSourceValidationSchema = ntpSourceValidationSchema;
|
|
25
|
+
//# sourceMappingURL=ntpValidation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ntpValidation.js","sourceRoot":"","sources":["../../../../lib/common/validationSchemas/ntpValidation.tsx"],"names":[],"mappings":";;;;AAAA,iDAA2B;AAC3B,yDAAuE;AACvE,mCAAmC;AAG5B,MAAM,yBAAyB,GAAG,CAAC,CAAY,EAAE,EAAE,CACxD,GAAG,CAAC,MAAM,EAAE;KACT,IAAI,CACH,uBAAuB,EACvB,CAAC,CAAC,uEAAuE,CAAC,EAC1E,CAAC,KAAc,EAAE,EAAE;IACjB,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,EAAE;QAC1B,OAAO,IAAI,CAAC;KACb;IACD,OAAO,IAAA,8BAAsB,EAAC,KAAK,CAAC;SACjC,KAAK,CAAC,GAAG,CAAC;SACV,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAA,gBAAQ,EAAC,CAAC,CAAC,CAAC,CAAC;AAC/B,CAAC,CACF;KACA,IAAI,CACH,8BAA8B,EAC9B,CAAC,CAAC,+CAA+C,CAAC,EAClD,CAAC,KAAc,EAAE,EAAE;IACjB,IAAI,CAAC,KAAK,IAAI,KAAK,KAAK,EAAE,EAAE;QAC1B,OAAO,IAAI,CAAC;KACb;IACD,MAAM,GAAG,GAAG,IAAA,8BAAsB,EAAC,KAAK,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACrD,OAAO,GAAG,CAAC,MAAM,KAAK,IAAI,GAAG,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC;AAC1C,CAAC,CACF,CAAC;AAxBO,QAAA,yBAAyB,6BAwBhC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.noProxyValidationSchema = exports.httpProxyValidationSchema = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Yup = tslib_1.__importStar(require("yup"));
|
|
6
|
+
const utils_1 = require("../components/ui/formik/utils");
|
|
7
|
+
const regexes_1 = require("./regexes");
|
|
8
|
+
const utils_2 = require("./utils");
|
|
9
|
+
const httpProxyValidationSchema = ({ values, pairValueName, allowEmpty, t, }) => {
|
|
10
|
+
const validation = Yup.string().test('http-proxy-validation', t('ai:Provide a valid HTTP URL.'), (value) => {
|
|
11
|
+
if (!value) {
|
|
12
|
+
return true;
|
|
13
|
+
}
|
|
14
|
+
if (!value.startsWith('http://')) {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
new URL(value);
|
|
19
|
+
}
|
|
20
|
+
catch (_a) {
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
return true;
|
|
24
|
+
});
|
|
25
|
+
if (allowEmpty) {
|
|
26
|
+
return validation;
|
|
27
|
+
}
|
|
28
|
+
return validation.test('http-proxy-no-empty-validation', t('ai:At least one of the HTTP or HTTPS proxy URLs is required.'), (value) => !values.enableProxy || !!value || !!values[pairValueName]);
|
|
29
|
+
};
|
|
30
|
+
exports.httpProxyValidationSchema = httpProxyValidationSchema;
|
|
31
|
+
const noProxyValidationSchema = (t) => Yup.string().test('no-proxy-validation', t('ai:Provide a comma separated list of valid DNS names or IP addresses.'), (value) => {
|
|
32
|
+
if (!value || value === '*') {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
// https://docs.openshift.com/container-platform/4.5/installing/installing_bare_metal/installing-restricted-networks-bare-metal.html#installation-configure-proxy_installing-restricted-networks-bare-metal
|
|
36
|
+
// A comma-separated list of destination domain names, domains, IP addresses, or other network CIDRs to exclude proxying.
|
|
37
|
+
// Preface a domain with . to match subdomains only. For example, .y.com matches x.y.com, but not y.com.
|
|
38
|
+
// Use * to bypass proxy for all destinations.
|
|
39
|
+
const noProxyList = (0, utils_1.trimCommaSeparatedList)(value).split(',');
|
|
40
|
+
return noProxyList.every((p) => (0, utils_2.isIPorDN)(p, regexes_1.PROXY_DNS_REGEX));
|
|
41
|
+
});
|
|
42
|
+
exports.noProxyValidationSchema = noProxyValidationSchema;
|
|
43
|
+
//# sourceMappingURL=proxyValidation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxyValidation.js","sourceRoot":"","sources":["../../../../lib/common/validationSchemas/proxyValidation.tsx"],"names":[],"mappings":";;;;AAAA,iDAA2B;AAG3B,yDAAuE;AACvE,uCAA4C;AAC5C,mCAAmC;AAE5B,MAAM,yBAAyB,GAAG,CAAC,EACxC,MAAM,EACN,aAAa,EACb,UAAU,EACV,CAAC,GAMF,EAAE,EAAE;IACH,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CAClC,uBAAuB,EACvB,CAAC,CAAC,8BAA8B,CAAC,EACjC,CAAC,KAAc,E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
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pullSecretValidationSchema = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Yup = tslib_1.__importStar(require("yup"));
|
|
6
|
+
const pullSecretValidationSchema = (t) => Yup.string().test('is-well-formed-json', t("ai:Invalid pull secret format. You must use your Red Hat account's pull secret."), (value) => {
|
|
7
|
+
const isValid = true;
|
|
8
|
+
if (!value)
|
|
9
|
+
return isValid;
|
|
10
|
+
try {
|
|
11
|
+
const pullSecret = JSON.parse(value);
|
|
12
|
+
return (pullSecret.constructor.name === 'Object' &&
|
|
13
|
+
!!(pullSecret === null || pullSecret === void 0 ? void 0 : pullSecret.auths) &&
|
|
14
|
+
pullSecret.auths.constructor.name === 'Object');
|
|
15
|
+
}
|
|
16
|
+
catch (_a) {
|
|
17
|
+
return !isValid;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
exports.pullSecretValidationSchema = pullSecretValidationSchema;
|
|
21
|
+
//# sourceMappingURL=pullSecretValidation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pullSecretValidation.js","sourceRoot":"","sources":["../../../../lib/common/validationSchemas/pullSecretValidation.tsx"],"names":[],"mappings":";;;;AAAA,iDAA2B;AAGpB,MAAM,0BAA0B,GAAG,CAAC,CAAY,EAAE,EAAE,CACzD,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CACf,qBAAqB,EACrB,CAAC,CAAC,iFAAiF,CAAC,EACpF,CAAC,KAAc,EAAE,EAAE;IACjB,MAAM,OAAO,GAAG,IAAI,CAAC;IACrB,IAAI,CAAC,KAAK;QAAE,OAAO,OAAO,CAAC;IAC3B,IAAI;QACF,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAElC,CAAC;QACF,OAAO,CACL,UAAU,CAAC,WAAW,CAAC,IAAI,KAAK,QAAQ;YACxC,CAAC,CAAC,CAAA,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,KAAK,CAAA;YACnB,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,KAAK,QAAQ,CAC/C,CAAC;KACH;IAAC,WAAM;QACN,OAAO,CAAC,OAAO,CAAC;KACjB;AACH,CAAC,CACF,CAAC;AApBS,QAAA,0BAA0B,8BAoBnC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LOCATION_CHARS_REGEX = exports.MAC_REGEX = exports.IP_V6_ZERO = exports.IP_V4_ZERO = exports.PROXY_DNS_REGEX = exports.SSH_PUBLIC_KEY_REGEX = exports.HOST_NAME_REGEX = exports.NAME_CHARS_REGEX = exports.NAME_START_END_REGEX = exports.DNS_NAME_REGEX = exports.CLUSTER_NAME_VALID_CHARS_REGEX = exports.CLUSTER_NAME_START_END_REGEX = exports.ALPHANUMERIC_REGEX = void 0;
|
|
4
|
+
exports.ALPHANUMERIC_REGEX = /^[a-zA-Z0-9]+$/;
|
|
5
|
+
exports.CLUSTER_NAME_START_END_REGEX = /^[a-z0-9](.*[a-z0-9])?$/;
|
|
6
|
+
exports.CLUSTER_NAME_VALID_CHARS_REGEX = /^[a-z0-9-]*$/;
|
|
7
|
+
exports.DNS_NAME_REGEX = /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/;
|
|
8
|
+
exports.NAME_START_END_REGEX = /^[a-z0-9](.*[a-z0-9])?$/;
|
|
9
|
+
exports.NAME_CHARS_REGEX = /^[a-z0-9-.]*$/;
|
|
10
|
+
exports.HOST_NAME_REGEX = /^[^.]{1,63}(?:[.][^.]{1,63})*$/;
|
|
11
|
+
exports.SSH_PUBLIC_KEY_REGEX = /^(ssh-rsa AAAAB3NzaC1yc2|ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNT|ecdsa-sha2-nistp384 AAAAE2VjZHNhLXNoYTItbmlzdHAzODQAAAAIbmlzdHAzOD|ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1Mj|ssh-ed25519 AAAAC3NzaC1lZDI1NTE5|ssh-dss AAAAB3NzaC1kc3)[0-9A-Za-z+/]+[=]{0,3}( .*)?$/;
|
|
12
|
+
exports.PROXY_DNS_REGEX = /(^\.?([a-zA-Z0-9_]{1}[a-zA-Z0-9_-]{0,62}){1}(\.[a-zA-Z0-9_]{1}[a-zA-Z0-9_-]{0,62})*$)/;
|
|
13
|
+
exports.IP_V4_ZERO = '0.0.0.0';
|
|
14
|
+
exports.IP_V6_ZERO = '0000:0000:0000:0000:0000:0000:0000:0000';
|
|
15
|
+
exports.MAC_REGEX = /^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$/;
|
|
16
|
+
exports.LOCATION_CHARS_REGEX = /^[a-zA-Z0-9-._]*$/;
|
|
17
|
+
//# sourceMappingURL=regexes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regexes.js","sourceRoot":"","sources":["../../../../lib/common/validationSchemas/regexes.tsx"],"names":[],"mappings":";;;AAAa,QAAA,kBAAkB,GAAG,gBAAgB,CAAC;AAEtC,QAAA,4BAA4B,GAAG,yBAAyB,CAAC;AACzD,QAAA,8BAA8B,GAAG,cAAc,CAAC;AAEhD,QAAA,cAAc,GAAG,wCAAwC,CAAC;AAC1D,QAAA,oBAAoB,GAAG,yBAAyB,CAAC;AACjD,QAAA,gBAAgB,GAAG,eAAe,CAAC;AAEnC,QAAA,eAAe,GAAG,gCAAgC,CAAC;AACnD,QAAA,oBAAoB,GAC/B,ySAAyS,CAAC;AAE/R,QAAA,eAAe,GAC1B,uFAAuF,CAAC;AAE7E,QAAA,UAAU,GAAG,SAAS,CAAC;AACvB,QAAA,UAAU,GAAG,yCAAyC,CAAC;AAEvD,QAAA,SAAS,GAAG,0CAA0C,CAAC;AAEvD,QAAA,oBAAoB,GAAG,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sshPublicKeyListValidationSchema = exports.sshPublicKeyValidationSchema = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Yup = tslib_1.__importStar(require("yup"));
|
|
6
|
+
const utils_1 = require("../components/ui/formik/utils");
|
|
7
|
+
const regexes_1 = require("./regexes");
|
|
8
|
+
const sshPublicKeyValidationSchema = (t) => Yup.string().test('ssh-public-key', t('ai:SSH public key must consist of "[TYPE] key [[EMAIL]]", supported types are: ssh-rsa, ssh-ed25519, ecdsa-[VARIANT]. A single key can be provided only.'), (value) => {
|
|
9
|
+
if (!value) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
return !!(0, utils_1.trimSshPublicKey)(value).match(regexes_1.SSH_PUBLIC_KEY_REGEX);
|
|
13
|
+
});
|
|
14
|
+
exports.sshPublicKeyValidationSchema = sshPublicKeyValidationSchema;
|
|
15
|
+
const sshPublicKeyListValidationSchema = (t) => Yup.string()
|
|
16
|
+
.test('ssh-public-keys', t('ai:SSH public key must consist of "[TYPE] key [[EMAIL]]", supported types are: ssh-rsa, ssh-ed25519, ecdsa-[VARIANT].'), (value) => {
|
|
17
|
+
if (!value) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
return ((0, utils_1.trimSshPublicKey)(value)
|
|
21
|
+
.split('\n')
|
|
22
|
+
.find((line) => !line.match(regexes_1.SSH_PUBLIC_KEY_REGEX)) === undefined);
|
|
23
|
+
})
|
|
24
|
+
.test('ssh-public-keys-unique', t('ai:SSH public keys must be unique.'), (value) => {
|
|
25
|
+
if (!value) {
|
|
26
|
+
return true;
|
|
27
|
+
}
|
|
28
|
+
const keyList = (0, utils_1.trimSshPublicKey)(value).split('\n');
|
|
29
|
+
return new Set(keyList).size === keyList.length;
|
|
30
|
+
});
|
|
31
|
+
exports.sshPublicKeyListValidationSchema = sshPublicKeyListValidationSchema;
|
|
32
|
+
//# sourceMappingURL=sshValidation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sshValidation.js","sourceRoot":"","sources":["../../../../lib/common/validationSchemas/sshValidation.tsx"],"names":[],"mappings":";;;;AAAA,iDAA2B;AAE3B,yDAAiE;AACjE,uCAAiD;AAE1C,MAAM,4BAA4B,GAAG,CAAC,CAAY,EAAE,EAAE,CAC3D,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CACf,gBAAgB,EAChB,CAAC,CACC,0JAA0J,CAC3J,EACD,CAAC,KAAc,EAAE,EAAE;IACjB,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CAAC,CAAC,IAAA,wBAAgB,EAAC,KAAK,CAAC,CAAC,KAAK,CAAC,8BAAoB,CAAC,CAAC;AAC/D,CAAC,CACF,CAAC;AAbS,QAAA,4BAA4B,gCAarC;AAEG,MAAM,gCAAgC,GAAG,CAAC,CAAY,EAAE,EAAE,CAC/D,GAAG,CAAC,MAAM,EAAE;KACT,IAAI,CACH,iBAAiB,EACjB,CAAC,CACC,uHAAuH,CACxH,EACD,CAAC,KAAc,EAAE,EAAE;IACjB,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,IAAA,wBAAgB,EAAC,KAAK,CAAC;SACpB,KAAK,CAAC,IAAI,CAAC;SACX,IAAI,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,8BAAoB,CAAC,CAAC,KAAK,SAAS,CAC3E,CAAC;AACJ,CAAC,CACF;KACA,IAAI,CAAC,wBAAwB,EAAE,CAAC,CAAC,oCAAoC,CAAC,EAAE,CAAC,KAAc,EAAE,EAAE;IAC1F,IAAI,CAAC,KAAK,EAAE;QACV,OAAO,IAAI,CAAC;KACb;IACD,MAAM,OAAO,GAAG,IAAA,wBAAgB,EAAC,KAAK,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IACpD,OAAO,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC;AAClD,CAAC,CAAC,CAAC;AAzBM,QAAA,gCAAgC,oCAyBtC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getArrayIndexFromPath = exports.alwaysRequired = exports.isIPv6Address = exports.isIPv4Address = exports.isIPorDN = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Yup = tslib_1.__importStar(require("yup"));
|
|
6
|
+
const ip_address_1 = require("ip-address");
|
|
7
|
+
const regexes_1 = require("./regexes");
|
|
8
|
+
const isIPorDN = (value, dnsRegex = regexes_1.DNS_NAME_REGEX) => {
|
|
9
|
+
if (value.match(dnsRegex)) {
|
|
10
|
+
return true;
|
|
11
|
+
}
|
|
12
|
+
else if (value) {
|
|
13
|
+
return ip_address_1.Address4.isValid(value) || ip_address_1.Address6.isValid(value);
|
|
14
|
+
}
|
|
15
|
+
else {
|
|
16
|
+
return false;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
exports.isIPorDN = isIPorDN;
|
|
20
|
+
// Helpers to classify literal IPs more robustly
|
|
21
|
+
const isIPv4Address = (ip) => {
|
|
22
|
+
if (!ip)
|
|
23
|
+
return false;
|
|
24
|
+
return ip.includes('.') && ip_address_1.Address4.isValid(ip);
|
|
25
|
+
};
|
|
26
|
+
exports.isIPv4Address = isIPv4Address;
|
|
27
|
+
const isIPv6Address = (ip) => {
|
|
28
|
+
if (!ip)
|
|
29
|
+
return false;
|
|
30
|
+
return ip.includes(':') && ip_address_1.Address6.isValid(ip);
|
|
31
|
+
};
|
|
32
|
+
exports.isIPv6Address = isIPv6Address;
|
|
33
|
+
const alwaysRequired = (message) => Yup.string().test('always-required', message || 'The value is required.', (value) => !!value);
|
|
34
|
+
exports.alwaysRequired = alwaysRequired;
|
|
35
|
+
const getArrayIndexFromPath = (path) => {
|
|
36
|
+
const match = path.match(/\[(\d+)\][^\[]*$/); // Prefer the last [...] occurrence for nested array paths like "foo[0].bar[1].ip"
|
|
37
|
+
return match ? parseInt(match[1], 10) : NaN;
|
|
38
|
+
};
|
|
39
|
+
exports.getArrayIndexFromPath = getArrayIndexFromPath;
|
|
40
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../lib/common/validationSchemas/utils.tsx"],"names":[],"mappings":";;;;AAAA,iDAA2B;AAC3B,2CAAgD;AAChD,uCAA2C;AAEpC,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAE,QAAQ,GAAG,wBAAc,EAAE,EAAE;IACpE,IAAK,KAAgB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;QACrC,OAAO,IAAI,CAAC;KACb;SAAM,IAAI,KAAK,EAAE;QAChB,OAAO,qBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,qBAAQ,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;KAC3D;SAAM;QACL,OAAO,KAAK,CAAC;KACd;AACH,CAAC,CAAC;AARW,QAAA,QAAQ,YAQnB;AAEF,gDAAgD;AACzC,MAAM,aAAa,GAAG,CAAC,EAAW,EAAE,EAAE;IAC3C,IAAI,CAAC,EAAE;QAAE,OAAO,KAAK,CAAC;IACtB,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,qBAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAHW,QAAA,aAAa,iBAGxB;AAEK,MAAM,aAAa,GAAG,CAAC,EAAW,EAAE,EAAE;IAC3C,IAAI,CAAC,EAAE;QAAE,OAAO,KAAK,CAAC;IACtB,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,qBAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;AAClD,CAAC,CAAC;AAHW,QAAA,aAAa,iBAGxB;AAEK,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAE,EAAE,CACjD,GAAG,CAAC,MAAM,EAAE,CAAC,IAAI,CACf,iBAAiB,EACjB,OAAO,IAAI,wBAAwB,EACnC,CAAC,KAAc,EAAW,EAAE,CAAC,CAAC,CAAC,KAAK,CACrC,CAAC;AALS,QAAA,cAAc,kBAKvB;AAEG,MAAM,qBAAqB,GAAG,CAAC,IAAY,EAAU,EAAE;IAC5D,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC,CAAC,kFAAkF;IAChI,OAAO,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AAC9C,CAAC,CAAC;AAHW,QAAA,qBAAqB,yBAGhC"}
|
|
@@ -17,7 +17,7 @@ const BaseDnsHelperText = ({ name, baseDnsDomain, }) => (react_1.default.createE
|
|
|
17
17
|
react_1.default.createElement(react_core_1.HelperTextItem, { "data-testid": `input-basednshelpertext-${fieldId}-helper-text` },
|
|
18
18
|
"Enter the name of your domain [domainname] or [domainname.com]. This cannot be changed after cluster installed. All DNS records must include the cluster name and be subdomains of the base you enter. The full cluster address will be: ",
|
|
19
19
|
react_1.default.createElement("br", null),
|
|
20
|
-
react_1.default.createElement("
|
|
20
|
+
react_1.default.createElement("span", { className: "pf-v6-u-font-weight-bold" },
|
|
21
21
|
name || '[Cluster Name]',
|
|
22
22
|
".",
|
|
23
23
|
baseDnsDomain || '[domainname.com]')))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OcmBaseDomainField.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAUgC;AAChC,mCAAoD;AACpD,4CAAmE;AACnE,uDAAsE;AAEtE,iFAAgF;AAEhF,MAAM,UAAU,GAAG,eAAe,CAAC;AACnC,MAAM,WAAW,GAAG,aAAa,CAAC;AAClC,MAAM,OAAO,GAAG,IAAA,mBAAU,EAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAEhD,MAAM,qBAAqB,GAAG,CAAC,MAAqB,EAAE,EAAE,CACtD,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,KAAI,EAAE,KAAK,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,KAAI,EAAE,GAAG,CAAC;AAEjD,MAAM,iBAAiB,GAAG,CAAC,EAChC,IAAI,EACJ,aAAa,GAId,EAAE,EAAE,CAAC,CACJ,8BAAC,2BAAc;IACb,8BAAC,uBAAU,IAAC,EAAE,EAAE,OAAO;QACrB,8BAAC,2BAAc,mBAAc,2BAA2B,OAAO,cAAc;;YAGzB,yCAAM;YACxD;
|
|
1
|
+
{"version":3,"file":"OcmBaseDomainField.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterConfiguration/OcmBaseDomainField.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,uDAUgC;AAChC,mCAAoD;AACpD,4CAAmE;AACnE,uDAAsE;AAEtE,iFAAgF;AAEhF,MAAM,UAAU,GAAG,eAAe,CAAC;AACnC,MAAM,WAAW,GAAG,aAAa,CAAC;AAClC,MAAM,OAAO,GAAG,IAAA,mBAAU,EAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAEhD,MAAM,qBAAqB,GAAG,CAAC,MAAqB,EAAE,EAAE,CACtD,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,MAAM,KAAI,EAAE,KAAK,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,QAAQ,KAAI,EAAE,GAAG,CAAC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EAAE,EAAE,iBAAiB,OAAO,EAAE,EAC9B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,UAAU,EAChB,KAAK,EAAE,WAAW,EAClB,UAAU;YAET,mBAAmB,CAAC,CAAC,CAAC,CACrB,8BAAC,qBAAQ,IACP,MAAM,EAAE,cAAc,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,YAAY,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,IAEnC,aAAa,CACL,CACZ,CAAC,CAAC,CAAC,CACF,8BAAC,6BAAa,IACZ,IAAI,EAAE,UAAU,EAChB,WAAW,EAAC,eAAe,EAC3B,UAAU,EAAE,mBAAmB,EAC/B,UAAU,SACV,CACH;YACD,8BAAC,yBAAiB,IAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,aAAa,GAAI,CACrD,CACX,CACJ,CAAC;AACJ,CAAC,CAAC;AAxFW,QAAA,kBAAkB,sBAwF7B"}
|
|
@@ -12,11 +12,12 @@ const UploadSSH_1 = tslib_1.__importDefault(require("../../../common/components/
|
|
|
12
12
|
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
13
13
|
const DiscoveryImageTypeDropdown_1 = tslib_1.__importStar(require("./DiscoveryImageTypeDropdown"));
|
|
14
14
|
const CertificateFields_1 = tslib_1.__importDefault(require("../../../common/components/clusterConfiguration/CertificateFields"));
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
15
|
+
const common_1 = require("../../../common");
|
|
16
|
+
const validationSchema = (t) => Yup.lazy((values) => Yup.object().shape({
|
|
17
|
+
sshPublicKey: (0, common_1.sshPublicKeyValidationSchema)(t),
|
|
18
|
+
httpProxy: (0, common_1.httpProxyValidationSchema)({ values, pairValueName: 'httpsProxy', t }),
|
|
19
|
+
httpsProxy: (0, common_1.httpProxyValidationSchema)({ values, pairValueName: 'httpProxy', t }),
|
|
20
|
+
noProxy: (0, common_1.noProxyValidationSchema)(t),
|
|
20
21
|
}));
|
|
21
22
|
const OcmDiscoveryImageConfigForm = ({ handleSubmit, onCancel, sshPublicKey, httpProxy, httpsProxy, noProxy, imageType, isIpxeSelected, enableCertificate, trustBundle, selectedCpuArchitecture, isOracleCloudInfrastructure = false, }) => {
|
|
22
23
|
const imageTypeValue = isIpxeSelected
|
|
@@ -50,7 +51,7 @@ const OcmDiscoveryImageConfigForm = ({ handleSubmit, onCancel, sshPublicKey, htt
|
|
|
50
51
|
updateDiscoveryButtonAndAlertText(isIpxeSelected);
|
|
51
52
|
}, [updateDiscoveryButtonAndAlertText, isIpxeSelected]);
|
|
52
53
|
const [alertDiscoveryText, setAlertDiscoveryText] = react_1.default.useState(t('ai:To add hosts to the cluster, generate a Discovery ISO.'));
|
|
53
|
-
return (react_1.default.createElement(formik_1.Formik, { initialValues: initialValues, initialStatus: { error: null }, validationSchema: validationSchema, onSubmit: handleSubmit }, ({ submitForm, isSubmitting, status, setStatus }) => {
|
|
54
|
+
return (react_1.default.createElement(formik_1.Formik, { initialValues: initialValues, initialStatus: { error: null }, validationSchema: validationSchema(t), onSubmit: handleSubmit }, ({ submitForm, isSubmitting, status, setStatus }) => {
|
|
54
55
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
55
56
|
react_1.default.createElement(react_core_1.ModalBody, null,
|
|
56
57
|
react_1.default.createElement(react_core_1.Stack, { hasGutter: true },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OcmDiscoveryImageConfigForm.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,iDAA2B;AAC3B,uDAWgC;AAChC,mCAA+C;
|
|
1
|
+
{"version":3,"file":"OcmDiscoveryImageConfigForm.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.tsx"],"names":[],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AAC,QAAQ,EAAC,OAAO,EAAC,MAAM,EAAC,OAAO,EAAE,QAAQ,IAClD,CAAC,CAAC,WAAW,CAAC,CACR,CACA,CACN,CACG,CACN,CACI,CACb,CACJ,CAAC;IACJ,CAAC,CACM,CACV,CAAC;AACJ,CAAC,CAAC;AAjIW,QAAA,2BAA2B,+BAiItC"}
|
|
@@ -6,12 +6,14 @@ const react_1 = tslib_1.__importDefault(require("react"));
|
|
|
6
6
|
const customManifestsValidationSchema_1 = require("./customManifestsValidationSchema");
|
|
7
7
|
const CustomManifestsForm_1 = require("./CustomManifestsForm");
|
|
8
8
|
const utils_1 = require("./utils");
|
|
9
|
+
const common_1 = require("../../../../../common");
|
|
9
10
|
const CustomManifests = ({ cluster, onFormStateChange, }) => {
|
|
11
|
+
const { t } = (0, common_1.useTranslation)();
|
|
10
12
|
const [formProps, setFormProps] = react_1.default.useState();
|
|
11
13
|
react_1.default.useEffect(() => {
|
|
12
14
|
setFormProps({
|
|
13
15
|
onFormStateChange: onFormStateChange,
|
|
14
|
-
validationSchema: customManifestsValidationSchema_1.getFormViewManifestsValidationSchema,
|
|
16
|
+
validationSchema: (0, customManifestsValidationSchema_1.getFormViewManifestsValidationSchema)(t),
|
|
15
17
|
getInitialValues: (customManifests) => {
|
|
16
18
|
return (0, utils_1.getManifestValues)(customManifests);
|
|
17
19
|
},
|
|
@@ -19,7 +21,7 @@ const CustomManifests = ({ cluster, onFormStateChange, }) => {
|
|
|
19
21
|
showEmptyValues: true,
|
|
20
22
|
cluster: cluster,
|
|
21
23
|
});
|
|
22
|
-
}, [cluster, onFormStateChange]);
|
|
24
|
+
}, [cluster, onFormStateChange, t]);
|
|
23
25
|
if (!formProps) {
|
|
24
26
|
return null;
|
|
25
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomManifests.js","sourceRoot":"","sources":["../../../../../../../lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAG1B,uFAAyF;AACzF,+DAA4D;AAC5D,mCAAqE;
|
|
1
|
+
{"version":3,"file":"CustomManifests.js","sourceRoot":"","sources":["../../../../../../../lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/CustomManifests.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAG1B,uFAAyF;AACzF,+DAA4D;AAC5D,mCAAqE;AAErE,kDAAuD;AAEhD,MAAM,eAAe,GAAG,CAAC,EAC9B,OAAO,EACP,iBAAiB,GAIlB,EAAE,EAAE;IACH,MAAM,EAAE,CAAC,EAAE,GAAG,IAAA,uBAAc,GAAE,CAAC;IAC/B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,eAAK,CAAC,QAAQ,EAA4B,CAAC;IAE7E,eAAK,CAAC,SAAS,CAAC,GAAG,EAAE;QACnB,YAAY,CAAC;YACX,iBAAiB,EAAE,iBAAiB;YACpC,gBAAgB,EAAE,IAAA,sEAAoC,EAAC,CAAC,CAAC;YAEzD,gBAAgB,EAAE,CAAC,eAAsC,EAAE,EAAE;gBAC3D,OAAO,IAAA,yBAAiB,EAAC,eAAe,CAAC,CAAC;YAC5C,CAAC;YACD,cAAc,EAAE,GAAG,EAAE,CAAC,IAAA,+BAAuB,GAAE;YAC/C,eAAe,EAAE,IAAI;YACrB,OAAO,EAAE,OAAO;SACjB,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC,CAAC;IAEpC,IAAI,CAAC,SAAS,EAAE;QACd,OAAO,IAAI,CAAC;KACb;IAED,OAAO,8BAAC,yCAAmB,oBAAK,SAAS,EAAI,CAAC;AAChD,CAAC,CAAC;AA7BW,QAAA,eAAe,mBA6B1B"}
|
|
@@ -4,7 +4,7 @@ exports.getFormViewManifestsValidationSchema = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const Yup = tslib_1.__importStar(require("yup"));
|
|
6
6
|
const utils_1 = require("../../../../../common/utils");
|
|
7
|
-
const
|
|
7
|
+
const common_1 = require("../../../../../common");
|
|
8
8
|
/* eslint-enable */
|
|
9
9
|
Yup.addMethod(Yup.array, 'uniqueManifestFiles', function (message, mapper) {
|
|
10
10
|
return this.test('unique', message, function (list) {
|
|
@@ -23,14 +23,14 @@ Yup.addMethod(Yup.array, 'uniqueManifestFiles', function (message, mapper) {
|
|
|
23
23
|
seen.add(mappedValue);
|
|
24
24
|
});
|
|
25
25
|
if (errors.length > 0) {
|
|
26
|
-
throw new
|
|
26
|
+
throw new Yup.ValidationError(errors);
|
|
27
27
|
}
|
|
28
28
|
return true;
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
const INCORRECT_FILENAME = 'Must have a yaml, yml, json, yaml.patch or yml.patch extension and can not contain /.';
|
|
32
32
|
const UNIQUE_FOLDER_FILENAME = 'Ensure unique file names to avoid conflicts and errors.';
|
|
33
|
-
|
|
33
|
+
const getFormViewManifestsValidationSchema = (t) => Yup.object({
|
|
34
34
|
manifests: Yup.array()
|
|
35
35
|
.of(Yup.object({
|
|
36
36
|
folder: Yup.mixed().required('Required'),
|
|
@@ -45,13 +45,14 @@ exports.getFormViewManifestsValidationSchema = Yup.object({
|
|
|
45
45
|
is: (filename) => !filename.includes('patch'),
|
|
46
46
|
then: () => Yup.string()
|
|
47
47
|
.required('Required')
|
|
48
|
-
.test('not-big-file', utils_1.getMaxFileSizeMessage, utils_1.validateFileSize)
|
|
49
|
-
.test('not-valid-file',
|
|
48
|
+
.test('not-big-file', (0, utils_1.getMaxFileSizeMessage)(t), utils_1.validateFileSize)
|
|
49
|
+
.test('not-valid-file', (0, common_1.getIncorrectFileTypeMessage)(t), utils_1.validateFileType),
|
|
50
50
|
otherwise: () => Yup.string()
|
|
51
51
|
.required('Required')
|
|
52
|
-
.test('not-big-file', utils_1.getMaxFileSizeMessage, utils_1.validateFileSize), // Validation of file content is not required if filename contains 'patch'
|
|
52
|
+
.test('not-big-file', (0, utils_1.getMaxFileSizeMessage)(t), utils_1.validateFileSize), // Validation of file content is not required if filename contains 'patch'
|
|
53
53
|
}),
|
|
54
54
|
}))
|
|
55
55
|
.uniqueManifestFiles(UNIQUE_FOLDER_FILENAME, (val) => val.filename),
|
|
56
56
|
});
|
|
57
|
+
exports.getFormViewManifestsValidationSchema = getFormViewManifestsValidationSchema;
|
|
57
58
|
//# sourceMappingURL=customManifestsValidationSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customManifestsValidationSchema.js","sourceRoot":"","sources":["../../../../../../../lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx"],"names":[],"mappings":";;;;AAAA,iDAA2B;
|
|
1
|
+
{"version":3,"file":"customManifestsValidationSchema.js","sourceRoot":"","sources":["../../../../../../../lib/ocm/components/clusterConfiguration/manifestsConfiguration/components/customManifestsValidationSchema.tsx"],"names":[],"mappings":";;;;AAAA,iDAA2B;AAG3B,uDAKqC;AACrC,kDAAoE;AAepE,mBAAmB;AAEnB,GAAG,CAAC,SAAS,CACX,GAAG,CAAC,KAAK,EACT,qBAAqB,EACrB,UAAU,OAAe,EAAE,MAA4B;IACrD,OAAO,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,UAAU,IAAwC;QACpF,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QAEvB,MAAM,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC;QACvB,MAAM,MAAM,GAA0B,EAAE,CAAC;QAEzC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;YAC3B,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;YACjC,IAAI,IAAI,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE;gBACzB,MAAM,CAAC,IAAI,CACT,IAAI,CAAC,WAAW,CAAC;oBACf,IAAI,EAAE,GAAG,IAAI,CAAC,IAAI,IAAI,KAAK,YAAY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CAAC,CAAC,EAAE,wBAAgB,CAAC;iBAChE,IAAI,CAAC,gBAAgB,EAAE,IAAA,oCAA2B,EAAC,CAAC,CAAC,EAAE,wBAAgB,CAAC;YAC7E,SAAS,EAAE,GAAG,EAAE,CACd,GAAG,CAAC,MAAM,EAAE;iBACT,QAAQ,CAAC,UAAU,CAAC;iBACpB,IAAI,CAAC,cAAc,EAAE,IAAA,6BAAqB,EAAC,CAAC,CAAC,EAAE,wBAAgB,CAAC,EAAE,0EAA0E;SAClJ,CAAC;KACH,CAAC,CACH;SACA,mBAAmB,CAAC,sBAAsB,EAAE,CAAC,GAAyB,EAAE,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC;CAC5F,CAAC,CAAC;AA5BQ,QAAA,oCAAoC,wCA4B5C"}
|
package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfiguration.js
CHANGED
|
@@ -5,20 +5,14 @@ const react_1 = tslib_1.__importDefault(require("react"));
|
|
|
5
5
|
const formik_1 = require("formik");
|
|
6
6
|
const react_redux_1 = require("react-redux");
|
|
7
7
|
const react_core_1 = require("@patternfly/react-core");
|
|
8
|
-
const VirtualIPControlGroup_1 = require("./VirtualIPControlGroup");
|
|
9
8
|
const common_1 = require("../../../../common");
|
|
10
9
|
const networkingSteps_1 = require("../../../../common/components/clusterWizard/networkingSteps");
|
|
11
|
-
const StackTypeControl_1 = require("./StackTypeControl");
|
|
12
|
-
const AvailableSubnetsControl_1 = require("./AvailableSubnetsControl");
|
|
13
|
-
const AdvancedNetworkFields_1 = tslib_1.__importDefault(require("./AdvancedNetworkFields"));
|
|
14
10
|
const selectors_1 = require("../../../store/slices/current-cluster/selectors");
|
|
15
11
|
const OcmFormFields_1 = require("../../ui/OcmFormFields");
|
|
16
12
|
const NetworkTypeControlGroup_1 = require("../../../../common/components/clusterWizard/networkingSteps/NetworkTypeControlGroup");
|
|
17
13
|
const newFeatureSupportLevels_1 = require("../../../../common/components/newFeatureSupportLevels");
|
|
18
14
|
const useSupportLevelsAPI_1 = tslib_1.__importDefault(require("../../../hooks/useSupportLevelsAPI"));
|
|
19
15
|
const utils_1 = require("../../utils");
|
|
20
|
-
const isAdvNetworkConf = (cluster, defaultNetworkValues) => !((0, common_1.serviceNetworksEqual)(cluster.serviceNetworks || [], defaultNetworkValues.serviceNetworksIpv4 || []) &&
|
|
21
|
-
(0, common_1.clusterNetworksEqual)(cluster.clusterNetworks || [], defaultNetworkValues.clusterNetworksIpv4 || []));
|
|
22
16
|
const getManagedNetworkingDisabledReason = (isDualStack, isOracleCloudInfrastructure, featureSupportLevelData) => {
|
|
23
17
|
if (isOracleCloudInfrastructure) {
|
|
24
18
|
return 'Network management selection is not supported with Oracle Cloud Infrastructure';
|
|
@@ -63,7 +57,7 @@ const NetworkConfiguration = ({ cluster, hostSubnets, isVipDhcpAllocationDisable
|
|
|
63
57
|
const isSDNSelectable = react_1.default.useMemo(() => {
|
|
64
58
|
return (0, common_1.canSelectNetworkTypeSDN)(isSNOCluster, isDualStack);
|
|
65
59
|
}, [isSNOCluster, isDualStack]);
|
|
66
|
-
const [isAdvanced, setAdvanced] = react_1.default.useState(isDualStack || isAdvNetworkConf(cluster, defaultNetworkSettings));
|
|
60
|
+
const [isAdvanced, setAdvanced] = react_1.default.useState(isDualStack || (0, common_1.isAdvNetworkConf)(cluster, defaultNetworkSettings));
|
|
67
61
|
react_1.default.useEffect(() => {
|
|
68
62
|
var _a, _b, _c;
|
|
69
63
|
if (isUserManagedNetworking) {
|
|
@@ -123,22 +117,22 @@ const NetworkConfiguration = ({ cluster, hostSubnets, isVipDhcpAllocationDisable
|
|
|
123
117
|
isUserManagedNetworking && (react_1.default.createElement(react_core_1.StackItem, null,
|
|
124
118
|
react_1.default.createElement(networkingSteps_1.UserManagedNetworkingTextContent, { shouldDisplayLoadBalancersBullet: !isSNOCluster, docVersion: cluster.openshiftVersion }))),
|
|
125
119
|
(isSNOCluster || !isUserManagedNetworking) && (react_1.default.createElement(react_core_1.StackItem, null,
|
|
126
|
-
react_1.default.createElement(
|
|
120
|
+
react_1.default.createElement(networkingSteps_1.StackTypeControlGroup, { clusterId: cluster.id, isDualStackSelectable: isDualStackSelectable, hostSubnets: hostSubnets, defaultNetworkValues: defaultNetworkSettings, isViewerMode: isViewerMode }))),
|
|
127
121
|
isSDNSupported && (react_1.default.createElement(react_core_1.StackItem, null,
|
|
128
122
|
react_1.default.createElement(NetworkTypeControlGroup_1.NetworkTypeControlGroup, { isDisabled: isViewerMode, isSDNSelectable: isSDNSelectable }))),
|
|
129
123
|
!(isUserManagedNetworking && !isSNOCluster) && (react_1.default.createElement(react_core_1.StackItem, null,
|
|
130
|
-
react_1.default.createElement(
|
|
124
|
+
react_1.default.createElement(networkingSteps_1.AvailableSubnetsControl, { clusterId: cluster.id, hostSubnets: hostSubnets, isRequired: !isUserManagedNetworking, isDisabled: (cluster.vipDhcpAllocation &&
|
|
131
125
|
(0, common_1.selectApiVip)(cluster) === '' &&
|
|
132
126
|
(0, common_1.selectIngressVip)(cluster) === '') ||
|
|
133
127
|
hostSubnets.length === 0 ||
|
|
134
|
-
false, openshiftVersion: cluster.openshiftVersion }))),
|
|
128
|
+
false, openshiftVersion: cluster.openshiftVersion, isViewerMode: isViewerMode }))),
|
|
135
129
|
!isUserManagedNetworking && (react_1.default.createElement(react_core_1.StackItem, null,
|
|
136
|
-
react_1.default.createElement(
|
|
130
|
+
react_1.default.createElement(networkingSteps_1.VirtualIPControlGroup, { cluster: cluster, hostSubnets: hostSubnets, isVipDhcpAllocationDisabled: isVipDhcpAllocationDisabled || !isSDNSupported, supportLevel: featureSupportLevelContext.getFeatureSupportLevel('VIP_AUTO_ALLOC'), isViewerMode: isViewerMode }))),
|
|
137
131
|
react_1.default.createElement(react_core_1.StackItem, null,
|
|
138
132
|
react_1.default.createElement(react_core_1.Tooltip, { content: 'Advanced networking properties must be configured in dual-stack', hidden: !isDualStack, position: 'top-start' },
|
|
139
133
|
react_1.default.createElement(OcmFormFields_1.OcmCheckbox, { id: "useAdvancedNetworking", label: "Use advanced networking", description: "Configure advanced networking properties (e.g. CIDR ranges).", isChecked: isAdvanced, onChange: (_event, value) => toggleAdvConfiguration(value), isDisabled: isDualStack }))),
|
|
140
134
|
isAdvanced && (react_1.default.createElement(react_core_1.StackItem, null,
|
|
141
|
-
react_1.default.createElement(
|
|
135
|
+
react_1.default.createElement(networkingSteps_1.AdvancedNetworkFields, { isDisabled: isViewerMode })))));
|
|
142
136
|
};
|
|
143
137
|
exports.default = NetworkConfiguration;
|
|
144
138
|
//# sourceMappingURL=NetworkConfiguration.js.map
|