Skip to content

Commit 69b52fc

Browse files
authored
Try to make the deleteClaim default more clear (#12313)
Signed-off-by: Jakub Scholz <www@scholzj.com>
1 parent 8cadb8a commit 69b52fc

File tree

6 files changed

+16
-13
lines changed

6 files changed

+16
-13
lines changed

api/src/main/java/io/strimzi/api/kafka/model/kafka/PersistentClaimStorage.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public void setSelector(Map<String, String> selector) {
103103
this.selector = selector;
104104
}
105105

106-
@Description("Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.")
106+
@Description("Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. " +
107+
"Optional. Defaults to `false`.")
107108
@JsonProperty(defaultValue = "false")
108109
@JsonInclude(JsonInclude.Include.NON_DEFAULT)
109110
public boolean isDeleteClaim() {

api/src/test/resources/crds/v1/045-Crd-kafkanodepool.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ spec:
6969
description: The storage class to use for dynamic volume allocation.
7070
deleteClaim:
7171
type: boolean
72-
description: Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
72+
description: Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
7373
id:
7474
type: integer
7575
minimum: 0
@@ -111,7 +111,7 @@ spec:
111111
description: The storage class to use for dynamic volume allocation.
112112
deleteClaim:
113113
type: boolean
114-
description: Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
114+
description: Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
115115
id:
116116
type: integer
117117
minimum: 0

documentation/modules/appendix_crds.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ It must have the value `persistent-claim` for the type `PersistentClaimStorage`.
689689
|Specifies a specific persistent volume to use. It contains key:value pairs representing labels for selecting such a volume.
690690
|deleteClaim
691691
|boolean
692-
|Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
692+
|Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
693693
|overrides
694694
|xref:type-PersistentClaimStorageOverride-{context}[`PersistentClaimStorageOverride`] array
695695
|**The `overrides` property has been deprecated.** The storage overrides for individual brokers are not supported anymore since Strimzi 0.46.0. As of Strimzi 0.46.0, the storage overrides for individual brokers are not supported anymore and this option is ignored.

documentation/modules/cruise-control/proc-cruise-control-moving-data.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,8 @@ spec:
369369

370370
.. Delete the unused PVCs.
371371
+
372+
Unless `deleteClaim: true` is set in the volume configuration, the PVCs are not deleted automatically when the node pool configuration is updated, and you have to delete them manually.
373+
+
372374
PVCs are named using the format `data-<id>-<kafka_cluster_name>-kafka-<pod_id>`.
373375
You can list them using:
374376
+
@@ -384,7 +386,7 @@ Then delete the unused PVCs:
384386
kubectl delete pvc data-<id>-<kafka_cluster_name>-kafka-<pod_id> -n my-project
385387
----
386388
+
387-
NOTE: Deleting a PVC removes the underlying storage unless `deleteClaim: false` is set in the volume configuration.
389+
NOTE: Deleting a PVC removes the underlying storage.
388390

389391
.. (Optional) Delete the helper pod used earlier:
390392
+

packaging/helm-charts/helm3/strimzi-kafka-operator/crds/045-Crd-kafkanodepool.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ spec:
7070
description: The storage class to use for dynamic volume allocation.
7171
deleteClaim:
7272
type: boolean
73-
description: Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
73+
description: Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
7474
id:
7575
type: integer
7676
minimum: 0
@@ -112,7 +112,7 @@ spec:
112112
description: The storage class to use for dynamic volume allocation.
113113
deleteClaim:
114114
type: boolean
115-
description: Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
115+
description: Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
116116
id:
117117
type: integer
118118
minimum: 0
@@ -1354,7 +1354,7 @@ spec:
13541354
description: The storage class to use for dynamic volume allocation.
13551355
deleteClaim:
13561356
type: boolean
1357-
description: Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
1357+
description: Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
13581358
id:
13591359
type: integer
13601360
minimum: 0
@@ -1408,7 +1408,7 @@ spec:
14081408
description: The storage class to use for dynamic volume allocation.
14091409
deleteClaim:
14101410
type: boolean
1411-
description: Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
1411+
description: Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
14121412
id:
14131413
type: integer
14141414
minimum: 0

packaging/install/cluster-operator/045-Crd-kafkanodepool.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ spec:
6969
description: The storage class to use for dynamic volume allocation.
7070
deleteClaim:
7171
type: boolean
72-
description: Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
72+
description: Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
7373
id:
7474
type: integer
7575
minimum: 0
@@ -111,7 +111,7 @@ spec:
111111
description: The storage class to use for dynamic volume allocation.
112112
deleteClaim:
113113
type: boolean
114-
description: Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
114+
description: Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
115115
id:
116116
type: integer
117117
minimum: 0
@@ -1353,7 +1353,7 @@ spec:
13531353
description: The storage class to use for dynamic volume allocation.
13541354
deleteClaim:
13551355
type: boolean
1356-
description: Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
1356+
description: Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
13571357
id:
13581358
type: integer
13591359
minimum: 0
@@ -1407,7 +1407,7 @@ spec:
14071407
description: The storage class to use for dynamic volume allocation.
14081408
deleteClaim:
14091409
type: boolean
1410-
description: Specifies if the persistent volume claim has to be deleted when the cluster is un-deployed.
1410+
description: Specifies whether the persistent volume claim is deleted when a Kafka node is deleted. Optional. Defaults to `false`.
14111411
id:
14121412
type: integer
14131413
minimum: 0

0 commit comments

Comments
 (0)