Skip to content

Commit

Permalink
[ISSUE-1171] Change PVC retention policy
Browse files Browse the repository at this point in the history
Signed-off-by: Andrzej Zukowski <andrzej.zukowski@dell.com>
  • Loading branch information
Andrzej-Zukowski committed Jun 13, 2024
1 parent 0c29530 commit a3fda04
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/e2e-test-framework/framework/sts.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ def create(self, storage_class: str) -> None:
),
spec=client.V1StatefulSetSpec(
replicas=self.replicas,
persistent_volume_claim_retention_policy=client.V1StatefulSetPersistentVolumeClaimRetentionPolicy(
when_deleted="Delete"
),
service_name=self.name,
selector=client.V1LabelSelector(
match_labels={
Expand Down

0 comments on commit a3fda04

Please sign in to comment.