Skip to content

Commit bcdbdee

Browse files
committed
add comment
1 parent 2d0291a commit bcdbdee

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

xset/xset_controller.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,8 @@ func (r *xSetCommonReconciler) ensureReclaimTargetSubResources(ctx context.Conte
256256
return nil
257257
}
258258

259+
// ensureReclaimPvcs removes xset ownerReference from pvcs if RetainPvcWhenXSetDeleted.
260+
// This allows pvcs to be retained for other xsets with same pvc template.
259261
func (r *xSetCommonReconciler) ensureReclaimPvcs(ctx context.Context, xset api.XSetObject) error {
260262
if !r.pvcControl.RetainPvcWhenXSetDeleted(xset) {
261263
return nil

0 commit comments

Comments
 (0)