Skip to content

Commit

Permalink
Merge pull request #7389 from cloudbehl/validations
Browse files Browse the repository at this point in the history
Validation on storage & nodes install step
  • Loading branch information
openshift-merge-robot committed Dec 3, 2020
2 parents 56268f4 + 0bb0a4f commit f302424
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ const CreateSC: React.FC<CreateSCProps> = ({ match, hasNoProvSC, mode, lsoNs })
if (!state.volumeSetName.trim().length) return true;
if (state.filteredNodes.length < MINIMUM_NODES) return true;
return !state.volumeSetName.trim().length;
case CreateStepsSC.STORAGEANDNODES:
return state.nodes.length < MINIMUM_NODES || !getName(state.storageClass);
case CreateStepsSC.REVIEWANDCREATE:
return (
state.nodes.length < MINIMUM_NODES ||
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export const CreateInternalCluster: React.FC<CreateInternalClusterProps> = ({ ma
name: 'Select capacity and nodes',
id: CreateStepsSC.STORAGEANDNODES,
component: <SelectCapacityAndNodes state={state} dispatch={dispatch} />,
enableNext: !!(state.nodes.length >= MINIMUM_NODES && scName),
},
{
name: 'Configure',
Expand Down

0 comments on commit f302424

Please sign in to comment.