Skip to content

Commit 6ea62ac

Browse files
committed
feat(csi): add support for ReadWriteOncePod access mode
Signed-off-by: William Phetsinorath <[email protected]>
1 parent b982e53 commit 6ea62ac

12 files changed

+13
-0
lines changed

src/routes/backup/BulkCreateStandbyVolumeModal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ const modal = ({
257257
initialValue: item.accessMode,
258258
})(<Select onSelect={handleAccessModeChange}>
259259
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
260+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
260261
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
261262
</Select>)}
262263
</FormItem>

src/routes/backup/BulkRestoreBackupModal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ const modal = ({
245245
initialValue: item.accessMode,
246246
})(<Select onSelect={handleAccessModeChange}>
247247
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
248+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
248249
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
249250
</Select>)}
250251
</FormItem>

src/routes/backup/CreateStandbyVolumeModal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ const modal = ({
157157
initialValue: 'rwo',
158158
})(<Select>
159159
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
160+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
160161
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
161162
</Select>)}
162163
</FormItem>

src/routes/backup/RestoreBackupModal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ const modal = ({
132132
initialValue: item.accessMode,
133133
})(<Select>
134134
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
135+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
135136
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
136137
</Select>)}
137138
</FormItem>

src/routes/volume/BulkCloneVolumeModal.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ const modal = ({
315315
initialValue: item.accessMode || 'rwo',
316316
})(<Select onSelect={handleAccessModeChange}>
317317
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
318+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
318319
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
319320
</Select>)}
320321
</FormItem>

src/routes/volume/CloneVolume.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ const modal = ({
189189
initialValue: volume.accessMode || 'rwo',
190190
})(<Select>
191191
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
192+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
192193
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
193194
</Select>)}
194195
</FormItem>

src/routes/volume/CreatePVAndPVCSingle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ const modal = ({
8585
<FormItem label="Access Mode" {...formItemLayout}>
8686
<Select disabled={true} value={item.accessMode}>
8787
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
88+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
8889
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
8990
</Select>
9091
</FormItem>

src/routes/volume/CreateVolume.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ const modal = ({
301301
initialValue: 'rwo',
302302
})(<Select>
303303
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
304+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
304305
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
305306
</Select>)}
306307
</FormItem>

src/routes/volume/UpdateAccessMode.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const modal = ({
5656
initialValue: item.accessMode,
5757
})(<Select>
5858
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
59+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
5960
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
6061
</Select>)}
6162
</FormItem>

src/routes/volume/UpdateBulkAccessMode.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ const modal = ({
8888
initialValue,
8989
})(<Select>
9090
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
91+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
9192
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
9293
</Select>) : getFieldDecorator('accessMode', {
9394
rules: [
@@ -98,6 +99,7 @@ const modal = ({
9899
],
99100
})(<Select placeholder="various">
100101
<Option key={'ReadWriteOnce'} value={'rwo'}>ReadWriteOnce</Option>
102+
<Option key={'ReadWriteOncePod'} value={'rwop'}>ReadWriteOncePod</Option>
101103
<Option key={'ReadWriteMany'} value={'rwx'}>ReadWriteMany</Option>
102104
</Select>)}
103105
</FormItem>

0 commit comments

Comments
 (0)