Skip to content

Commit 03ce045

Browse files
authored
Merge pull request kubernetes#124048 from bertinatto/fix-uncertain-reconstruction-gate
Use the right feature gate when updating uncertain volumes
2 parents 227c2e7 + c893c48 commit 03ce045

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)