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
Relax validation for CSIVolumeFSGroupPolicy and move to beta #95739
Relax validation for CSIVolumeFSGroupPolicy and move to beta #95739
Conversation
@huffmanca: 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. |
/sig-storage |
67d99ff
to
b79ee6e
Compare
/assign msau42 @msau42 , Per the discussion in the CSI meetup, I'm assigning this to you for review. |
e7816e1
to
7d6a8cf
Compare
/test pull-kubernetes-bazel-test |
/retest |
3 similar comments
/retest |
/retest |
/retest |
/assign @gnufied |
7d6a8cf
to
20f920a
Compare
72519aa
to
b07bfc3
Compare
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.
/lgtm
|
||
// kube-scheduler may need some time before it gets the CSIDriver object. | ||
// Without them, scheduling doesn't run as expected by the test. | ||
syncDelay := 5 * time.Second |
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.
Can you open a bug to investigate this later?
// ValidateCSIDriver validates a CSIDriver. | ||
func ValidateCSIDriver(csiDriver *storage.CSIDriver) field.ErrorList { | ||
allErrs := field.ErrorList{} | ||
allErrs := apivalidation.ValidateObjectMeta(&csiDriver.ObjectMeta, false, ValidateCSIDriverName, field.NewPath("metadata")) | ||
// We have an additional name check to verify the length and lowercase the name | ||
allErrs = append(allErrs, apivalidation.ValidateCSIDriverName(csiDriver.Name, field.NewPath("name"))...) |
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.
You don't need this anymore (the method above calls it)
/approve Meets the bar for promotion, the validation and API errors turned out not to be an issue, I see no reason from the sig or proposal not to approve. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: huffmanca, msau42, smarterclayton 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 |
b07bfc3
to
8444823
Compare
/test pull-kubernetes-e2e-kind-ipv6 |
/lgtm |
@huffmanca: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
/test pull-kubernetes-e2e-kind |
/retest |
/remove-sig api-machinery |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Relaxes validation for CSIVolumeFSGroupPolicy values. We plan to introduce a new enum in 1.21, and without this change the enum will result in errors in downgrade scenarios. This PR also moves this field to beta.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: