Skip to content

Commit c893c48

Browse files
committed
Use the right feature gate when updating uncertain volumes
1 parent 227c2e7 commit c893c48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/kubelet/volumemanager/cache/actual_state_of_world.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,7 @@ func (asw *actualStateOfWorld) AddPodToVolume(markVolumeOpts operationexecutor.M
717717
// Update uncertain volumes - the new markVolumeOpts may have updated information.
718718
// Especially reconstructed volumes (marked as uncertain during reconstruction) need
719719
// an update.
720-
updateUncertainVolume = utilfeature.DefaultFeatureGate.Enabled(features.SELinuxMountReadWriteOncePod) && podObj.volumeMountStateForPod == operationexecutor.VolumeMountUncertain
720+
updateUncertainVolume = utilfeature.DefaultFeatureGate.Enabled(features.NewVolumeManagerReconstruction) && podObj.volumeMountStateForPod == operationexecutor.VolumeMountUncertain
721721
}
722722
if !podExists || updateUncertainVolume {
723723
// Add new mountedPod or update existing one.

0 commit comments

Comments
 (0)