Skip to content

Commit

Permalink
feat(csi): add support for ReadWriteOncePod access mode
Browse files Browse the repository at this point in the history
Signed-off-by: William Phetsinorath <[email protected]>
  • Loading branch information
shikanime committed Oct 31, 2024
1 parent b982e53 commit 6ea62ac
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/routes/backup/BulkCreateStandbyVolumeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ const modal = ({
initialValue: item.accessMode,
})(<Select onSelect={handleAccessModeChange}>
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>)}
</FormItem>
Expand Down
1 change: 1 addition & 0 deletions src/routes/backup/BulkRestoreBackupModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ const modal = ({
initialValue: item.accessMode,
})(<Select onSelect={handleAccessModeChange}>
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>)}
</FormItem>
Expand Down
1 change: 1 addition & 0 deletions src/routes/backup/CreateStandbyVolumeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const modal = ({
initialValue: 'rwo',
})(<Select>
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>)}
</FormItem>
Expand Down
1 change: 1 addition & 0 deletions src/routes/backup/RestoreBackupModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ const modal = ({
initialValue: item.accessMode,
})(<Select>
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>)}
</FormItem>
Expand Down
1 change: 1 addition & 0 deletions src/routes/volume/BulkCloneVolumeModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ const modal = ({
initialValue: item.accessMode || 'rwo',
})(<Select onSelect={handleAccessModeChange}>
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>)}
</FormItem>
Expand Down
1 change: 1 addition & 0 deletions src/routes/volume/CloneVolume.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ const modal = ({
initialValue: volume.accessMode || 'rwo',
})(<Select>
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>)}
</FormItem>
Expand Down
1 change: 1 addition & 0 deletions src/routes/volume/CreatePVAndPVCSingle.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ const modal = ({
<FormItem label="Access Mode" {...formItemLayout}>
<Select disabled={true} value={item.accessMode}>
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>
</FormItem>
Expand Down
1 change: 1 addition & 0 deletions src/routes/volume/CreateVolume.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ const modal = ({
initialValue: 'rwo',
})(<Select>
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>)}
</FormItem>
Expand Down
1 change: 1 addition & 0 deletions src/routes/volume/UpdateAccessMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const modal = ({
initialValue: item.accessMode,
})(<Select>
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>)}
</FormItem>
Expand Down
2 changes: 2 additions & 0 deletions src/routes/volume/UpdateBulkAccessMode.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const modal = ({
initialValue,
})(<Select>
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>) : getFieldDecorator('accessMode', {
rules: [
Expand All @@ -98,6 +99,7 @@ const modal = ({
],
})(<Select placeholder="various">
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
</Select>)}
</FormItem>
Expand Down
1 change: 1 addition & 0 deletions src/routes/volume/VolumeList.js
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ function list({
render: (text) => {
const accessModeObject = {
rwo: 'ReadWriteOnce',
rwop: 'ReadWriteOncePod',
rwx: 'ReadWriteMany',
}
return (
Expand Down
1 change: 1 addition & 0 deletions src/routes/volume/detail/VolumeInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ function VolumeInfo({ selectedVolume, snapshotModalState, engineImages, hosts, c
const healthState = getHealthState(selectedVolume.robustness)
const accessModeObject = {
rwo: 'ReadWriteOnce',
rwop: 'ReadWriteOncePod',
rwx: 'ReadWriteMany',
}
let upgrade = ''
Expand Down

0 comments on commit 6ea62ac

Please sign in to comment.