We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d0291a commit bcdbdeeCopy full SHA for bcdbdee
1 file changed
xset/xset_controller.go
@@ -256,6 +256,8 @@ func (r *xSetCommonReconciler) ensureReclaimTargetSubResources(ctx context.Conte
256
return nil
257
}
258
259
+// ensureReclaimPvcs removes xset ownerReference from pvcs if RetainPvcWhenXSetDeleted.
260
+// This allows pvcs to be retained for other xsets with same pvc template.
261
func (r *xSetCommonReconciler) ensureReclaimPvcs(ctx context.Context, xset api.XSetObject) error {
262
if !r.pvcControl.RetainPvcWhenXSetDeleted(xset) {
263
0 commit comments