mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 10:43:56 +00:00
Use the right feature gate when updating uncertain volumes
This commit is contained in:
parent
227c2e7c2b
commit
c893c48432
@ -717,7 +717,7 @@ func (asw *actualStateOfWorld) AddPodToVolume(markVolumeOpts operationexecutor.M
|
|||||||
// Update uncertain volumes - the new markVolumeOpts may have updated information.
|
// Update uncertain volumes - the new markVolumeOpts may have updated information.
|
||||||
// Especially reconstructed volumes (marked as uncertain during reconstruction) need
|
// Especially reconstructed volumes (marked as uncertain during reconstruction) need
|
||||||
// an update.
|
// 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 {
|
if !podExists || updateUncertainVolume {
|
||||||
// Add new mountedPod or update existing one.
|
// Add new mountedPod or update existing one.
|
||||||
|
Loading…
Reference in New Issue
Block a user