New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use the right feature gate when updating uncertain volumes #124048
Use the right feature gate when updating uncertain volumes #124048
Conversation
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/cc @jsafrane |
/test integration |
@bertinatto: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/test pull-kubernetes-integration |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bertinatto, jsafrane The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
features.NewVolumeManagerReconstruction is promoted to GA and lock to default.
updateUncertainVolume = utilfeature.DefaultFeatureGate.Enabled(features.NewVolumeManagerReconstruction) && podObj.volumeMountStateForPod == operationexecutor.VolumeMountUncertain | |
updateUncertainVolume = podObj.volumeMountStateForPod == operationexecutor.VolumeMountUncertain |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to cherry-pick it into 1.27, 1.28, 1.29 and 1.30? If so, please don't accept my suggestion on code changes and the current change makes senses
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I just wanted to fix 1.27-1.29, as you mentioned, 1.30 is locked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @bertinatto Can you help to cherry-pick this PR into the 1.27, 1.28, and 1.29 release branches?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @carlory; sure, here are the cherry-picks, PTAL:
- 1.27: Automated cherry pick of #124048: Use the right feature gate when updating uncertain volumes #124142
- 1.28: Automated cherry pick of #124048: Use the right feature gate when updating uncertain volumes #124141
- 1.29: Automated cherry pick of #124048: Use the right feature gate when updating uncertain volumes #124140
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you. 😃
/lgtm |
LGTM label has been added. Git tree hash: 966f7aa8bbcddf7b6c58f2165ca26c24c420c644
|
/milestone v1.30 This is a bugfix that would be backported anyway. |
…124048-upstream-release-1.27 Automated cherry pick of #124048: Use the right feature gate when updating uncertain volumes
…124048-upstream-release-1.29 Automated cherry pick of #124048: Use the right feature gate when updating uncertain volumes
…124048-upstream-release-1.28 Automated cherry pick of #124048: Use the right feature gate when updating uncertain volumes
What type of PR is this?
/kind bug
What this PR does / why we need it:
Fix by @jsafrane
Which issue(s) this PR fixes:
Fixes #124057
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: