-
Notifications
You must be signed in to change notification settings - Fork 38.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
csi: add validation of secretRef format for CSI PV update functions #108418
csi: add validation of secretRef format for CSI PV update functions #108418
Conversation
@humblec: 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 |
/test pull-kubernetes-e2e-kind-ipv6 |
/test pull-kubernetes-e2e-kind |
Cc @jsafrane |
6b090ef
to
08597c0
Compare
61c8427
to
c986c84
Compare
c986c84
to
9ee6ed4
Compare
c22d118
to
9e4d408
Compare
8211d58
to
0fe781a
Compare
0fe781a
to
6f46f06
Compare
/test pull-kubenetes-integration |
@humblec: 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 |
/test pull-kubernetes-e2e-kind-ipv6 |
at present the spec.csi.secretRef name has to be DNS1035 label format and it should fail if we use DNSSubdomain secretRef in the secretReference field of CSI spec. The newly added test cases validate this behaviour in validation tests for controllerPublish, nodePublish and nodeStage secretRef formats. Additionally csiExpansionEnabled struct field also removed from the validation function. Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
6f46f06
to
f247378
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: humblec, liggitt 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 |
Thanks a lot @liggitt for your quick review 👍 |
At present the spec.csi.secretRef name has to be DNS1035 label
format and it should fail if we use DNSSubdomain secretRef in
the secretReference field of CSI spec. The newly added test cases
validate this behaviour in validation tests for controllerPublish,
nodePublish and nodeStage secretRef formats.
This PR also does below:
csiExpansionEnabled
struct field has been removed from the validation test functionSigned-off-by: Humble Chirammal hchiramm@redhat.com
/kind cleanup