Skip to content

Commit

Permalink
Merge pull request #1292 from yaacov/invalid-typo
Browse files Browse the repository at this point in the history
🐞 Typo invalided should be invalid
  • Loading branch information
yaacov authored Jul 22, 2024
2 parents 5c23ab8 + 13484d0 commit 64a086c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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' };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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' };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 === '') {
Expand All @@ -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' };
Expand Down

0 comments on commit 64a086c

Please sign in to comment.