-
Notifications
You must be signed in to change notification settings - Fork 370
Add secret reference in PV annotations for ControllerModifyVolume #1440
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
Add secret reference in PV annotations for ControllerModifyVolume #1440
Conversation
|
/lgtm /assign @gnufied @xing-yang |
The ControllerModifyVolume CSI procedure should be able to receive credentials if the storage provider requires them. The values of the following keys in the StorageClass are copied into annotations of the PersistentVolume: - csi.storage.k8s.io/controller-modify-secret-name > volume.kubernetes.io/controller-modify-secret-name - csi.storage.k8s.io/controller-modify-secret-namespace > volume.kubernetes.io/controller-modify-secret-namespace The external-resizer can use these annotations to resolve the secret that needs to be passed in ControllerModifyVolume.
fedaeb6 to
a81a21c
Compare
|
/lgtm |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nixpanic, xing-yang 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 |
|
/test pull-kubernetes-csi-external-provisioner-unit Looks like a failure unrelated to this change. |
|
/test pull-kubernetes-csi-external-provisioner-unit Yet an other strange failure. Earlier related to Topology of the nodes, now |
|
/retest pull-kubernetes-csi-external-provisioner-unit kind failures should have been addressed with kubernetes/kubernetes#135575 |
|
@nixpanic: The 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-sigs/prow repository. |
|
/test pull-kubernetes-csi-external-provisioner-unit |
It seems |
|
hmm, the unit test job still failed with: |
Yes, #1455 is not merged yet. The unit test does not have a Kubernetes version in its job yaml. It clones k/k v1.22.0: |
|
/test pull-kubernetes-csi-external-provisioner-unit |
What type of PR is this?
/kind bug
What this PR does / why we need it:
The ControllerModifyVolume CSI procedure should be able to receive credentials if the storage provider requires them.
The values of the following keys in the StorageClass are copied into annotations of the PersistentVolume:
The external-resizer can use these annotations to resolve the secret that needs to be passed in ControllerModifyVolume.
Which issue(s) this PR fixes:
Related to kubernetes-csi/external-resizer#544
Special notes for your reviewer:
Approach has been discussed in a thread at #csi.
Does this PR introduce a user-facing change?: