Closed monicabiswal147 closed 1 year ago
Can you please let me know If changing the name of CSIDriver can have such impact and where else should I updating the new CSIDriver name.
Yes, if the driver name is not changed everywhere it can lead to this issue. In addition to the driver name change in CSIDriver
and rbac roles, you'll need to set the --drivername
arg in the secrets-store
container (ref: https://secrets-store-csi-driver.sigs.k8s.io/topics/command-reference.html#list-of-command-line-options for the flags)
Closing this with https://github.com/kubernetes-sigs/secrets-store-csi-driver/issues/1172#issuecomment-1480341311. Feel free to reopen if you have any questions.
/close
@aramase: Closing this issue.
I
am trying to deploy the secrets-store-csi-driver manually and I have a requirement to have a different CSIDriver name apart from secrets-store.csi.k8s.io. I have updated the CSIDriver name in csidriver.yaml and in rbac-secretproviderclass.yaml files as well.When I probe into the logs of the secrets-store-csi-driver pods I see the old CSIDrivername returned not the new one (pasted below). Bottomline is I am trying to find the root cause of the issue -'[Volume mount fails with secrets-store.csi.k8s.io not found in the list of registered CSI drivers]' which occurs when I try to create another pod after adding the volume mounts using the new CSIDriver name.
Can you please let me know If changing the name of CSIDriver can have such impact and where else should I updating the new CSIDriver name.
Note that I have gone through the troubleshooting reccommendations.
It would be great If I can get some pointers on how can I change a CSIDrivers name and deploy it manually since I have updated the spec.names {} in this file as well https://github.com/kubernetes-sigs/secrets-store-csi-driver/blob/9c72f6b4680747ccbf6af820a7d848332e343768/manifest_staging/deploy/secrets-store.csi.x-k8s.io_secretproviderclasses.yaml