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 DetailsNeeds 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 DetailsIn 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 |
NFS supports changing the NFS-server hostname through VolumeAttributesClass on Kubernetes 1.35 and newer. The external-provisioner needs to annotate PVs with a reference to a Secret so that the external-resizer can update the requested parameters. There is no released version of the external-provisioner available yet that includes this functionality. Until then, we need to use the `:canary` tagged version. See-also: kubernetes-csi/external-provisioner#1440 Signed-off-by: Niels de Vos <ndevos@ibm.com>
…lass NFS supports changing the NFS-server hostname through VolumeAttributesClass on Kubernetes 1.35 and newer. The external-provisioner needs to annotate PVs with a reference to a Secret so that the external-resizer can update the requested parameters. The HonorPVReclaimPolicy feature-gate flag has been removed, the feature is GA since Kubernetes v1.33. There is no need to pass the flag anymore. See-also: kubernetes-csi/external-provisioner#1440 Signed-off-by: Niels de Vos <ndevos@ibm.com>
…lass NFS supports changing the NFS-server hostname through VolumeAttributesClass on Kubernetes 1.35 and newer. The external-provisioner needs to annotate PVs with a reference to a Secret so that the external-resizer can update the requested parameters. The HonorPVReclaimPolicy feature-gate flag has been removed, the feature is GA since Kubernetes v1.33. There is no need to pass the flag anymore. See-also: kubernetes-csi/external-provisioner#1440 Signed-off-by: Niels de Vos <ndevos@ibm.com>
NFS supports changing the NFS-server hostname through VolumeAttributesClass on Kubernetes 1.35 and newer. The external-provisioner needs to annotate PVs with a reference to a Secret so that the external-resizer can update the requested parameters. The HonorPVReclaimPolicy feature-gate flag has been removed, the feature is GA since Kubernetes v1.33. There is no need to pass the flag anymore. See-also: kubernetes-csi/external-provisioner#1440 Signed-off-by: Niels de Vos <ndevos@ibm.com>
NFS supports changing the NFS-server hostname through VolumeAttributesClass on Kubernetes 1.35 and newer. The external-provisioner needs to annotate PVs with a reference to a Secret so that the external-resizer can update the requested parameters. The HonorPVReclaimPolicy feature-gate flag has been removed, the feature is GA since Kubernetes v1.33. There is no need to pass the flag anymore. See-also: kubernetes-csi/external-provisioner#1440 Signed-off-by: Niels de Vos <ndevos@ibm.com>
NFS supports changing the NFS-server hostname through VolumeAttributesClass on Kubernetes 1.35 and newer. The external-provisioner needs to annotate PVs with a reference to a Secret so that the external-resizer can update the requested parameters. The HonorPVReclaimPolicy feature-gate flag has been removed, the feature is GA since Kubernetes v1.33. There is no need to pass the flag anymore. See-also: kubernetes-csi/external-provisioner#1440 Signed-off-by: Niels de Vos <ndevos@ibm.com>
NFS supports changing the NFS-server hostname through VolumeAttributesClass on Kubernetes 1.35 and newer. The external-provisioner needs to annotate PVs with a reference to a Secret so that the external-resizer can update the requested parameters. The HonorPVReclaimPolicy feature-gate flag has been removed, the feature is GA since Kubernetes v1.33. There is no need to pass the flag anymore. See-also: kubernetes-csi/external-provisioner#1440 Signed-off-by: Niels de Vos <ndevos@ibm.com>
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?: