@openshift-assisted/ui-lib 2.17.1-cim → 2.17.4-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/BMHStatusInfo.d.ts.map +1 -1
- package/build/@types/cim/components/Agent/MinimalHWRequirements.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/hostSelection/ClusterDeploymentHostSelectionStep.d.ts.map +1 -1
- package/build/@types/cim/components/ClusterDeployment/use-networking-formik.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/ConditionsTable.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/HostedClusterProgress.d.ts.map +1 -1
- package/build/@types/cim/components/Hypershift/DetailsPage/NodePoolsProgress.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/utils/status.d.ts +2 -2
- package/build/@types/cim/components/Hypershift/utils/status.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/EnvironmentDetails.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvFormPage.d.ts.map +1 -1
- package/build/@types/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.d.ts.map +1 -1
- package/build/@types/cim/components/helpers/agentStatus.d.ts +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/CimConfiguration/CimConfigurationFormFields.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/CimConfigurationModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/persist.d.ts.map +1 -1
- package/build/@types/cim/components/modals/CimConfiguration/types.d.ts +1 -1
- package/build/@types/cim/components/modals/EditProxyModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/EditSSHKeyModal.d.ts.map +1 -1
- package/build/@types/cim/components/modals/MassDeleteAgentModal.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/clusterDetail/FinalizingProgress.d.ts +1 -1
- package/build/@types/common/components/clusterDetail/FinalizingProgress.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/OperatorsProgressItem.d.ts.map +1 -1
- package/build/@types/common/components/clusterDetail/ProgressBarTexts.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/ReviewValidations.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/clusterDetailsValidation.d.ts.map +1 -1
- package/build/@types/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.d.ts.map +1 -1
- 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/HostPropertyValidationPopover.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/Hostname.d.ts.map +1 -1
- package/build/@types/common/components/hosts/MassChangeHostnameModal.d.ts.map +1 -1
- package/build/@types/common/components/hosts/VMRebootConfigurationInfo.d.ts.map +1 -1
- package/build/@types/common/components/hosts/status.d.ts.map +1 -1
- package/build/@types/common/components/storage/DisksTable.d.ts.map +1 -1
- package/build/@types/common/components/storage/StorageUtils.d.ts +1 -1
- package/build/@types/common/components/storage/StorageUtils.d.ts.map +1 -1
- package/build/@types/common/components/ui/WizardNavItem.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RemovableField.d.ts.map +1 -1
- package/build/@types/common/components/ui/formik/RichInputField.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 +0 -1
- package/build/@types/common/components/ui/index.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/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/OcmOperatorProgressItem.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.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/NetworkConfigurationForm.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/platformIntegration/PlatformIntegrationNote.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.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/HostInventoryExpandable.d.ts +1 -1
- package/build/@types/ocm/components/clusterDetail/HostInventoryExpandable.d.ts.map +1 -1
- package/build/@types/ocm/components/clusterDetail/OpenShiftVersionDetail.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/clusters/ClusterStatus.d.ts.map +1 -1
- package/build/@types/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.d.ts.map +1 -1
- package/build/@types/ocm/components/hosts/UpdateDay2ApiVipForm.d.ts.map +1 -1
- package/build/@types/ocm/components/ui/InfoLinkWithModal.d.ts.map +1 -1
- package/build/cjs/cim/components/Agent/BMCForm.js +3 -3
- package/build/cjs/cim/components/Agent/BMCForm.js.map +1 -1
- package/build/cjs/cim/components/Agent/BMHStatusInfo.js +4 -4
- package/build/cjs/cim/components/Agent/BMHStatusInfo.js.map +1 -1
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.js +2 -2
- package/build/cjs/cim/components/Agent/MinimalHWRequirements.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 +8 -6
- package/build/cjs/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js +1 -3
- package/build/cjs/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.js.map +1 -1
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js +16 -15
- package/build/cjs/cim/components/ClusterDeployment/use-networking-formik.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js +7 -6
- package/build/cjs/cim/components/Hypershift/DetailsPage/ConditionsTable.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js +3 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/HostedClusterProgress.js.map +1 -1
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js +2 -2
- package/build/cjs/cim/components/Hypershift/DetailsPage/NodePoolsProgress.js.map +1 -1
- 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/HostsStep.js +2 -11
- package/build/cjs/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.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/utils/status.js +8 -7
- package/build/cjs/cim/components/Hypershift/utils/status.js.map +1 -1
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.js +4 -4
- package/build/cjs/cim/components/InfraEnv/EnvironmentDetails.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/InfraEnv/InfraEnvHostsTabAgentsWarning.js +3 -3
- package/build/cjs/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.js.map +1 -1
- package/build/cjs/cim/components/helpers/agentStatus.js +3 -2
- package/build/cjs/cim/components/helpers/agentStatus.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/CimConfiguration/CimConfigurationFormFields.js +7 -3
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationFormFields.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js +13 -6
- package/build/cjs/cim/components/modals/CimConfiguration/CimConfigurationModal.js.map +1 -1
- package/build/cjs/cim/components/modals/CimConfiguration/persist.js +7 -0
- package/build/cjs/cim/components/modals/CimConfiguration/persist.js.map +1 -1
- package/build/cjs/cim/components/modals/EditProxyModal.js +5 -3
- package/build/cjs/cim/components/modals/EditProxyModal.js.map +1 -1
- package/build/cjs/cim/components/modals/EditPullSecretModal.js +1 -1
- package/build/cjs/cim/components/modals/EditPullSecretModal.js.map +1 -1
- package/build/cjs/cim/components/modals/EditSSHKeyModal.js +3 -3
- package/build/cjs/cim/components/modals/EditSSHKeyModal.js.map +1 -1
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js +2 -2
- package/build/cjs/cim/components/modals/MassDeleteAgentModal.js.map +1 -1
- 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/DiscoveryTroubleshootingModal.js +2 -1
- package/build/cjs/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js +8 -7
- package/build/cjs/common/components/clusterDetail/FinalizingProgress.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js +4 -4
- package/build/cjs/common/components/clusterDetail/OperatorsProgressItem.js.map +1 -1
- package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js +5 -4
- package/build/cjs/common/components/clusterDetail/ProgressBarTexts.js.map +1 -1
- package/build/cjs/common/components/clusterWizard/ReviewValidations.js +7 -6
- package/build/cjs/common/components/clusterWizard/ReviewValidations.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/VirtualIPControlGroup.js +2 -2
- package/build/cjs/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.js.map +1 -1
- 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/HostPropertyValidationPopover.js +6 -6
- package/build/cjs/common/components/hosts/HostPropertyValidationPopover.js.map +1 -1
- package/build/cjs/common/components/hosts/HostStatus.js +2 -1
- package/build/cjs/common/components/hosts/HostStatus.js.map +1 -1
- package/build/cjs/common/components/hosts/HostValidationGroups.js +6 -6
- package/build/cjs/common/components/hosts/HostValidationGroups.js.map +1 -1
- package/build/cjs/common/components/hosts/Hostname.js +4 -3
- package/build/cjs/common/components/hosts/Hostname.js.map +1 -1
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js +8 -7
- package/build/cjs/common/components/hosts/MassChangeHostnameModal.js.map +1 -1
- package/build/cjs/common/components/hosts/VMRebootConfigurationInfo.js +2 -1
- package/build/cjs/common/components/hosts/VMRebootConfigurationInfo.js.map +1 -1
- package/build/cjs/common/components/hosts/status.js +19 -13
- package/build/cjs/common/components/hosts/status.js.map +1 -1
- package/build/cjs/common/components/storage/DisksTable.js +4 -2
- package/build/cjs/common/components/storage/DisksTable.js.map +1 -1
- package/build/cjs/common/components/storage/StorageUtils.js +3 -2
- package/build/cjs/common/components/storage/StorageUtils.js.map +1 -1
- package/build/cjs/common/components/ui/WizardNavItem.js +2 -2
- package/build/cjs/common/components/ui/WizardNavItem.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RemovableField.js +3 -3
- package/build/cjs/common/components/ui/formik/RemovableField.js.map +1 -1
- package/build/cjs/common/components/ui/formik/RichInputField.js +4 -4
- package/build/cjs/common/components/ui/formik/RichInputField.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 -3
- package/build/cjs/common/components/ui/index.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/utils.js +5 -3
- package/build/cjs/common/utils.js.map +1 -1
- package/build/cjs/common/validationSchemas/addressValidation.js +258 -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/OcmDiscoveryImageConfigForm.js +7 -6
- package/build/cjs/ocm/components/clusterConfiguration/OcmDiscoveryImageConfigForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js +4 -4
- package/build/cjs/ocm/components/clusterConfiguration/OcmOperatorProgressItem.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.js +5 -2
- package/build/cjs/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.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/NetworkConfigurationForm.js +7 -3
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/NetworkConfigurationForm.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js +11 -11
- package/build/cjs/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js +5 -3
- package/build/cjs/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.js.map +1 -1
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.js +11 -7
- package/build/cjs/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.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/HostInventoryExpandable.js +5 -4
- package/build/cjs/ocm/components/clusterDetail/HostInventoryExpandable.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js +4 -3
- package/build/cjs/ocm/components/clusterDetail/OpenShiftVersionDetail.js.map +1 -1
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.js +4 -2
- package/build/cjs/ocm/components/clusterDetail/ResetClusterModal.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/clusters/ClusterStatus.js +13 -7
- package/build/cjs/ocm/components/clusters/ClusterStatus.js.map +1 -1
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js +7 -6
- package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.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/ui/InfoLinkWithModal.js +2 -2
- package/build/cjs/ocm/components/ui/InfoLinkWithModal.js.map +1 -1
- package/lib/cim/components/Agent/BMCForm.tsx +3 -3
- package/lib/cim/components/Agent/BMHStatusInfo.tsx +12 -4
- package/lib/cim/components/Agent/MinimalHWRequirements.tsx +4 -2
- package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx +8 -18
- package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDetailsFormFields.tsx +7 -10
- package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx +1 -3
- package/lib/cim/components/ClusterDeployment/use-networking-formik.ts +19 -15
- package/lib/cim/components/Hypershift/DetailsPage/ConditionsTable.tsx +13 -7
- package/lib/cim/components/Hypershift/DetailsPage/HostedClusterProgress.tsx +8 -4
- package/lib/cim/components/Hypershift/DetailsPage/NodePoolsProgress.tsx +6 -2
- package/lib/cim/components/Hypershift/HostedClusterWizard/DetailsStep/DetailsStep.tsx +2 -2
- package/lib/cim/components/Hypershift/HostedClusterWizard/HostsStep/HostsStep.tsx +2 -13
- package/lib/cim/components/Hypershift/HostedClusterWizard/NetworkStep/NetworkStep.tsx +8 -8
- package/lib/cim/components/Hypershift/utils/status.tsx +20 -9
- package/lib/cim/components/InfraEnv/EnvironmentDetails.tsx +11 -4
- package/lib/cim/components/InfraEnv/InfraEnvFormPage.tsx +8 -6
- package/lib/cim/components/InfraEnv/InfraEnvHostsTabAgentsWarning.tsx +4 -6
- package/lib/cim/components/helpers/agentStatus.tsx +7 -3
- package/lib/cim/components/helpers/versions.ts +51 -34
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationFormFields.tsx +7 -5
- package/lib/cim/components/modals/CimConfiguration/CimConfigurationModal.tsx +13 -6
- package/lib/cim/components/modals/CimConfiguration/persist.ts +11 -0
- package/lib/cim/components/modals/CimConfiguration/types.ts +1 -1
- package/lib/cim/components/modals/EditProxyModal.tsx +6 -3
- package/lib/cim/components/modals/EditPullSecretModal.tsx +1 -1
- package/lib/cim/components/modals/EditSSHKeyModal.tsx +8 -6
- package/lib/cim/components/modals/MassDeleteAgentModal.tsx +12 -5
- package/lib/common/components/clusterConfiguration/DiscoveryImageConfigForm.tsx +9 -8
- package/lib/common/components/clusterConfiguration/DiscoveryTroubleshootingModal.tsx +5 -2
- package/lib/common/components/clusterDetail/FinalizingProgress.tsx +21 -10
- package/lib/common/components/clusterDetail/OperatorsProgressItem.tsx +11 -5
- package/lib/common/components/clusterDetail/ProgressBarTexts.tsx +17 -5
- package/lib/common/components/clusterWizard/ReviewValidations.tsx +15 -6
- package/lib/common/components/clusterWizard/clusterDetailsValidation.ts +21 -11
- package/lib/common/components/clusterWizard/networkingSteps/VirtualIPControlGroup.tsx +0 -2
- package/lib/common/components/hosts/AdditionalNTPSourcesDialog.tsx +3 -6
- package/lib/common/components/hosts/EditHostForm.tsx +2 -8
- package/lib/common/components/hosts/HostPropertyValidationPopover.tsx +9 -5
- package/lib/common/components/hosts/HostStatus.tsx +14 -3
- package/lib/common/components/hosts/HostValidationGroups.tsx +9 -5
- package/lib/common/components/hosts/Hostname.tsx +7 -4
- package/lib/common/components/hosts/MassChangeHostnameModal.tsx +10 -8
- package/lib/common/components/hosts/VMRebootConfigurationInfo.tsx +12 -3
- package/lib/common/components/hosts/status.tsx +46 -13
- package/lib/common/components/storage/DisksTable.tsx +15 -4
- package/lib/common/components/storage/StorageUtils.tsx +6 -4
- package/lib/common/components/ui/WizardNavItem.tsx +4 -7
- package/lib/common/components/ui/formik/RemovableField.tsx +8 -4
- package/lib/common/components/ui/formik/RichInputField.tsx +10 -6
- package/lib/common/components/ui/formik/index.tsx +0 -2
- package/lib/common/components/ui/index.ts +0 -2
- package/lib/common/config/docs_links.ts +1 -1
- package/lib/common/index.ts +2 -0
- 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 +354 -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/OcmDiscoveryImageConfigForm.tsx +17 -15
- package/lib/ocm/components/clusterConfiguration/OcmOperatorProgressItem.tsx +11 -5
- package/lib/ocm/components/clusterConfiguration/OpenshiftVersionHelperText.tsx +8 -7
- 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/NetworkConfigurationForm.tsx +15 -5
- package/lib/ocm/components/clusterConfiguration/networkConfiguration/networkConfigurationValidation.ts +14 -16
- package/lib/ocm/components/clusterConfiguration/platformIntegration/PlatformIntegrationNote.tsx +6 -3
- package/lib/ocm/components/clusterConfiguration/review/ReviewPreflightChecks.tsx +28 -15
- 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/HostInventoryExpandable.tsx +11 -5
- package/lib/ocm/components/clusterDetail/OpenShiftVersionDetail.tsx +8 -5
- package/lib/ocm/components/clusterDetail/ResetClusterModal.tsx +6 -3
- package/lib/ocm/components/clusterWizard/disconnected/OptionalConfigurationsStep.tsx +5 -3
- package/lib/ocm/components/clusters/ClusterStatus.tsx +30 -8
- package/lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx +12 -8
- package/lib/ocm/components/hosts/UpdateDay2ApiVipForm.tsx +3 -7
- package/lib/ocm/components/ui/InfoLinkWithModal.tsx +4 -2
- package/package.json +3 -3
- package/build/@types/common/components/ui/UiIcon.d.ts +0 -11
- package/build/@types/common/components/ui/UiIcon.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 -50
- package/build/@types/common/components/ui/formik/validationSchemas.d.ts.map +0 -1
- package/build/cjs/common/components/ui/UiIcon.js +0 -11
- package/build/cjs/common/components/ui/UiIcon.js.map +0 -1
- package/build/cjs/common/components/ui/formik/constants.js.map +0 -1
- package/build/cjs/common/components/ui/formik/validationSchemas.js +0 -553
- package/build/cjs/common/components/ui/formik/validationSchemas.js.map +0 -1
- package/lib/common/components/ui/UiIcon.tsx +0 -21
- package/lib/common/components/ui/formik/validationSchemas.ts +0 -803
|
@@ -2,11 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSupportLevelInfo = exports.getFeatureSupportLevelTitle = exports.FullySupportedCluster = exports.LimitedSupportedCluster = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
6
|
const check_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/check-circle-icon");
|
|
6
7
|
const info_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/info-circle-icon");
|
|
7
|
-
const react_1 = tslib_1.__importDefault(require("react"));
|
|
8
|
-
const t_global_color_status_success_default_1 = require("@patternfly/react-tokens/dist/js/t_global_color_status_success_default");
|
|
9
|
-
const t_global_color_status_info_100_1 = require("@patternfly/react-tokens/dist/js/t_global_color_status_info_100");
|
|
10
8
|
const react_core_1 = require("@patternfly/react-core");
|
|
11
9
|
const types_1 = require("../../../common/types");
|
|
12
10
|
const docs_links_1 = require("../../../common/config/docs_links");
|
|
@@ -66,15 +64,18 @@ const getPreviewFeatureList = (supportLevelMap) => {
|
|
|
66
64
|
};
|
|
67
65
|
const LimitedSupportedCluster = ({ clusterFeatureSupportLevels, showVersionWarning, }) => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
68
66
|
showVersionWarning && (react_1.default.createElement(react_core_1.Content, { component: "p" },
|
|
69
|
-
react_1.default.createElement(
|
|
67
|
+
react_1.default.createElement(react_core_1.Icon, { status: "info", size: "sm" },
|
|
68
|
+
react_1.default.createElement(info_circle_icon_1.InfoCircleIcon, null)),
|
|
70
69
|
"\u00A0The installed OpenShift version is not production-ready")),
|
|
71
70
|
Object.keys(clusterFeatureSupportLevels).length > 0 && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
72
|
-
react_1.default.createElement(
|
|
71
|
+
react_1.default.createElement(react_core_1.Icon, { status: "info", size: "sm" },
|
|
72
|
+
react_1.default.createElement(info_circle_icon_1.InfoCircleIcon, null)),
|
|
73
73
|
"\u00A0Your cluster will be subject to support limitations because it includes:",
|
|
74
74
|
react_1.default.createElement(react_core_1.Content, { component: "ul" }, getPreviewFeatureList(clusterFeatureSupportLevels))))));
|
|
75
75
|
exports.LimitedSupportedCluster = LimitedSupportedCluster;
|
|
76
76
|
const FullySupportedCluster = () => (react_1.default.createElement(react_1.default.Fragment, null,
|
|
77
|
-
react_1.default.createElement(
|
|
77
|
+
react_1.default.createElement(react_core_1.Icon, { status: "success" },
|
|
78
|
+
react_1.default.createElement(check_circle_icon_1.CheckCircleIcon, null)),
|
|
78
79
|
"\u00A0Your installed cluster will be fully supported"));
|
|
79
80
|
exports.FullySupportedCluster = FullySupportedCluster;
|
|
80
81
|
const getFeatureSupportLevelTitle = (fullySupported) => {
|
package/build/cjs/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ReviewClusterFeatureSupportLevels.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx"],"names":[],"mappings":";;;;AAAA,+FAA0F;AAC1F,6FAAwF;AACxF,
|
|
1
|
+
{"version":3,"file":"ReviewClusterFeatureSupportLevels.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/featureSupportLevels/ReviewClusterFeatureSupportLevels.tsx"],"names":[],"mappings":";;;;AAAA,0DAA0B;AAC1B,+FAA0F;AAC1F,6FAAwF;AACxF,uDAAuD;AACvD,iDAK+B;AAC/B,kEAA4E;AAC5E,sGAAsE;AAEtE,4CAA6C;AAC7C,oFAA0G;AAC1G,kGAA+F;AAC/F,2FAA+E;AAC/E,wFAAwF;AAExF,gGAG4D;AAC5D,yDAAqD;AAErD,MAAM,oBAAoB,GAAG,CAAC,SAAoB,EAAU,EAAE;IAC5D,QAAQ,SAAS,EAAE;QACjB,KAAK,KAAK;YACR,OAAO,qCAAqC,CAAC;QAC/C,KAAK,gBAAgB;YACnB,OAAO,8BAA8B,CAAC;QACxC,KAAK,oBAAoB;YACvB,OAAO,sCAAsC,CAAC;QAChD;YACE,OAAO,SAAS,CAAC;KACpB;AACH,CAAC,CAAC;AAEF,MAAM,2BAA2B,GAAG,CAAC,YAAiC,EAAE,EAAE;IACxE,IAAI,YAAY,KAAK,aAAa,EAAE;QAClC,OAAO,4BAA4B,CAAC;KACrC;IACD,OAAO,8BAAC,sBAAY,IAAC,IAAI,EAAE,oCAAuB,kCAA4C,CAAC;AACjG,CAAC,CAAC;AAEF,MAAM,qBAAqB,GAAG,CAAC,eAAwC,EAAE,EAAE;IACzE,MAAM,oBAAoB,GAAkD;QAC1E,cAAc,EAAE,EAAE;QAClB,aAA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,qCAAqC,CAAC"}
|
|
@@ -7,6 +7,7 @@ const react_core_1 = require("@patternfly/react-core");
|
|
|
7
7
|
const formik_1 = require("formik");
|
|
8
8
|
const ui_1 = require("../../../common/components/ui");
|
|
9
9
|
const GridGap_1 = tslib_1.__importDefault(require("../../../common/components/ui/GridGap"));
|
|
10
|
+
const common_1 = require("../../../common");
|
|
10
11
|
const use_translation_wrapper_1 = require("../../../common/hooks/use-translation-wrapper");
|
|
11
12
|
const UpdateDay2ApiVipForm = ({ onUpdateDay2ApiVip, onClose, currentApiVip: originApiVip, }) => {
|
|
12
13
|
const { t } = (0, use_translation_wrapper_1.useTranslation)();
|
|
@@ -20,7 +21,7 @@ const UpdateDay2ApiVipForm = ({ onUpdateDay2ApiVip, onClose, currentApiVip: orig
|
|
|
20
21
|
apiVip: originApiVip,
|
|
21
22
|
};
|
|
22
23
|
const validationSchema = react_1.default.useMemo(() => Yup.object().shape({
|
|
23
|
-
apiVip:
|
|
24
|
+
apiVip: (0, common_1.day2ApiVipValidationSchema)(t).required(t('ai:Required field')),
|
|
24
25
|
}), [t]);
|
|
25
26
|
return (react_1.default.createElement(formik_1.Formik, { initialValues: initialValues, validationSchema: validationSchema, initialStatus: { error: null }, onSubmit: (values, formikHelpers) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
26
27
|
if (values.apiVip) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateDay2ApiVipForm.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/hosts/UpdateDay2ApiVipForm.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,iDAA2B;AAC3B,uDAOgC;AAChC,mCAAgC;AAChC,
|
|
1
|
+
{"version":3,"file":"UpdateDay2ApiVipForm.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/hosts/UpdateDay2ApiVipForm.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,iDAA2B;AAC3B,uDAOgC;AAChC,mCAAgC;AACh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BACF,MAAM,kBAAkB,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;gBACjD,OAAO,EAAE,CAAC;aACX;QACH,CAAC,CAAA,IAEA,CAAC,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE;QACrE,OAAO,CACL,8BAAC,iBAAI,IAAC,QAAQ,EAAE,YAAY;YAC1B,8BAAC,sBAAS;gBACR,8BAAC,iBAAO;oBACN,8BAAC,qBAAgB,IACf,MAAM,EAAE,MAAyB,EACjC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,GACzC;oBAEF,8BAAC,eAAU,IACT,KAAK,EAAC,gDAAgD,EACtD,IAAI,EAAC,QAAQ,EACb,GAAG,EAAE,cAAc,EACnB,UAAU,SACV,CACM,CACA;YACZ,8BAAC,wBAAW;gBACV,8BAAC,mBAAM,IACL,GAAG,EAAC,QAAQ,EACZ,IAAI,EAAE,uBAAU,CAAC,MAAM,EACvB,UAAU,EAAE,YAAY,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,aAGvC;gBACT,8BAAC,mBAAM,IAAC,GAAG,EAAC,QAAQ,EAAC,OAAO,EAAE,0BAAa,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,aAEzD,CACG,CACT,CACR,CAAC;IACJ,CAAC,CACM,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,oBAAoB,CAAC"}
|
|
@@ -4,7 +4,6 @@ const tslib_1 = require("tslib");
|
|
|
4
4
|
const react_1 = tslib_1.__importDefault(require("react"));
|
|
5
5
|
const react_core_1 = require("@patternfly/react-core");
|
|
6
6
|
const info_circle_icon_1 = require("@patternfly/react-icons/dist/js/icons/info-circle-icon");
|
|
7
|
-
const common_1 = require("../../../common");
|
|
8
7
|
const InfoLinkWithModal = ({ linkText, infoCircleSize = 'sm', modalTitle, modalVariant = 'medium', isInline = false, linkId, modalId, children, }) => {
|
|
9
8
|
const [isModalOpen, setModalOpen] = react_1.default.useState(false);
|
|
10
9
|
const handleModalClose = react_1.default.useCallback(() => setModalOpen(false), []);
|
|
@@ -13,7 +12,8 @@ const InfoLinkWithModal = ({ linkText, infoCircleSize = 'sm', modalTitle, modalV
|
|
|
13
12
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
14
13
|
react_1.default.createElement(react_core_1.Button, { id: linkId, variant: react_core_1.ButtonVariant.link, onClick: handleLinkClick, isInline: true },
|
|
15
14
|
!isInline && (react_1.default.createElement(react_1.default.Fragment, null,
|
|
16
|
-
react_1.default.createElement(
|
|
15
|
+
react_1.default.createElement(react_core_1.Icon, { size: infoCircleSize },
|
|
16
|
+
react_1.default.createElement(info_circle_icon_1.InfoCircleIcon, null)),
|
|
17
17
|
"\u00A0")),
|
|
18
18
|
linkText),
|
|
19
19
|
react_1.default.createElement(react_core_1.Modal, { id: modalId, isOpen: isModalOpen, onClose: handleModalClose, variant: modalVariant },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoLinkWithModal.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/ui/InfoLinkWithModal.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,
|
|
1
|
+
{"version":3,"file":"InfoLinkWithModal.js","sourceRoot":"","sources":["../../../../../lib/ocm/components/ui/InfoLinkWithModal.tsx"],"names":[],"mappings":";;;AAAA,0DAA0B;AAC1B,uDAUgC;AAChC,6FAAwF;AAYxF,MAAM,iBAAiB,GAAG,CAAC,EACzB,QAAQ,EACR,cAAc,GAAG,IAAI,EACrB,UAAU,EACV,YAAY,GAAG,QAAQ,EACvB,QAAQ,GAAG,KAAK,EAChB,MAAM,EACN,OAAO,EACP,QAAQ,GACwC,EAAE,EAAE;IACpD,MAAM,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG,eAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC1D,MAAM,gBAAgB,GAAG,eAAK,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IAC1E,MAAM,eAAe,GAAG,eAAK,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IAExE,MAAM,aAAa,GAAG,GAAG,OAAO,IAAI,iBAAiB,gBAAgB,CAAC;IAEtE,OAAO,CACL;QACE,8BAAC,mBAAM,IAAC,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,0BAAa,CAAC,IAAI,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ;YAChF,CAAC,QAAQ,IAAI,CACZ;gBACE,8BAAC,iBAAI,IAAC,IAAI,EAAE,cAAc;oBACxB,8BAAC,iCAAc,OAAG,CACb;yBAEN,CACJ;YACA,QAAQ,CACF;QACT,8BAAC,kBAAK,IAAC,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,OAAO,EAAE,YAAY;YACvF,8BAAC,wBAAW,IAAC,KAAK,EAAE,UAAU,GAAI;YAClC,8BAAC,sBAAS,QAAE,QAAQ,CAAa;YACjC,8BAAC,wBAAW;gBACV,8BAAC,mBAAM,IACL,EAAE,EAAE,aAAa,EACjB,GAAG,EAAC,OAAO,EACX,OAAO,EAAE,0BAAa,CAAC,OAAO,EAC9B,OAAO,EAAE,gBAAgB,YAGlB,CACG,CACR,CACP,CACJ,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,iBAAiB,CAAC"}
|
|
@@ -151,14 +151,14 @@ const getValidationSchema = (usedHostnames: string[], origHostname: string, t: T
|
|
|
151
151
|
bmcAddress: bmcAddressValidationSchema(t),
|
|
152
152
|
username: Yup.string().required(t('ai:Required field')),
|
|
153
153
|
password: Yup.string().required(t('ai:Required field')),
|
|
154
|
-
bootMACAddress: macAddressValidationSchema,
|
|
154
|
+
bootMACAddress: macAddressValidationSchema(t),
|
|
155
155
|
nmState: Yup.string(),
|
|
156
156
|
macMapping: Yup.array().of(
|
|
157
157
|
Yup.object().shape(
|
|
158
158
|
{
|
|
159
|
-
macAddress: macAddressValidationSchema.when('name', {
|
|
159
|
+
macAddress: macAddressValidationSchema(t).when('name', {
|
|
160
160
|
is: (name: string) => !!name,
|
|
161
|
-
then: () =>
|
|
161
|
+
then: (schema) => schema.required(t('ai:MAC has to be specified')),
|
|
162
162
|
}),
|
|
163
163
|
name: Yup.string().when('macAddress', {
|
|
164
164
|
is: (name: string) => !!name,
|
|
@@ -8,12 +8,11 @@ import {
|
|
|
8
8
|
ContentVariants,
|
|
9
9
|
Button,
|
|
10
10
|
ButtonVariant,
|
|
11
|
+
Icon,
|
|
11
12
|
} from '@patternfly/react-core';
|
|
12
13
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
13
14
|
import { PendingIcon } from '@patternfly/react-icons/dist/js/icons/pending-icon';
|
|
14
15
|
import { ExclamationTriangleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-triangle-icon';
|
|
15
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
16
|
-
import { t_global_icon_color_status_warning_default as warningColor } from '@patternfly/react-tokens/dist/js/t_global_icon_color_status_warning_default';
|
|
17
16
|
|
|
18
17
|
import { getHumanizedDateTime, useTranslation } from '../../../common';
|
|
19
18
|
import { BareMetalHostK8sResource } from '../../types';
|
|
@@ -44,10 +43,19 @@ export const BMHStatusInfo = ({
|
|
|
44
43
|
switch (bmh.status?.operationalStatus) {
|
|
45
44
|
case 'OK':
|
|
46
45
|
case 'discovered':
|
|
47
|
-
icon =
|
|
46
|
+
icon = (
|
|
47
|
+
<Icon status="success">
|
|
48
|
+
<CheckCircleIcon />
|
|
49
|
+
</Icon>
|
|
50
|
+
);
|
|
51
|
+
|
|
48
52
|
break;
|
|
49
53
|
case 'error':
|
|
50
|
-
icon =
|
|
54
|
+
icon = (
|
|
55
|
+
<Icon status="warning">
|
|
56
|
+
<ExclamationTriangleIcon />
|
|
57
|
+
</Icon>
|
|
58
|
+
);
|
|
51
59
|
break;
|
|
52
60
|
default:
|
|
53
61
|
icon = <PendingIcon />;
|
|
@@ -2,6 +2,7 @@ import * as React from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
4
|
ButtonVariant,
|
|
5
|
+
Icon,
|
|
5
6
|
Modal,
|
|
6
7
|
ModalBody,
|
|
7
8
|
ModalFooter,
|
|
@@ -15,7 +16,6 @@ import HostRequirements, {
|
|
|
15
16
|
HostRequirementsListProps,
|
|
16
17
|
} from '../../../common/components/hosts/HostRequirements';
|
|
17
18
|
import { useTranslation } from '../../../common/hooks/use-translation-wrapper';
|
|
18
|
-
import { UiIcon } from '../../../common';
|
|
19
19
|
|
|
20
20
|
type HostData = {
|
|
21
21
|
cpu_cores: number;
|
|
@@ -86,7 +86,9 @@ const MinimalHWRequirements: React.FC<MinimalHWRequirementsProps> = ({
|
|
|
86
86
|
isInline
|
|
87
87
|
className="host-requirements-link"
|
|
88
88
|
>
|
|
89
|
-
<
|
|
89
|
+
<Icon status="warning" size="sm">
|
|
90
|
+
<InfoCircleIcon />
|
|
91
|
+
</Icon>
|
|
90
92
|
{t('ai:Minimum hardware requirements')}
|
|
91
93
|
</Button>
|
|
92
94
|
<MinimalHWRequirementsModal
|
package/lib/cim/components/ClusterDeployment/clusterDetails/ClusterDeploymentDetailsForm.tsx
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
OsImage,
|
|
15
15
|
} from '../../../types';
|
|
16
16
|
import { ClusterImageSetK8sResource } from '../../../types/k8s/cluster-image-set';
|
|
17
|
-
import { getOCPVersions
|
|
17
|
+
import { getOCPVersions } from '../../helpers';
|
|
18
18
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
19
19
|
import {
|
|
20
20
|
ClusterDetailsFormFields,
|
|
@@ -46,17 +46,14 @@ export const ClusterDeploymentDetailsFormWrapper = ({
|
|
|
46
46
|
}) => {
|
|
47
47
|
const { activeStep, goToPrevStep, goToNextStep, close } = useWizardContext();
|
|
48
48
|
const { syncError } = React.useContext(ClusterDeploymentWizardContext);
|
|
49
|
-
const {
|
|
50
|
-
useFormikContext<ClusterDetailsValues>();
|
|
49
|
+
const { isSubmitting, isValid, isValidating } = useFormikContext<ClusterDetailsValues>();
|
|
51
50
|
const { t } = useTranslation();
|
|
52
51
|
|
|
52
|
+
// ClusterDeploymentDetailsFormWrapper is exclusively used by ClusterDeploymentWizard (edit flow).
|
|
53
|
+
// No form submission needed here—just navigate to the next step.
|
|
53
54
|
const handleOnNext = React.useCallback(() => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
} else {
|
|
57
|
-
void goToNextStep();
|
|
58
|
-
}
|
|
59
|
-
}, [dirty, goToNextStep, submitForm]);
|
|
55
|
+
void goToNextStep();
|
|
56
|
+
}, [goToNextStep]);
|
|
60
57
|
|
|
61
58
|
const footer = React.useMemo(
|
|
62
59
|
() => (
|
|
@@ -93,7 +90,6 @@ export const ClusterDeploymentDetailsFormWrapper = ({
|
|
|
93
90
|
};
|
|
94
91
|
|
|
95
92
|
export const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsFormProps> = ({
|
|
96
|
-
agentClusterInstall,
|
|
97
93
|
clusterDeployment,
|
|
98
94
|
clusterImages,
|
|
99
95
|
extensionAfter,
|
|
@@ -111,18 +107,13 @@ export const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsForm
|
|
|
111
107
|
[clusterImages, isNutanix, osImages],
|
|
112
108
|
);
|
|
113
109
|
|
|
114
|
-
const forceOpenshiftVersion = agentClusterInstall
|
|
115
|
-
? getSelectedVersion(clusterImages, agentClusterInstall)
|
|
116
|
-
: undefined;
|
|
117
110
|
const isEditFlow = !!clusterDeployment;
|
|
118
111
|
|
|
119
112
|
const { values } = useFormikContext<ClusterDetailsValues>();
|
|
120
113
|
|
|
121
114
|
const [cpuArchitectures, allowHighlyAvailable] = React.useMemo(() => {
|
|
122
115
|
const cpuArchitectures = [CpuArchitecture.x86, CpuArchitecture.ARM, CpuArchitecture.s390x];
|
|
123
|
-
const version = allVersions.find(
|
|
124
|
-
(ver) => ver.value === values.openshiftVersion || ver.version === forceOpenshiftVersion,
|
|
125
|
-
);
|
|
116
|
+
const version = allVersions.find((ver) => ver.value === values.openshiftVersion);
|
|
126
117
|
const isMulti = version?.cpuArchitectures?.[0] === CpuArchitecture.MULTI;
|
|
127
118
|
|
|
128
119
|
const highlyAvailableSupported = toNumber(version?.version?.split('.')?.[1]) >= 18;
|
|
@@ -130,7 +121,7 @@ export const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsForm
|
|
|
130
121
|
(isMulti ? cpuArchitectures : version?.cpuArchitectures) as SupportedCpuArchitecture[],
|
|
131
122
|
highlyAvailableSupported && !isMulti,
|
|
132
123
|
];
|
|
133
|
-
}, [allVersions,
|
|
124
|
+
}, [allVersions, values.openshiftVersion]);
|
|
134
125
|
|
|
135
126
|
return (
|
|
136
127
|
<>
|
|
@@ -148,7 +139,6 @@ export const ClusterDeploymentDetailsForm: React.FC<ClusterDeploymentDetailsForm
|
|
|
148
139
|
versions={versions}
|
|
149
140
|
allVersions={allVersions}
|
|
150
141
|
isEditFlow={isEditFlow}
|
|
151
|
-
forceOpenshiftVersion={forceOpenshiftVersion}
|
|
152
142
|
extensionAfter={extensionAfter}
|
|
153
143
|
isNutanix={isNutanix}
|
|
154
144
|
cpuArchitectures={cpuArchitectures}
|
|
@@ -3,6 +3,7 @@ import { Form } from '@patternfly/react-core';
|
|
|
3
3
|
import { useFormikContext } from 'formik';
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
+
acmClusterNameValidationMessages,
|
|
6
7
|
ExternalPlatformsDropdown,
|
|
7
8
|
isMajorMinorVersionEqualOrGreater,
|
|
8
9
|
OpenShiftVersionDropdown,
|
|
@@ -11,11 +12,7 @@ import {
|
|
|
11
12
|
import { StaticTextField } from '../../../../common/components/ui/StaticTextField';
|
|
12
13
|
import { PullSecret } from '../../../../common/components/clusters';
|
|
13
14
|
import { OpenshiftVersionOptionType, SupportedCpuArchitecture } from '../../../../common/types';
|
|
14
|
-
import {
|
|
15
|
-
InputField,
|
|
16
|
-
RichInputField,
|
|
17
|
-
acmClusterNameValidationMessages,
|
|
18
|
-
} from '../../../../common/components/ui/formik';
|
|
15
|
+
import { InputField, RichInputField } from '../../../../common/components/ui/formik';
|
|
19
16
|
import { ClusterDetailsValues } from '../../../../common/components/clusterWizard/types';
|
|
20
17
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
21
18
|
import CpuArchitectureDropdown from '../../common/CpuArchitectureDropdown';
|
|
@@ -24,7 +21,6 @@ import { getNetworkType } from '../../helpers';
|
|
|
24
21
|
|
|
25
22
|
export type ClusterDetailsFormFieldsProps = {
|
|
26
23
|
isEditFlow: boolean;
|
|
27
|
-
forceOpenshiftVersion?: string;
|
|
28
24
|
extensionAfter?: { [key: string]: React.ReactElement };
|
|
29
25
|
versions: OpenshiftVersionOptionType[];
|
|
30
26
|
allVersions: OpenshiftVersionOptionType[];
|
|
@@ -55,7 +51,6 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
|
|
|
55
51
|
isEditFlow,
|
|
56
52
|
versions,
|
|
57
53
|
allVersions,
|
|
58
|
-
forceOpenshiftVersion,
|
|
59
54
|
extensionAfter,
|
|
60
55
|
isNutanix,
|
|
61
56
|
cpuArchitectures,
|
|
@@ -68,7 +63,7 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
|
|
|
68
63
|
const { name, baseDnsDomain } = values;
|
|
69
64
|
|
|
70
65
|
React.useEffect(() => {
|
|
71
|
-
if (!versions.length && !values.openshiftVersion) {
|
|
66
|
+
if (!versions.length && !values.openshiftVersion && !isEditFlow) {
|
|
72
67
|
const fallbackOpenShiftVersion = allVersions.find((version) => version.default);
|
|
73
68
|
setFieldValue('customOpenshiftSelect', fallbackOpenShiftVersion?.value);
|
|
74
69
|
setFieldValue('openshiftVersion', fallbackOpenShiftVersion?.value);
|
|
@@ -143,9 +138,11 @@ export const ClusterDetailsFormFields: React.FC<ClusterDetailsFormFieldsProps> =
|
|
|
143
138
|
isRequired
|
|
144
139
|
/>
|
|
145
140
|
)}
|
|
146
|
-
{
|
|
141
|
+
{isEditFlow ? (
|
|
147
142
|
<StaticTextField name="openshiftVersion" label="OpenShift version" isRequired>
|
|
148
|
-
{t('ai:OpenShift')}
|
|
143
|
+
{t('ai:OpenShift')}{' '}
|
|
144
|
+
{allVersions.find((v) => v.value === values.openshiftVersion)?.version ||
|
|
145
|
+
values.openshiftVersion}
|
|
149
146
|
</StaticTextField>
|
|
150
147
|
) : (
|
|
151
148
|
<>
|
package/lib/cim/components/ClusterDeployment/hostSelection/ClusterDeploymentHostSelectionStep.tsx
CHANGED
|
@@ -96,9 +96,7 @@ const getValidationSchema = (agentClusterInstall: AgentClusterInstallK8sResource
|
|
|
96
96
|
selectedHostIds: values.autoSelectHosts
|
|
97
97
|
? Yup.array(Yup.string())
|
|
98
98
|
: isSNOCluster
|
|
99
|
-
? Yup.array(Yup.string())
|
|
100
|
-
.min(1, t('ai:Please select one host for the cluster.'))
|
|
101
|
-
.max(1, t('ai:Please select one host for the cluster.')) // TODO(jtomasek): replace this with Yup.array().length() after updating Yup
|
|
99
|
+
? Yup.array(Yup.string()).length(1, t('ai:Please select one host for the cluster.'))
|
|
102
100
|
: Yup.array(Yup.string()).min(3, t('ai:Please select at least 3 hosts for the cluster.')),
|
|
103
101
|
});
|
|
104
102
|
});
|
|
@@ -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';
|
|
@@ -47,32 +48,33 @@ const getInfraEnvProxy = (infraEnvs: InfraEnvK8sResource[]) => {
|
|
|
47
48
|
const getNetworkConfigurationValidationSchema = (
|
|
48
49
|
initialValues: ClusterDeploymentNetworkingValues,
|
|
49
50
|
hostSubnets: HostSubnets,
|
|
51
|
+
t: TFunction,
|
|
50
52
|
openshiftVersion?: string,
|
|
51
53
|
) =>
|
|
52
54
|
Yup.lazy((values: ClusterDeploymentNetworkingValues) =>
|
|
53
55
|
Yup.object<ClusterDeploymentNetworkingValues>().shape({
|
|
54
|
-
clusterNetworks: clusterNetworksValidationSchema.when('stackType', {
|
|
56
|
+
clusterNetworks: clusterNetworksValidationSchema(t).when('stackType', {
|
|
55
57
|
is: (stackType: NetworkConfigurationValues['stackType']) => stackType === IPV4_STACK,
|
|
56
|
-
then: () => clusterNetworksValidationSchema.concat(IPv4ValidationSchema),
|
|
58
|
+
then: () => clusterNetworksValidationSchema(t).concat(IPv4ValidationSchema),
|
|
57
59
|
otherwise: () =>
|
|
58
|
-
clusterNetworksValidationSchema.concat(
|
|
59
|
-
dualStackValidationSchema('cluster network', openshiftVersion),
|
|
60
|
+
clusterNetworksValidationSchema(t).concat(
|
|
61
|
+
dualStackValidationSchema(t('ai:cluster network'), t, openshiftVersion),
|
|
60
62
|
),
|
|
61
63
|
}),
|
|
62
|
-
serviceNetworks: serviceNetworkValidationSchema.when('stackType', {
|
|
64
|
+
serviceNetworks: serviceNetworkValidationSchema(t).when('stackType', {
|
|
63
65
|
is: (stackType: NetworkConfigurationValues['stackType']) => stackType === IPV4_STACK,
|
|
64
|
-
then: () => serviceNetworkValidationSchema.concat(IPv4ValidationSchema),
|
|
66
|
+
then: () => serviceNetworkValidationSchema(t).concat(IPv4ValidationSchema),
|
|
65
67
|
otherwise: () =>
|
|
66
|
-
serviceNetworkValidationSchema.concat(
|
|
67
|
-
dualStackValidationSchema('service network', openshiftVersion),
|
|
68
|
+
serviceNetworkValidationSchema(t).concat(
|
|
69
|
+
dualStackValidationSchema(t('ai:service network'), t, openshiftVersion),
|
|
68
70
|
),
|
|
69
71
|
}),
|
|
70
|
-
apiVips: vipArrayValidationSchema(hostSubnets, values),
|
|
71
|
-
ingressVips: vipArrayValidationSchema(hostSubnets, values),
|
|
72
|
-
sshPublicKey: sshPublicKeyListValidationSchema,
|
|
73
|
-
httpProxy: httpProxyValidationSchema({ values, pairValueName: 'httpsProxy' }),
|
|
74
|
-
httpsProxy: httpProxyValidationSchema({ values, pairValueName: 'httpProxy' }), // share the schema, httpS is currently not supported
|
|
75
|
-
noProxy: noProxyValidationSchema,
|
|
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),
|
|
76
78
|
}),
|
|
77
79
|
);
|
|
78
80
|
|
|
@@ -87,6 +89,7 @@ export const useNetworkingFormik = ({
|
|
|
87
89
|
agentClusterInstall,
|
|
88
90
|
agents,
|
|
89
91
|
}: UseNetworkingFormikArgs) => {
|
|
92
|
+
const { t } = useTranslation();
|
|
90
93
|
const initialValues = React.useMemo(
|
|
91
94
|
() => {
|
|
92
95
|
const cluster = getAICluster({
|
|
@@ -112,9 +115,10 @@ export const useNetworkingFormik = ({
|
|
|
112
115
|
return getNetworkConfigurationValidationSchema(
|
|
113
116
|
initialValues,
|
|
114
117
|
hostSubnets,
|
|
118
|
+
t,
|
|
115
119
|
cluster.openshiftVersion,
|
|
116
120
|
);
|
|
117
|
-
}, [
|
|
121
|
+
}, [clusterDeployment, agentClusterInstall, agents, t, initialValues]);
|
|
118
122
|
|
|
119
123
|
return {
|
|
120
124
|
initialValues,
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Flex, FlexItem, Icon } from '@patternfly/react-core';
|
|
2
3
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
3
4
|
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
4
5
|
import { InProgressIcon } from '@patternfly/react-icons/dist/js/icons/in-progress-icon';
|
|
5
6
|
import { UnknownIcon } from '@patternfly/react-icons/dist/js/icons/unknown-icon';
|
|
6
7
|
import { Table, Tbody, Td, Th, Thead, Tr } from '@patternfly/react-table';
|
|
7
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
8
8
|
|
|
9
|
-
import * as React from 'react';
|
|
10
9
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
11
10
|
|
|
12
11
|
import './ConditionsTable.css';
|
|
13
|
-
import { UiIcon } from '../../../../common';
|
|
14
12
|
|
|
15
13
|
const ignoredConditions = ['Progressing'];
|
|
16
14
|
const reversedConditions = ['Degraded'];
|
|
@@ -50,14 +48,22 @@ const ConditionsTable = ({ conditions, isDone }: ConditionsTableProps) => {
|
|
|
50
48
|
c.status === okStatus ? (
|
|
51
49
|
<InProgressIcon />
|
|
52
50
|
) : (
|
|
53
|
-
<
|
|
51
|
+
<Icon status="success">
|
|
52
|
+
<CheckCircleIcon />
|
|
53
|
+
</Icon>
|
|
54
54
|
);
|
|
55
55
|
} else {
|
|
56
56
|
if (c.status === okStatus) {
|
|
57
|
-
icon =
|
|
57
|
+
icon = (
|
|
58
|
+
<Icon status="success">
|
|
59
|
+
<CheckCircleIcon />
|
|
60
|
+
</Icon>
|
|
61
|
+
);
|
|
58
62
|
} else if (c.status === nokStatus) {
|
|
59
63
|
icon = isDone ? (
|
|
60
|
-
<
|
|
64
|
+
<Icon status="danger" size="sm">
|
|
65
|
+
<ExclamationCircleIcon />
|
|
66
|
+
</Icon>
|
|
61
67
|
) : (
|
|
62
68
|
<InProgressIcon />
|
|
63
69
|
);
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
ExpandableSectionToggle,
|
|
4
|
+
Icon,
|
|
4
5
|
ProgressStep,
|
|
5
6
|
Spinner,
|
|
6
7
|
Stack,
|
|
7
8
|
StackItem,
|
|
8
9
|
} from '@patternfly/react-core';
|
|
9
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
10
10
|
|
|
11
11
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
12
12
|
import { ExclamationCircleIcon } from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
13
13
|
import { HostedClusterK8sResource } from '../types';
|
|
14
14
|
import { useTranslation } from '../../../../common/hooks/use-translation-wrapper';
|
|
15
|
-
import { ExternalLink
|
|
15
|
+
import { ExternalLink } from '../../../../common';
|
|
16
16
|
import ConditionsTable from './ConditionsTable';
|
|
17
17
|
|
|
18
18
|
type HostedClusterProgressProps = {
|
|
@@ -34,9 +34,13 @@ const HostedClusterProgress = ({ hostedCluster, launchToOCP }: HostedClusterProg
|
|
|
34
34
|
if (progressingCondtion?.status === 'False') {
|
|
35
35
|
progressIcon =
|
|
36
36
|
availableCondtion?.status === 'True' ? (
|
|
37
|
-
<
|
|
37
|
+
<Icon status="success">
|
|
38
|
+
<CheckCircleIcon />
|
|
39
|
+
</Icon>
|
|
38
40
|
) : (
|
|
39
|
-
<
|
|
41
|
+
<Icon status="danger" size="sm">
|
|
42
|
+
<ExclamationCircleIcon />
|
|
43
|
+
</Icon>
|
|
40
44
|
);
|
|
41
45
|
}
|
|
42
46
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
ExpandableSectionToggle,
|
|
4
|
+
Icon,
|
|
4
5
|
ProgressStep,
|
|
5
6
|
Spinner,
|
|
6
7
|
Stack,
|
|
7
8
|
StackItem,
|
|
8
9
|
} from '@patternfly/react-core';
|
|
9
10
|
import { TFunction } from 'i18next';
|
|
10
|
-
import { t_global_color_status_success_default as okColor } from '@patternfly/react-tokens/dist/js/t_global_color_status_success_default';
|
|
11
11
|
import { CheckCircleIcon } from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
12
12
|
|
|
13
13
|
import {
|
|
@@ -42,7 +42,11 @@ const getNodePoolsStatus = (
|
|
|
42
42
|
|
|
43
43
|
const nodePoolsStatus: { type: string; icon: React.ReactNode } = {
|
|
44
44
|
type: 'ok',
|
|
45
|
-
icon:
|
|
45
|
+
icon: (
|
|
46
|
+
<Icon status="success">
|
|
47
|
+
<CheckCircleIcon />
|
|
48
|
+
</Icon>
|
|
49
|
+
),
|
|
46
50
|
};
|
|
47
51
|
|
|
48
52
|
for (const property in nodePoolMap) {
|
|
@@ -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}
|
|
@@ -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
|
);
|