Skip to content

Commit 2d0291a

Browse files
committed
fix lint
1 parent 1685f33 commit 2d0291a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

xset/synccontrols/x_update.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ func (r *RealSyncControl) attachTargetUpdateInfo(xsetObject api.XSetObject, sync
9494
// decide whether the TargetOpsLifecycle is during ops or not
9595
updateInfo.RequeueForOperationDelay, updateInfo.IsAllowUpdateOps = opslifecycle.AllowOps(r.updateConfig.xsetLabelAnnoMgr, r.updateLifecycleAdapter, ptr.Deref(spec.UpdateStrategy.OperationDelaySeconds, 0), target)
9696
// check subresource pvc template changed
97-
if subresources.GetSubresourcePvcAdapter(r.pvcControl) {
97+
if _, enabled := subresources.GetSubresourcePvcAdapter(r.xsetController); enabled {
9898
updateInfo.PvcTmpHashChanged, err = r.pvcControl.IsTargetPvcTmpChanged(xsetObject, target.Object, syncContext.ExistingPvcs)
9999
if err != nil {
100100
return nil, err

0 commit comments

Comments
 (0)