-
Notifications
You must be signed in to change notification settings - Fork 332
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
One new csi secret key that apply to all the CSI operations #245
Comments
/kind feature |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. 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. |
According to k8s CSI spec, there are 2 ways to specify secrets for CSI plugin from the storage class:
option1 - to specify secret key per CSI operation (provisioner, controller-publish, snapshot, node-stage, node-publish...).
option2 - to specify secret per PV name by having
${pv.name}
template.But what if a CSI plugin requires the same credential fpr all the CSI operations?
So the user must specify many secret lines in each storage class object (5 secrets per operations + 5 namespace per operation * number of storage classes that uses the same backend).
So this issue is to propose another option(number 3) to simplify the user experience in case csi driver requires the same secret for all CSI operations.
So the secret key in the storage class can be called:
csi.storage.k8s.io/secret-name: SECRET
csi.storage.k8s.io/secret-namespace: NAMESPACE
Note: maybe we can distinguish secret for csi controller-ops vs csi node-ops, because I believe that usually the secrets for these operations are different, and maybe u don't even need secret for csi node ops at all.
The text was updated successfully, but these errors were encountered: