From 13484d00fba55c026f3a420944321fab2e8ddfae Mon Sep 17 00:00:00 2001 From: yaacov Date: Mon, 22 Jul 2024 09:55:46 +0300 Subject: [PATCH] Fix invalided to invalid typo Signed-off-by: yaacov --- .../provider/openstack/openstackProviderValidator.ts | 4 ++-- .../utils/validators/provider/ova/ovaProviderValidator.ts | 4 ++-- .../validators/provider/ovirt/ovirtProviderValidator.ts | 4 ++-- .../validators/provider/vsphere/vsphereProviderValidator.ts | 6 +++--- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openstack/openstackProviderValidator.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openstack/openstackProviderValidator.ts index f72756969..53073437d 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openstack/openstackProviderValidator.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/openstack/openstackProviderValidator.ts @@ -7,11 +7,11 @@ export function openstackProviderValidator(provider: V1beta1Provider): Validatio const url = provider?.spec?.url || ''; if (!validateK8sName(name)) { - return { type: 'error', msg: 'invalided kubernetes resource name' }; + return { type: 'error', msg: 'invalid kubernetes resource name' }; } if (!validateURL(url)) { - return { type: 'error', msg: 'invalided URL' }; + return { type: 'error', msg: 'invalid URL' }; } return { type: 'default' }; diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ova/ovaProviderValidator.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ova/ovaProviderValidator.ts index cc17204b9..90db0a8ce 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ova/ovaProviderValidator.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ova/ovaProviderValidator.ts @@ -7,11 +7,11 @@ export function ovaProviderValidator(provider: V1beta1Provider): ValidationMsg { const url = provider?.spec?.url || ''; if (!validateK8sName(name)) { - return { type: 'error', msg: 'invalided kubernetes resource name' }; + return { type: 'error', msg: 'invalid kubernetes resource name' }; } if (!validateNFSMount(url)) { - return { type: 'error', msg: 'invalided OVA mount end point' }; + return { type: 'error', msg: 'invalid OVA mount endpoint' }; } return { type: 'default' }; diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ovirt/ovirtProviderValidator.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ovirt/ovirtProviderValidator.ts index 586da26e1..9e1e0bc5f 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ovirt/ovirtProviderValidator.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/ovirt/ovirtProviderValidator.ts @@ -7,11 +7,11 @@ export function ovirtProviderValidator(provider: V1beta1Provider): ValidationMsg const url = provider?.spec?.url || ''; if (!validateK8sName(name)) { - return { type: 'error', msg: 'invalided kubernetes resource name' }; + return { type: 'error', msg: 'invalid kubernetes resource name' }; } if (!validateURL(url)) { - return { type: 'error', msg: 'invalided URL' }; + return { type: 'error', msg: 'invalid URL' }; } return { type: 'default' }; diff --git a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/vsphere/vsphereProviderValidator.ts b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/vsphere/vsphereProviderValidator.ts index ed9f34ed7..3cf3893d1 100644 --- a/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/vsphere/vsphereProviderValidator.ts +++ b/packages/forklift-console-plugin/src/modules/Providers/utils/validators/provider/vsphere/vsphereProviderValidator.ts @@ -13,11 +13,11 @@ export function vsphereProviderValidator(provider: V1beta1Provider): ValidationM provider?.metadata?.annotations?.['forklift.konveyor.io/empty-vddk-init-image']; if (!validateK8sName(name)) { - return { type: 'error', msg: 'invalided kubernetes resource name' }; + return { type: 'error', msg: 'invalid kubernetes resource name' }; } if (!validateURL(url)) { - return { type: 'error', msg: 'invalided URL' }; + return { type: 'error', msg: 'invalid URL' }; } if (emptyVddkInitImage === 'yes' && vddkInitImage === '') { @@ -33,7 +33,7 @@ export function vsphereProviderValidator(provider: V1beta1Provider): ValidationM } if (sdkEndpoint !== '' && !['vcenter', 'esxi'].includes(sdkEndpoint)) { - return { type: 'error', msg: 'invalided sdkEndpoint, can be vcenter or esxi' }; + return { type: 'error', msg: 'invalid sdkEndpoint, can be vcenter or esxi' }; } return { type: 'default' };