Skip to content

Commit

Permalink
docs: fix crds: volumeCleanup parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Denis.Rebenok <denis.rebenok@flant.ru>
  • Loading branch information
Denis.Rebenok committed Feb 20, 2025
1 parent ce22b8a commit 76765e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion crds/doc-ru-localstorageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ spec:
volumeCleanup:
description: |
Метод очистки тома после удаления PV.
Если параметр не задан, после удаления PV данные могут удалиться, либо остаться. Гарантий удаления или неудаления нет.
Допустимые значения:
- Параметр не задан — том не будет очищен после удаления PV.
- `RandomFillSinglePass` — том будет перезаписан случайными данными один раз перед удалением. Использовать эту опцию не рекомендуется для твердотельных накопителей, так как она уменьшает ресурс накопителя.
- `RandomFillThreePass` — том будет перезаписан случайными данными три раза перед удалением. Использовать эту опцию не рекомендуется для твердотельных накопителей, так как она уменьшает ресурс накопителя.
- `Discard` — все блоки тома будут отмечены как свободные с использованием системного вызова `discard` перед удалением. Эта опция имеет смысл только для твердотельных накопителей.
Expand Down
6 changes: 2 additions & 4 deletions crds/localstorageclass.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,12 @@ spec:
type: string
x-doc-d8editions: [ee,fe]
description: |
**This feature is available in EE and FE.**
The method of the volume cleanup before deletion.
If the parameter is not set, the volume will not be cleared after the PV is deleted.
If the parameter is not set, after deleting the PV, the data may be deleted or it may remain. There is no guarantee of deletion or non-deletion.
Allowed values:
- empty parameter — No cleanup is performed.
- **Discard**: All blocks of the volume will be marked as free using the `discard` system call before deletion. This option is only applicable to solid-state drives.
- **RandomFillSinglePass**: The volume will be overwritten with random data once before deletion. This option is not recommended for solid-state drives, as it reduces the lifespan of the drive.
- **RandomFillThreePass**: The volume will be overwritten with random data three times before deletion. This option is also not recommended for solid-state drives, as it reduces the lifespan of the drive.
- **Discard**: All blocks of the volume will be marked as free using the `discard` system call before deletion. This option is only applicable to solid-state drives.
enum:
- Discard
- RandomFillSinglePass
Expand Down

0 comments on commit 76765e4

Please sign in to comment.