Skip to content

Commit

Permalink
Merge pull request kubernetes#124140 from bertinatto/automated-cherry…
Browse files Browse the repository at this point in the history
…-pick-of-#124048-upstream-release-1.29

Automated cherry pick of kubernetes#124048: Use the right feature gate when updating uncertain volumes
  • Loading branch information
k8s-ci-robot committed Apr 5, 2024
2 parents ac645d2 + 2b621fe commit 5c1d78b
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 5c1d78b

Please sign in to comment.