From 76765e443df57251f94c951ae8ef63b1c677802c Mon Sep 17 00:00:00 2001 From: "Denis.Rebenok" Date: Thu, 20 Feb 2025 17:40:44 +0300 Subject: [PATCH] docs: fix crds: volumeCleanup parameter Signed-off-by: Denis.Rebenok --- crds/doc-ru-localstorageclass.yaml | 2 +- crds/localstorageclass.yaml | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/crds/doc-ru-localstorageclass.yaml b/crds/doc-ru-localstorageclass.yaml index 5a14de1..6d70c6a 100644 --- a/crds/doc-ru-localstorageclass.yaml +++ b/crds/doc-ru-localstorageclass.yaml @@ -37,8 +37,8 @@ spec: volumeCleanup: description: | Метод очистки тома после удаления PV. + Если параметр не задан, после удаления PV данные могут удалиться, либо остаться. Гарантий удаления или неудаления нет. Допустимые значения: - - Параметр не задан — том не будет очищен после удаления PV. - `RandomFillSinglePass` — том будет перезаписан случайными данными один раз перед удалением. Использовать эту опцию не рекомендуется для твердотельных накопителей, так как она уменьшает ресурс накопителя. - `RandomFillThreePass` — том будет перезаписан случайными данными три раза перед удалением. Использовать эту опцию не рекомендуется для твердотельных накопителей, так как она уменьшает ресурс накопителя. - `Discard` — все блоки тома будут отмечены как свободные с использованием системного вызова `discard` перед удалением. Эта опция имеет смысл только для твердотельных накопителей. diff --git a/crds/localstorageclass.yaml b/crds/localstorageclass.yaml index 5c8e0c9..9d64ec0 100644 --- a/crds/localstorageclass.yaml +++ b/crds/localstorageclass.yaml @@ -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