-
Notifications
You must be signed in to change notification settings - Fork 39.7k
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
Re-review API validation for CSI Inline Migration #80931
Comments
@kubernetes/sig-storage-bugs |
In validateVolumeAttachmentSource :
If we don't check feature gate, it seems source.InlineVolumeSpec != nil case can be dropped.
|
These were added based on presence of other feature-gate validation like features.PodOverhead. Now it makes sense to align with their removal/being made unconditional as well. There are a couple of instances of feature-gate checking in validation in non-storage areas as well: features.HPAScaleToZero and features.SCTPSupport. I assume those will be changed to unconditional too? |
Both SCTPSupport (in #73774) and HPAScaleToZero (in the PR where it was introduced) ensure existing objects with feature-gated data are still considered valid even when the feature gate is disabled. This is a particularly fragile/nuanced area of the project. I'm working on a comprehensive way to tag fields as alpha and exercise the following cases in integration tests to ensure we don't regress:
|
What happened:
While glancing through storage validation.go, I noticed that we were doing feature gate checking in validation for CSI inline migration. At first glance, I think this will cause validation errors when downgrading to a version with the feature disabled.
c34309a#diff-5aba802af469dbe928456a4b2c7988adR177
What you expected to happen:
We generally don't do feature gate checking in validation in order to support downgrade cases.
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
Environment:
kubectl version
):cat /etc/os-release
):uname -a
):The text was updated successfully, but these errors were encountered: