Skip to content

Commit

Permalink
Merge pull request #1919 from bertinatto/fix-uncertain-reconstruction…
Browse files Browse the repository at this point in the history
…-gate-ocp

OCPBUGS-30957: Use the right feature gate when updating uncertain …
  • Loading branch information
openshift-merge-bot[bot] committed Apr 7, 2024
2 parents e994e5d + eabeab9 commit 0345d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kubelet/volumemanager/cache/actual_state_of_world.go
Expand Up @@ -717,7 +717,7 @@ func (asw *actualStateOfWorld) AddPodToVolume(markVolumeOpts operationexecutor.M
// Update uncertain volumes - the new markVolumeOpts may have updated information.
// Especially reconstructed volumes (marked as uncertain during reconstruction) need
// an update.
updateUncertainVolume = utilfeature.DefaultFeatureGate.Enabled(features.SELinuxMountReadWriteOncePod) && podObj.volumeMountStateForPod == operationexecutor.VolumeMountUncertain
updateUncertainVolume = utilfeature.DefaultFeatureGate.Enabled(features.NewVolumeManagerReconstruction) && podObj.volumeMountStateForPod == operationexecutor.VolumeMountUncertain
}
if !podExists || updateUncertainVolume {
// Add new mountedPod or update existing one.
Expand Down

0 comments on commit 0345d5c

Please sign in to comment.