Skip to content

Commit

Permalink
Update DynamicPVC.java setting blockOwnerDeletion=false
Browse files Browse the repository at this point in the history
follows fabric8io/kubernetes-client#2178 to use proper background cascading deletion preventing clients that cannot have access to finalizer to fail to create a pvc
  • Loading branch information
aubinmora authored Nov 22, 2023
1 parent fd176ec commit 57037da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ default PersistentVolumeClaim createPVC(KubernetesClient client, ObjectMeta podM
OwnerReference ownerReference = new OwnerReferenceBuilder().
withApiVersion("v1").
withKind("Pod").
withBlockOwnerDeletion(true).
withBlockOwnerDeletion(false).
withController(true).
withName(podMetaData.getName()).
withUid(podMetaData.getUid()).build();
Expand Down

0 comments on commit 57037da

Please sign in to comment.